//长春富维江森投料管理模块中产品相关信息的公用方法 function TableStyle(index, row) { return '
'; } //绑定数据列 function BindExpandRow(index, row) { if (row == undefined) { row = $("#QDateGrid").datagrid("getSelected"); } if (index == undefined) { index = $("#QDateGrid").datagrid("getRowIndex", row); } var getDetailUrl = $('#GETDETAILINFO').val(); $('#ROWINDEX').val(index); $('#ddv-' + index).datagrid({ url: getDetailUrl + row.PRODUCTCODE, fitColumns: false, singleSelect: true, rownumbers: true, loadMsg: '', height: 'auto', columns: [[ { field: 'PID', title: '', width: 40, align: 'center', hidden: true }, { field: 'MATERIALNAME', title: '物料名称', width: 300, align: 'center' }, { field: 'MATERIALCODE', title: '物料号', width: 150, align: 'center' }, { field: 'PROCODE', title: '零件条码', width: 150, align: 'center' }, { field: 'MACHINENAME', title: '设备名称', width: 200, align: 'center' }, { field: 'CREATEUSERNAME', title: '操作人', width: 200, align: 'center' }, { field: 'CREATEDATE', title: '操作时间', width: 200, align: 'center' } ]], onResize: function () { $('#QDateGrid').datagrid('fixDetailRowHeight', index); }, onLoadSuccess: function () { setTimeout(function () { $('#QDateGrid').datagrid('fixDetailRowHeight', index); }, 0); } }); $('#QDateGrid').datagrid('fixDetailRowHeight', index); // alert(row.PRODUCTCODE); }