function returnDetailDatagrid (id) {
$("-sharpreturnDetail").datagrid({
width: "auto",
method:"post",
border:false,
fit:true,
fitColumns:true,
singleSelect:true,
loadMsg:"......",
queryParams:{serviceName:"YEFHMXJK",serviceNo:serviceNo,inParam:"{requestId:""+holly.currentTime("yyyyMMddhhmiss")+"11111111",requestTime:""+holly.currentTime("yyyyMMddhhmiss")+"",accNbr:""+serviceNo+"",returnInstId:""+id+"",interfaceId:"WEB"}"},
url:holly.getPath()+"/rest/AccountController/returnDetail?getTimestamp="+getTimestamp,
columns:[[
{field:"seqId",title:"",width:50,align:"center"},
{field:"returnDate",title:"",width:100,align:"center"},
{field:"acctBalanceId",title:"Id",width:120,align:"center"},
{field:"factCharge",title:"",width:80,align:"center"},
{field:"countFormula",title:"",width:80,align:"center",
formatter: function(value,rowData,rowIndex){
return "<span title=""+value+"">"+value+"</span>";
}
},
{field:"balanceAttrId",title:"/",width:90,align:"center",
formatter: function(value,rowData,rowIndex){
if(value == "0"){
return ""
}else if(value == "1"){
return ""
}
}
},
{field:"returnState",title:"",width:80,align:"center",
formatter: function(value,rowData,rowIndex){
if(value == "0"){
return "";
}else if(value == "1"){
return "";
}else{
return "()";
}
}
},
{field:"returnDesc",title:"",width:80,align:"center"},
{field:"leftPhase",title:"",width:80,align:"center"}
]]
});
}
if you want to take the tuner apart, load the format first, and then put the data in
.