|
@@ -33,7 +33,7 @@
|
|
|
生产线号
|
|
生产线号
|
|
|
<input class="easyui-combobox" id="productionlineidMaster" name="productionlineidMaster" data-options="required:false,prompt:'',tipPosition:'top',url:'../rpt.ashx?m=getProductionLine&select=1',method:'get',valueField:'PRODUCTIONLINEID',textField:'PRODUCTIONLINECODE',panelHeight:'300px',editable:'true'" style="width:180px;height:32px;">
|
|
<input class="easyui-combobox" id="productionlineidMaster" name="productionlineidMaster" data-options="required:false,prompt:'',tipPosition:'top',url:'../rpt.ashx?m=getProductionLine&select=1',method:'get',valueField:'PRODUCTIONLINEID',textField:'PRODUCTIONLINECODE',panelHeight:'300px',editable:'true'" style="width:180px;height:32px;">
|
|
|
完成工序
|
|
完成工序
|
|
|
- <input class="easyui-combobox" id="procedureidMaster" name="procedureidMaster" data-options="required:false,prompt:'',tipPosition:'top',url:'../rpt.ashx?m=getProcedure&select=1',method:'get',valueField:'PROCEDUREID',textField:'PROCEDURENAME',panelHeight:'300px',editable:'true',multiple:true" style="width:180px;height:32px;">
|
|
|
|
|
|
|
+ <input class="easyui-combobox" id="procedureidMaster" name="procedureidMaster" data-options="required:false,prompt:'',tipPosition:'top',url:'../rpt.ashx?m=getProcedure3&select=1',method:'get',valueField:'PROCEDUREID',textField:'PROCEDURENAME',panelHeight:'300px',editable:'true'" style="width:180px;height:32px;">
|
|
|
产品类别
|
|
产品类别
|
|
|
<input class="easyui-combotree" id="goodstypecodeMaster" name="goodstypecodeMaster" data-options="required:false,prompt:'',tipPosition:'top',url:'../rpt.ashx?m=getGoodsType',method:'get',panelHeight:'200px',editable:true" style="width:180px;height:32px;">
|
|
<input class="easyui-combotree" id="goodstypecodeMaster" name="goodstypecodeMaster" data-options="required:false,prompt:'',tipPosition:'top',url:'../rpt.ashx?m=getGoodsType',method:'get',panelHeight:'200px',editable:true" style="width:180px;height:32px;">
|
|
|
产品编码
|
|
产品编码
|
|
@@ -49,15 +49,6 @@
|
|
|
<table class="easyui-datagrid"
|
|
<table class="easyui-datagrid"
|
|
|
id="DataGridMaster"
|
|
id="DataGridMaster"
|
|
|
data-options="toolbar: '#tb',method:'get',border:false,singleSelect:true,fit:true,fitColumns:true">
|
|
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>
|
|
|
|
|
- </tr>
|
|
|
|
|
- </thead>
|
|
|
|
|
</table>
|
|
</table>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -111,40 +102,11 @@
|
|
|
|
|
|
|
|
//搜索提交
|
|
//搜索提交
|
|
|
function tbSearchSubmit() {
|
|
function tbSearchSubmit() {
|
|
|
-
|
|
|
|
|
- //加载动态字段
|
|
|
|
|
- //$.post('rpt.ashx?m=field', {'productionlineidMaster':$('#productionlineidMaster').combobox('getValue'),'procedureidMaster':$('#procedureidMaster').combobox('getValues')}, function (columnData) {
|
|
|
|
|
- // var columnData = JSON.parse(columnData);
|
|
|
|
|
- // var jsonColumns = [
|
|
|
|
|
- // { 'field': '产品二级类别', 'title': '产品二级类别' },
|
|
|
|
|
- // { 'field': '产品类别', 'title': '产品类别' },
|
|
|
|
|
- // { 'field': '产品编码', 'title': '产品编码' },
|
|
|
|
|
- // { 'field': '产品规格', 'title': '产品规格' },
|
|
|
|
|
- // { 'field': '釉料类别', 'title': '釉料类别' }
|
|
|
|
|
- // ];
|
|
|
|
|
-
|
|
|
|
|
- // //动态列
|
|
|
|
|
- // for (var i = 0; i < columnData["rows"].length;i++) {
|
|
|
|
|
- // var c = JSON.parse('{ "field": "' + columnData["rows"][i]["PROCEDURENAME"] + '", "title": "' + columnData["rows"][i]["PROCEDURENAME"].toString().replace('_','#') + '" }');
|
|
|
|
|
- // jsonColumns.push(c);
|
|
|
|
|
- // }
|
|
|
|
|
-
|
|
|
|
|
- // //加载表格数据
|
|
|
|
|
- // $('#DataGridMaster').datagridLoad({
|
|
|
|
|
- // columns: [jsonColumns],
|
|
|
|
|
- // title: '工序产量分析表',
|
|
|
|
|
- // idField: 'SID',
|
|
|
|
|
- // queryParams: $('#ffMaster').serializeJson(),
|
|
|
|
|
- // url: 'rpt.ashx?m=master&id=' + request('id'),
|
|
|
|
|
- // pagination:true,
|
|
|
|
|
- // pageSize:100,
|
|
|
|
|
- // onSelect: LoadDataGridDetail
|
|
|
|
|
- // });
|
|
|
|
|
- //});
|
|
|
|
|
-
|
|
|
|
|
|
|
+ $('#DataGridMaster').empty();
|
|
|
|
|
+ $('#DataGridMaster').innerHTML = '';
|
|
|
if ($('#ffMaster').form("validate")) {
|
|
if ($('#ffMaster').form("validate")) {
|
|
|
//工序产量分析表
|
|
//工序产量分析表
|
|
|
- $('#DataGridMaster').datagridLoad({
|
|
|
|
|
|
|
+ $('#DataGridMaster').datagridLoadRpt({
|
|
|
title: '',
|
|
title: '',
|
|
|
idField: 'SID',
|
|
idField: 'SID',
|
|
|
queryParams: $('#ffMaster').serializeJson(),
|
|
queryParams: $('#ffMaster').serializeJson(),
|
|
@@ -152,7 +114,9 @@
|
|
|
pageSize: 100,
|
|
pageSize: 100,
|
|
|
fixWidth: 120,
|
|
fixWidth: 120,
|
|
|
mergeWidth: 80,
|
|
mergeWidth: 80,
|
|
|
- splitChar: '_'
|
|
|
|
|
|
|
+ columnMenu: '#btnColumnMenu',
|
|
|
|
|
+ columnMoving: true,
|
|
|
|
|
+ splitChar: '|'
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|