提前结清页面调整
This commit is contained in:
parent
296330ef4f
commit
8781a52426
@ -6,7 +6,6 @@
|
||||
Content: 示例详情页面
|
||||
History Log:
|
||||
*/
|
||||
|
||||
String flowunid = CurPage.getParameter("FlowUnid");
|
||||
String RightType = CurPage.getParameter("RightType");//选择模式
|
||||
String ishistory=CurPage.getParameter("IsHistory");
|
||||
@ -31,7 +30,7 @@
|
||||
String sTempletNo = "LCContractTerminate";//--模板号--
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
doTemp.setDefaultValue("PAYMENT_NUMBER", paymentnumber);
|
||||
if(Integer.parseInt(num)<2){
|
||||
if(Integer.parseInt(num)<2 || subsection.equals("segmented_financing")){
|
||||
doTemp.setHtmlEvent("PAYDAY_ADJUST","onchange","getTerminateInfo");
|
||||
}
|
||||
doTemp.setHtmlEvent("ADJUST_TYPE","onchange","changeInfo");
|
||||
@ -74,16 +73,6 @@
|
||||
sButtonPosition = "south";
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
debugger
|
||||
if(Number("<%=num%>")<2 || "segmented_financing".equals("<%=subsection%>")){
|
||||
$("#A_div_1007").attr("style","display:none;");
|
||||
$("#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;");
|
||||
}
|
||||
});
|
||||
|
||||
function getRepurchaseMoney(){
|
||||
var ratio=getItemValue(0,0,"REPURCHASE_RATIO");
|
||||
@ -260,6 +249,7 @@ $(function(){
|
||||
//保存数据
|
||||
function saveRecord(sPostEvents)
|
||||
{
|
||||
debugger
|
||||
//校验是否有保证金代偿
|
||||
var isCompensation = AsControl.RunJavaMethod("com.tenwa.reckon.executor.RentCalHelper","isCompensation","contractId=<%=contractId%>");
|
||||
if("false" == isCompensation){
|
||||
@ -309,7 +299,6 @@ $(function(){
|
||||
}
|
||||
}
|
||||
as_save("myiframe0","run()");
|
||||
|
||||
}else{
|
||||
alert('请先撤销变更,再进行变更操作!!!');
|
||||
}
|
||||
@ -322,20 +311,27 @@ $(function(){
|
||||
var SETTLE_METHOD = getItemValue(0,0,"SETTLE_METHOD"); // 结清方式
|
||||
var ret = "";
|
||||
if(SETTLE_METHOD == "SETTLE_METHOD01"){
|
||||
AsControl.RunJavaMethod("com.tenwa.reckon.executor.CreateTransactionExecutor","runTerminate","flowunid=<%=flowunid%>,plannumber=<%=paymentnumber%>,productId=<%=productId%>,calType=pay_process");
|
||||
AsControl.RunJavaMethod("com.tenwa.reckon.executor.CreateTransactionExecutor","runTerminate","flowunid=<%=flowunid%>,plannumber=<%=paymentnumber%>,productId=<%=productId%>,calType=pay_process,MAXIMUM_TOTAL=MAXIMUM_TOTAL,REPURCHASE_MONEY = REPURCHASE_MONEY");
|
||||
ret = "操作成功"
|
||||
}else if(SETTLE_METHOD == "SETTLE_METHOD02"){
|
||||
ret = AsControl.RunJavaMethodTrans("com.tenwa.voucher.CreateVoucherProcess.EarlyContract","partSettlement","REPURCHASE_RATIO="+EQUIPMENT_RATIO+",flowunid=<%=flowunid%>,contractId=<%=contractId%>,START_DATE=<%=START_DATE%>,plannumber=<%=PAYMENT_NUMBER%>,calType=pay_process,PAYDAY_ADJUST="+PAYDAY_ADJUST+",SettleMethod="+SETTLE_METHOD);
|
||||
}
|
||||
if(ret=="操作成功"){
|
||||
$m.alert("操作成功","success");
|
||||
alert("提前结清操作成功");
|
||||
}else{
|
||||
$m.alert("结清失败,请联系管理员!","error");
|
||||
alert("提前结清操作失败,请联系管理员!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
jQuery(function(){
|
||||
if(Number("<%=num%>")<2 || "segmented_financing"==("<%=subsection%>")){
|
||||
$("#A_div_1007").attr("style","display:none;");
|
||||
$("#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;");
|
||||
}
|
||||
setItemValue(0,0,"flowunid","<%=flowunid%>");
|
||||
var payday_date = getItemValue(0,getRow(),"PAYDAY_DATE");
|
||||
if(""==payday_date || "undefined"==payday_date || null == payday_date){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user