mygrid3 = $("#list3").jqGrid({
width: 800,
height: 450,
url: 'NetBarQuery/',
datatype: 'json',
mtype: 'POST',
pager: jQuery('#pager3'),
rowNum: 20,
rowList: [20, 40, 60, 80],
sortname: 'Id',
sortorder: "desc",
viewrecords: true,
imgpath: '/scripts/themes/steel/images',
caption: '查询条件:',
recordtext: '条记录',
loadtext: 'loading....',
colNames: ['序号', '网吧名称', '省份', '办事处', '区/县', '绑定人', '绑定人账号', '绑定日期', '类型'],
colModel: [{ name: 'netbarid', index: 'NETBARID', width: 160, align: 'center' },
{ name: 'barname', index: 'BARNAME', width: 160, align: 'center' },
{ name: 'province', index: 'PROVINCE', width: 160, align: 'center' },
{ name: 'city', index: 'CITY', width: 160, align: 'center' },
{ name: 'county', index: 'COUNTY', width: 160, align: 'center' },
{ name: 'bindname', index: 'BINDNAME', width: 160, align: 'center' },
{ name: 'bindaccount', index: 'BINDACCOUNT', width: 160, align: 'center' },
{ name: 'handletime', index: 'HANDLETIME', width: 160, align: 'center' },
{ name: 'atype', index: 'ATYPE', width: 160, align: 'center'}],
loadComplete: function() {
var sumrecords = $("#list3").getGridParam("records");
if (sumrecords != null) {
$('#totalsum').text(sumrecords);
}
else {
$('#totalsum').text(0);
}
},
onSelectRow: function(rowid) {
DisplayDetails3(rowid);
}
});