修改提前部分结清只能发起一次
This commit is contained in:
parent
606b841ce7
commit
bf121726ba
@ -464,6 +464,7 @@
|
||||
var settlemethod = getItemValue(0,0,"SETTLE_METHOD");
|
||||
var ADJUST_TYPE = getItemValue(0,0,"ADJUST_TYPE");
|
||||
var PAYDAY_ADJUST = getItemValue(0,0,"PAYDAY_ADJUST");
|
||||
var disposable = AsControl.RunJavaMethodTrans("com.tenwa.voucher.CreateVoucherProcess.EarlyContract","getdisposable","flowunid=<%=flowunid%>");
|
||||
if(ADJUST_TYPE.length==0){
|
||||
alert("请先选择变更类型!!!");
|
||||
setItemValue(0,getRow(),"ADJUST_TYPE","");
|
||||
@ -482,7 +483,17 @@
|
||||
$("#A_div_1009").attr("style","display:block;");
|
||||
$("#A_div_2096").attr("style","display:block;");
|
||||
$("#A_div_2098").attr("style","display:block;");
|
||||
settlemet();
|
||||
if(disposable == "false"){
|
||||
settlemet();
|
||||
}else{
|
||||
alert("此合同已发起过提前部分结清,现只能发起全部结清");
|
||||
setItemValue(0,getRow(),"SETTLE_METHOD","SETTLE_METHOD01");
|
||||
$("#A_div_1008").attr("style","display:none;");
|
||||
$("#A_div_1009").attr("style","display:none;");
|
||||
$("#A_div_2096").attr("style","display:none;");
|
||||
$("#A_div_2098").attr("style","display:none;");
|
||||
getTerminateInfo();
|
||||
}
|
||||
}else if(settlemethod=="SETTLE_METHOD01") {
|
||||
$("#A_div_1008").attr("style","display:none;");
|
||||
$("#A_div_1009").attr("style","display:none;");
|
||||
|
||||
@ -523,6 +523,21 @@ public class EarlyContract {
|
||||
}
|
||||
|
||||
|
||||
//提前部分结清只能发起一次
|
||||
public String getdisposable(JBOTransaction tx){
|
||||
Transaction Sqlca = null;
|
||||
String disposable = "";
|
||||
try {
|
||||
Sqlca = Transaction.createTransaction(tx);
|
||||
//获取合同租赁物是否发起过提前部分结清
|
||||
disposable = Sqlca.getString("select case when count(*)>0 then 'true' else 'false' end from apzl.lb_equipment_car_temp where FLOWUNID = '"+flowunid+"' and TERMINATE_TYPE = '2'");
|
||||
}catch(Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return ""+disposable+"";
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public String partSettlement(JBOTransaction tx){
|
||||
com.amarsoft.awe.util.Transaction Sqlca = null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user