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();
$('#ddv-' + index).datagrid({
url: getDetailUrl + row.PID,
fitColumns: false,
singleSelect: true,
rownumbers: true,
loadMsg: '',
height: 'auto',
columns: [[
{ field: 'POSITION', title: '位置', width: 90, align: 'center'
},
{ field: 'DEFECTKEY', title: '物料名称', width: 90,
align: 'left', hidden: true
},
{ field: 'DEFECTVALUE', title: '缺陷类型', width: 150, align: 'left'
}
]],
onResize: function () {
$('#QDateGrid').datagrid('fixDetailRowHeight', index);
},
onLoadSuccess: function () {
setTimeout(function () {
$('#QDateGrid').datagrid('fixDetailRowHeight', index);
}, 0);
}
});
$('#QDateGrid').datagrid('fixDetailRowHeight', index);
}