|
|
@@ -0,0 +1,125 @@
|
|
|
+<!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>
|
|
|
+ <link href="/plugins/xeasyui/toolbar.min.css" rel="stylesheet" />
|
|
|
+</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>
|
|
|
+ <span class="labelspan" style="width:200px;">产品条码<input class="easyui-textbox" id="barcode" name="barcode" data-options="required:false,prompt:'',tipPosition:'top'" style="width: 120px; height: 32px;"></span>
|
|
|
+ 创建时间:
|
|
|
+ <input class="easyui-datetimebox" id="datebeginMasterStar" name="datebeginMasterStar" data-options="required:true,prompt:'',tipPosition:'top'" style="width:165px; height:32px;">
|
|
|
+ - <input class="easyui-datetimebox" id="datebeginMasterEnd" name="datebeginMasterEnd" data-options="required:true,prompt:'',tipPosition:'top'" style="width:165px; 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:'产品条码',title:'产品条码',align:'left',sortable:false"></th>
|
|
|
+ <th data-options="field:'产品编码',title:'产品编码',align:'left',sortable:false"></th>
|
|
|
+ <th data-options="field:'成型线号',title:'成型线号',align:'left',sortable:false"></th>
|
|
|
+ <th data-options="field:'巡检类别',title:'巡检类别',align:'left',sortable:false"></th>
|
|
|
+ <th data-options="field:'巡检操作人',title:'巡检操作人',align:'left',sortable:false"></th>
|
|
|
+ <th data-options="field:'巡检时间',title:'巡检时间',align:'left',sortable:false"></th>
|
|
|
+ <th data-options="field:'巡检等级',title:'巡检等级',align:'left',sortable:false"></th>
|
|
|
+ <th data-options="field:'包装缺陷',title:'包装缺陷',align:'left',sortable:false"></th>
|
|
|
+ <th data-options="field:'巡检产品等级',title:'巡检产品等级',align:'left',sortable:false"></th>
|
|
|
+ <th data-options="field:'最终质量状态',title:'最终质量状态',align:'left',sortable:false"></th>
|
|
|
+ <th data-options="field:'最终缺陷记录',title:'最终缺陷记录',align:'left',sortable:false"></th>
|
|
|
+
|
|
|
+
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ </thead>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <script type="text/javascript">
|
|
|
+
|
|
|
+ $(document).ready(function () {
|
|
|
+ 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";
|
|
|
+ $("#datebeginMasterStar").datetimebox("setValue", beginDate);
|
|
|
+ $("#datebeginMasterEnd").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: 160,
|
|
|
+ mergeWidth: 100,
|
|
|
+ splitChar: '_',
|
|
|
+ columnMenu: '#btnColumnMenu',
|
|
|
+ columnMoving: true,
|
|
|
+ pagination: false,
|
|
|
+ onSelect: LoadDataGridDetail
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //加载子表数据
|
|
|
+ function LoadDataGridDetail(index, row) {
|
|
|
+
|
|
|
+ }
|
|
|
+ //导出
|
|
|
+ function tbExport() {
|
|
|
+ //加载表头
|
|
|
+ var fields = $('#DataGridMaster').datagrid('getColumnFields');
|
|
|
+ var headers = [];
|
|
|
+ for (var i = 0; i < fields.length; i++) {
|
|
|
+ //headers.push($('#DataGridMaster').datagrid('getColumnOption', fields[i])['title']);
|
|
|
+ headers.push(fields[i]);
|
|
|
+ }
|
|
|
+
|
|
|
+ $('#DataGridMaster').datagridExport({
|
|
|
+ headers: headers,
|
|
|
+ fileName: '品管数据记录明细表.xlsx',
|
|
|
+ workSheet: '导出数据(品管数据记录明细表)'
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ //搜索按钮
|
|
|
+ function tbSearch() {
|
|
|
+ $('#tbSearchDiv').toggle();
|
|
|
+ $('#DataGridMaster').datagrid('resize');
|
|
|
+ }
|
|
|
+
|
|
|
+ //刷新
|
|
|
+ function tbReload() {
|
|
|
+ tbSearchSubmit();
|
|
|
+ }
|
|
|
+
|
|
|
+ </script>
|
|
|
+</body>
|
|
|
+</html>
|