这个问答怎么删
$(function () {
$('#crList').datagrid({
url: 'GetCardReport',
singleSelect: true,
rownumbers: true,
remoteSort: false,
striped: true,
nowrap: false,
fitColumns: true,
fit: true,
pagination: true,
pageList: [2, 500, 1000, 2000, 50000],
pageSize: 2,
columns: [[
{
field: 'Code', title: '编号', width: 150, align: 'center', sortable: true,
sorter: function (a, b) {
return (a > b ? 1 : -1);
}
},
{
field: 'Name', title: '名称', width: 150, align: 'center', sortable: true,
sorter: function (a, b) {
return (a > b ? 1 : -1);
}
},
{
field: 'Mold0', title: '卡式已存入', width: 150, align: 'center',
formatter: function (d) {
if (d == 0)
return '';
else
return d ;
}
, sortable: true,
sorter: function (a, b) {
return (a > b ? 1 : -1);
}
},
{
field: 'Mold1', title: '本式已存入', width: 150, align: 'center',
formatter: function (d) {
if (d == 0)
return '';
else
return d;
}
, sortable: true,
sorter: function (a, b) {
return (a > b ? 1 : -1);
}
},
{
field: 'MoldTotal', title: '共计', width: 150, align: 'center',
formatter: function (d) {
if (d == 0)
return '';
else
return d;
}
, sortable: true,
sorter: function (a, b) {
return (a > b ? 1 : -1);
}
}
]],
onLoadSuccess: function (data) {
}
});
});