网银核销复选框事件修改
This commit is contained in:
parent
bd992f6d69
commit
61c17aabd3
@ -1106,6 +1106,10 @@ TableBuilder.SelAll = function(tableId,source){
|
||||
var objs = document.getElementsByName("check_S_" + tableId);
|
||||
for(var i=0;i<objs.length;i++){
|
||||
objs[i].checked = source.checked;
|
||||
if(source.checked && window.SellAllHandle){
|
||||
var status = SellAllHandle(i);
|
||||
if(status == false) return status;
|
||||
}
|
||||
}
|
||||
TableBuilder.displaySelectedRows(tableId);
|
||||
};
|
||||
|
||||
@ -96,7 +96,6 @@ div.list_div_totalcount{
|
||||
color:#333333;
|
||||
font-size:12px;
|
||||
height:30px;
|
||||
*+height:30px;
|
||||
cursor:col-resize;
|
||||
}
|
||||
/*表格标题第一行第一列左边框样式,配合list_topdiv_header的 边框样式使用*/
|
||||
|
||||
@ -62,7 +62,6 @@
|
||||
var portionMoney = 0;
|
||||
var mayopeMoney = 0;
|
||||
$(function(){
|
||||
//$("#DW_CheckAll_myiframe0").style.visibility="visible";
|
||||
mayopeMoney = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/GetEbankMayopeMoney.jsp","FlowUnid=<%=flowunid%>");
|
||||
var phaseInput = $("<input type='checkbox' style='vertical-align:middle;display:none;' id='period'/><label for='period' id='periodLabel' style='vertical-align:middle;display:none;'><a>允许隔期回笼</a></label>");
|
||||
$("#ListButtonArea").append(phaseInput);
|
||||
@ -71,9 +70,20 @@
|
||||
setCheckBoxEvent();//搜索页面和排序后执行
|
||||
}
|
||||
setCheckBoxEvent();
|
||||
$("#DW_CheckAll_myiframe0").remove();
|
||||
// $("#DW_CheckAll_myiframe0").remove();
|
||||
})
|
||||
|
||||
|
||||
|
||||
function afterSubmitFilter1(){
|
||||
$("#DW_CheckAll_myiframe0").remove();
|
||||
}
|
||||
|
||||
// ȫѡºó²Ù×÷
|
||||
function SellAllHandle(rowNum){
|
||||
var status = checkInputData(rowNum);
|
||||
if(status == false)$("#DW_CheckAll_myiframe0").removeAttr("checked");
|
||||
}
|
||||
|
||||
function setCheckBoxEvent(){
|
||||
/* if($("#DW_CheckAll_myiframe0")){
|
||||
$("#DW_CheckAll_myiframe0").hide();
|
||||
@ -108,7 +118,7 @@
|
||||
if(prevPaymentNumber == paymentNumber && prevPlanList == thisPlanList-1){
|
||||
alert("操作失败,不允许隔期回笼,请重新选择!");
|
||||
$("input[onclick='checkInputData("+i+")']").removeAttr("checked");
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}else{
|
||||
@ -119,7 +129,7 @@
|
||||
if(sResult != "SUCCESS"){
|
||||
alert("操作失败,不允许隔期回笼,请重新选择!");
|
||||
$("input[onclick='checkInputData("+i+")']").removeAttr("checked");
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -154,16 +164,16 @@
|
||||
if(!flag){
|
||||
alert("操作失败,不允许隔期回笼,请重新选择!");
|
||||
$("input[onclick='checkInputData("+i+")']").removeAttr("checked");
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
if(!cancelFlag){
|
||||
alert("操作失败,不允许隔期回笼,请重新选择!");
|
||||
$("input[onclick='checkInputData("+i+")']").prop("checked","true");
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if($.inArray(i, getCheckedRows(0)) == -1){
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
var thisRowMoney = removeFomatedNumber(getItemValue(0,i,"rent_over"));//最后一次选中的收款余额
|
||||
thisRowMoney = eval(thisRowMoney + "+" + removeFomatedNumber(getItemValue(0,i,"penalty_over")));//最后一次选中的收款余额
|
||||
@ -185,6 +195,7 @@
|
||||
if(prepareIncomeMoney-thisRowMoney>=mayopeMoney){
|
||||
alert("操作失败,网银可核销金额已为0。");
|
||||
$("input[onclick='checkInputData("+i+")']").removeAttr("checked");
|
||||
return false;
|
||||
}else if(mayopeMoney-(prepareIncomeMoney-thisRowMoney)>0 && mayopeMoney-(prepareIncomeMoney-thisRowMoney)<thisRowMoney){
|
||||
portionCollectionID = getItemValue(0,i,"ID");
|
||||
portionMoney = mayopeMoney-(prepareIncomeMoney-thisRowMoney);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user