|
|
@@ -0,0 +1,134 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+ <meta charset="utf-8" />
|
|
|
+ <meta name="keywords" content="dongke,mes,ibossmes">
|
|
|
+ <meta name="description" content="制造企业生产过程执行管理系统">
|
|
|
+ <meta name="author" content="xuwei">
|
|
|
+ <title>东科软件</title>
|
|
|
+ <script src="/plugins/xeasyui/xeasyui.min.js"></script>
|
|
|
+</head>
|
|
|
+<body class="easyui-layout">
|
|
|
+
|
|
|
+ <!--中部主体-->
|
|
|
+ <div data-options="border:false,region:'center',title:'',iconCls:'icon-grid'">
|
|
|
+ <!--工具条-->
|
|
|
+ <div id="tb" class="i-toolbar">
|
|
|
+ <a href="javascript:void(0)" id="btnSearch" title="搜索" class="easyui-linkbutton" iconcls="icon-search" plain="true" toggle="true" onclick="tbSearch()">搜索</a>
|
|
|
+ <a href="javascript:void(0)" id="btnExport" title="导出" class="easyui-linkbutton" iconcls="icon-excel" plain="true" onclick="tbExport()">导出</a>
|
|
|
+ <a href="javascript:void(0)" id="btnReload" title="刷新" class="easyui-linkbutton" iconcls="icon-reload" plain="true" onclick="tbReload()">刷新</a>
|
|
|
+ <div id="tbSearchDiv" style="display:block;padding:10px;">
|
|
|
+ <form id="ffMaster">
|
|
|
+ <div>
|
|
|
+ 首检日期:
|
|
|
+ <input class="easyui-datetimebox" id="firstdatebeginMaster" name="firstdatebeginMaster" data-options="required:false,prompt:'首检开始日期!',tipPosition:'top'" style="width:180px; height:32px;">
|
|
|
+ -
|
|
|
+ <input class="easyui-datetimebox" id="firstdateendMaster" name="firstdateendMaster" data-options="required:false,prompt:'首检截止日期',tipPosition:'top'" style="width:180px; height:32px;">
|
|
|
+ 产品编码:
|
|
|
+ <input class="easyui-combobox" id="GOODSCODE" name="GOODSCODE" data-options="required:false,prompt:'',tipPosition:'top',url:'../rpt.ashx?m=getGoods&select=1',method:'get',valueField:'GOODSCODE',textField:'GOODSCODE',panelHeight:'300px',editable:'true'" style="width:120px;height:32px;">
|
|
|
+ 首检工号:
|
|
|
+ <input class="easyui-combobox" id="pfirstusercode" name="pfirstusercode" data-options="required:false,prompt:'',tipPosition:'top',url:'../rpt.ashx?m=getUser&select=1',method:'get',valueField:'USERCODE',textField:'USERCODE',panelHeight:'300px',editable:'true'" style="width:120px;height:32px;">
|
|
|
+ 复检工号:
|
|
|
+ <input class="easyui-combobox" id="pdusercode" name="pdusercode" data-options="required:false,prompt:'',tipPosition:'top',url:'../rpt.ashx?m=getUser&select=1',method:'get',valueField:'USERCODE',textField:'USERCODE',panelHeight:'300px',editable:'true'" style="width:120px;height:32px;">
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div style="padding-top:10px">
|
|
|
+ 复检日期:
|
|
|
+ <input class="easyui-datetimebox" id="twodatebeginMaster" name="twodatebeginMaster" data-options="required:true,prompt:'开始日期必须填写!',tipPosition:'top'" style="width:180px; height:32px;">
|
|
|
+ -
|
|
|
+ <input class="easyui-datetimebox" id="twodateendMaster" name="twodateendMaster" data-options="required:true,prompt:'截止日期必须填写',tipPosition:'top'" style="width:180px; height:32px;">
|
|
|
+
|
|
|
+ 首检质量:
|
|
|
+ <input class="easyui-combobox" id="pfirstgoodleve" name="pfirstgoodleve" data-options="required:false,prompt:'',tipPosition:'top',url:'../rpt.ashx?m=getgoodsleve&select=1',method:'get',valueField:'GOODSLEVELID',textField:'GOODSLEVELNAME',panelHeight:'300px',editable:'true'" style="width:120px;height:32px;">
|
|
|
+ 复检质量:
|
|
|
+ <input class="easyui-combobox" id="pdgoodleve" name="pdgoodleve" data-options="required:false,prompt:'',tipPosition:'top',url:'../rpt.ashx?m=getgoodsleve&select=1',method:'get',valueField:'GOODSLEVELID',textField:'GOODSLEVELNAME',panelHeight:'300px',editable:'true'" style="width:120px;height:32px;">
|
|
|
+ 产品条码:
|
|
|
+ <input class="easyui-textbox" id="BARCODE" name="BARCODE" data-options="required:false,prompt:'',tipPosition:'top',url:'../rpt.ashx?m=getUser&select=1',method:'get',valueField:'USERCODE',textField:'USERCODE',panelHeight:'300px',editable:'true'" style="width:120px;height:32px;">
|
|
|
+
|
|
|
+ <a href="javascript:void(0)" id="btnSearchSubmit" title="清空" class="easyui-linkbutton" plain="false" onclick="$('#ffMaster').form('clear')">清空</a>
|
|
|
+ <a href="javascript:void(0)" id="btnSearchSubmit" title="搜索" class="easyui-linkbutton" plain="false" onclick="tbSearchSubmit()">搜索</a>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <table class="easyui-datagrid"
|
|
|
+ id="DataGridMaster"
|
|
|
+ data-options="toolbar: '#tb',method:'get',border:false,singleSelect:true,fit:true,fitColumns:true">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th data-options="field:'ROWNO',title:'序号',width:220,align:'center',checkbox:true,hidden:true">SID</th>
|
|
|
+ <th data-options="field:'GOODSCODE',title:'产品编码',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'GOODSNAME',title:'产品名称',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'DICTIONARYVALUE',title:'釉料',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'LOGONAME',title:'商标',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'PFIRSTCREATETIME',title:'首检日期',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'PFIRSTUSERCODE',title:'首检工号',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'PFIRSTUSERNAME',title:'首检姓名',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'PFIRSTGOODSLEVE',title:'首检质量',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'PDGOODSLEVE',title:'复检质量',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'PDCREATETIME',title:'复检日期',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'PDUSERCODE',title:'复检工号',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'PDUSERNAME',title:'复检姓名',width:220,align:'center',sortable:false"></th>
|
|
|
+ <th data-options="field:'BARCODE',title:'产品条码',width:220,align:'center',sortable:false"></th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <script type="text/javascript">
|
|
|
+ $(document).ready(function () {
|
|
|
+ var ctime = new Date();
|
|
|
+ var ctime = new Date();
|
|
|
+ var beginDate = ctime.getFullYear() + "-" + (ctime.getMonth() + 1) + "-" + ctime.getDate() + " 00:00:00";
|
|
|
+ var endDate = ctime.getFullYear() + "-" + (ctime.getMonth() + 1) + "-" + ctime.getDate() + " 23:59:59";
|
|
|
+ //$("#firstdatebeginMaster").datetimebox("setValue", beginDate);
|
|
|
+ // $("#firstdateendMaster").datetimebox("setValue", endDate);
|
|
|
+ $("#twodatebeginMaster").datetimebox("setValue", beginDate);
|
|
|
+ $("#twodateendMaster").datetimebox("setValue", endDate);
|
|
|
+ });
|
|
|
+
|
|
|
+ //搜索提交
|
|
|
+ function tbSearchSubmit() {
|
|
|
+ if ($('#ffMaster').form("validate")) {
|
|
|
+ $('#DataGridMaster').datagridLoad({
|
|
|
+ title: '',
|
|
|
+ idField: 'SID',
|
|
|
+ queryParams: $('#ffMaster').serializeJson(),
|
|
|
+ url: 'rpt.ashx?m=master&id=' + request('id'),
|
|
|
+ fixWidth: 140,
|
|
|
+ mergeWidth: 80,
|
|
|
+ //取消分页功能 2022-11-14 张庭莲
|
|
|
+ pagination: false,
|
|
|
+ splitChar: '_'
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //导出
|
|
|
+ function tbExport() {
|
|
|
+ var fields = $('#DataGridMaster').datagrid('getColumnFields');
|
|
|
+ var headers = [];
|
|
|
+ for (var i = 0; i < fields.length; i++) {
|
|
|
+ headers.push(fields[i]);
|
|
|
+ }
|
|
|
+ $('#DataGridMaster').datagridExport({
|
|
|
+ headers: headers,
|
|
|
+ fileName: '导出数据(改判清单).xls',
|
|
|
+ workSheet: '导出数据(改判清单)'
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ //搜索按钮
|
|
|
+ function tbSearch() {
|
|
|
+ $('#tbSearchDiv').toggle();
|
|
|
+ $('#DataGridMaster').datagrid('resize');
|
|
|
+ }
|
|
|
+
|
|
|
+ //刷新
|
|
|
+ function tbReload() {
|
|
|
+ tbSearchSubmit();
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+</body>
|
|
|
+</html>
|