传统产品 融资额计算
This commit is contained in:
parent
f5d80ff5d1
commit
9c71238696
@ -102,10 +102,14 @@
|
||||
String productType = Sqlca.getString(new SqlObject("select attribute2 from business_type where typeno='"+productId+"'"));
|
||||
if("car_product".equals(productType)){
|
||||
doTemp.setReadOnly("CLEAN_LEASE_MONEY", false);
|
||||
}else{
|
||||
}else if("business_product".equals(productType)){
|
||||
/* doTemp.setVisible("CORPUS_RATIO", true);
|
||||
doTemp.setVisible("CORPUS", true);
|
||||
doTemp.setRequired("CORPUS_RATIO", true); */
|
||||
doTemp.setHtmlEvent("EQUIP_AMT", "onchange", "calcRaisedForTraditional");
|
||||
doTemp.setHtmlEvent("INSURANCE_PREMIUM", "onchange", "calcRaisedForTraditional");
|
||||
doTemp.setHtmlEvent("OTHER_INCOME", "onchange", "calcRaisedForTraditional");
|
||||
doTemp.setHtmlEvent("FIRST_PAYMENT", "onchange", "calcRaisedForTraditional");
|
||||
}
|
||||
if("quoted_price".equals(calType)){//客户报价 流程号存的是客户主键
|
||||
doTemp.setDefaultValue("cust_id", flowunid);
|
||||
@ -1048,7 +1052,7 @@ function rentOrRateChange(){
|
||||
CalcControl.RentOrRateView();
|
||||
|
||||
//document.all("frame_list_knowing").src = document.all("frame_list_knowing").src;
|
||||
|
||||
debugger;
|
||||
if(count > 0){
|
||||
AsControl.RunJavaMethod("com.tenwa.reckon.executor.CreateTransactionExecutor","runDelteKnowing","flowunid=<%=flowunid%>,plannumber=<%=plannumber%>,planCName=<%=planCName%>,calType=<%=calType%>");
|
||||
|
||||
@ -1230,7 +1234,16 @@ var fundError={};
|
||||
catch(e){}
|
||||
}
|
||||
}
|
||||
|
||||
//传统业务 融资额计算
|
||||
function calcRaisedForTraditional(){
|
||||
var EquipAmt = getItemValue(0,0,'EQUIP_AMT');//租赁物成本
|
||||
var InsurancePermium = getItemValue(0,0,'INSURANCE_PREMIUM');//保险费
|
||||
var otherIncome = getItemValue(0,0,'OTHER_INCOME');//其他收入
|
||||
var FirstPayment = getItemValue(0,0,'FIRST_PAYMENT');//首付款
|
||||
var abc = Number(EquipAmt ? EquipAmt : 0 );
|
||||
var cleanLeaseMoney = (Number(EquipAmt ? EquipAmt : 0 )-Number(FirstPayment ? FirstPayment : 0 )+Number(InsurancePermium ? InsurancePermium : 0 )+Number(otherIncome ? otherIncome : 0 )).toFixed(2);
|
||||
setItemValue(0,0,'CLEAN_LEASE_MONEY',cleanLeaseMoney);
|
||||
}
|
||||
jQuery.validator.prototype.showLabel = function(element,message){
|
||||
var id=element.getAttribute('id');
|
||||
if(element.getAttribute('errorInfo')){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user