function findCustomerCanUseBailInfo(customerId,agencyId){
$('#t_customerCanReturn').datagrid(
{
idField :'id', //只要创建数据表格 就必须要加 ifField
title : null,
fit :true,
url : parent.baseUrl+ 'customer/bail/bailPayDetailsForAuctions?customerId='+customerId+'&&agencyId='+agencyId,
method :'POST',
fitColumns :false,
nowrap :false,
striped :true, //隔行变色特性S
loadMsg : '数据正在加载,请耐心的等待...',
rownumbers :true,//sortName : 'customerNo',//sortOrder : 'desc',
rowStyler : function(index, record) {
},
onSelect: function( rowIndex, rowData){
returnBailForAuctionsSum= Number(returnBailForAuctionsSum)+Number(rowData.canReturnBail);
$('#bailReturnSum').textbox('setValue',returnBailForAuctionsSum);
},
onUnselect: function (rowIndex, rowData) {
returnBailForAuctionsSum= Number(returnBailForAuctionsSum)-Number(rowData.canReturnBail);
$('#bailReturnSum').textbox('setValue',returnBailForAuctionsSum);
},
onSelectAll:function(rowIndex, rowData){if (selectAllFlag == 1) {
var arr= $('#t_customerCanReturn').datagrid('getSelections');if (arr.length <= 0) {
$('#bailReturnSum').textbox('setValue',returnBailForAuctionsSum);return;
}
returnBailForAuctionsSum= 0;for (var i = 0; i < arr.length; i++) {
returnBailForAuctionsSum= Number(returnBailForAuctionsSum)+Number(arr[i].canReturnBail);
}
$('#bailReturnSum').textbox('setValue',returnBailForAuctionsSum);
}
},
onUnselectAll:function(rowIndex, rowData){
returnBailForAuctionsSum= 0;
$('#bailReturnSum').textbox('setValue',returnBailForAuctionsSum);
},
frozenColumns : [ [//冻结列特性 ,不要与fitColumns 特性一起使用
{
field :'ck',
width :50,
checkbox :true} ] ],
columns : [ [ {
field :'bailClass',
title :'保证金类别',
width :75,
align :'center',
formatter : returnFtt
},{
field :'agencyName',
title :'市场名称',
width :120,
align :'center',
}, {
field :'payWay',
title :'支付渠道',
width :80,
align :'center',
formatter : payWayFtt
}, {
field :'bailPayMoney',
title :'缴纳金额',
width :80,
align :'center',
}, {
field :'payWayName',
title :'支付方式',
width :105,
align :'center',
}, {
field :'returnBailPay',
title :'已退金额',
width :80,
align :'center',
formatter : frozenFtt
}, {
field :'canReturnBail',
title :'可退金额',
width :105,
align :'center',
formatter : frozenFtt
}, {
field :'frozenMoney',
title :'冻结金额',
width :80,
align :'center',
formatter : frozenFtt
}, {
field :'lockBailMoney',
title :'锁定金额',
width :80,
align :'center',
}, {
field :'payTime',
title :'缴纳时间',
width :180,
align :'center',
},{
field :'handlerWin',
title :'窗口',
width :80,
align :'center',
},{
field :'remarks',
title :'备注',
width :180,
align :'center'}/*, {
field : 'action',
title : '退款金额',
width : 120,
align : 'center',
formatter : returnBailFtt1
}*/] ],
onLoadSuccess:function(){
$('#t_customerCanReturn').datagrid('selectAll');
var arr= $('#t_customerCanReturn').datagrid('getSelections');if (arr.length <= 0) {
returnBailForAuctionsSum= 0;
$('#bailReturnSum').textbox('setValue',0);return;
}
returnBailForAuctionsSum= 0;for (var i = 0; i < arr.length; i++) {
returnBailForAuctionsSum= Number(returnBailForAuctionsSum)+Number(arr[i].canReturnBail);
}
$('#bailReturnSum').textbox('setValue',returnBailForAuctionsSum);
selectAllFlag= 1;
},/*pagination : true,
pageSize : 10,
pageList : [ 5, 10, 15, 20, 50 ],*/}
);
}
function returnBailFtt1(){
var f= '';returnf;
}