//前台表格
<script type="text/javascript">
//加载表格内容
function loadTable() {
var params = "";
if($.trim($("#skrqS").val())=="" || $.trim($("#skrqE").val())=="")
{
alert("请选择开票日期");
return;
}
params += "\"skrqS\":\""+$.trim($("#skrqS").val())+"\"";
params += ",\"skrqE\":\""+$.trim($("#skrqE").val())+"\"";
params = "{"+params+"}";
params = JSON.parse(params);
$('#tbMain').datagrid({
method: "post",
nowrap:true,
striped:true,
rownumbers:false,
url: "../../ColTradeServlet?method=getkpSummary&round="+Math.random(),
queryParams:params,
loadMsg: "正在加载数据,请等待!",
height:$("#content").height()-$(".widget-title").outerHeight(true)-$("#title").outerHeight(true)-$("#params").outerHeight(true)-20,
singleSelect: true,
columns: [
[
{ field: 'USERID', title: '网点编码', width: 100,align: 'center', halign: 'center' },
{ field: 'TRADEDATE', title: '开票日期' , width: 100,align: 'center', halign: 'center' },
{ field: 'BILLNAME', title: '票据名称', width: 300,align: 'center', halign: 'center' },
{ field: 'NUM', title: '实收笔数', width: 100,align: 'right', halign: 'center' },
{ field: 'MONEY', title: '实收金额',formatter:rowformater1, width: 100,align: 'right', halign: 'center' }
]
],
onLoadSuccess: function(data) {
var snum = 0;
var totamt = 0;
if(data.rows.length>0)
{
for(var i=0;i