Merge branch 'develop' of git@git2.tenwa.com.cn:ApzlDev/apzl_leasing.git into yexuan

This commit is contained in:
yexuan 2018-06-23 15:06:02 +08:00
commit 061fc6e306
19 changed files with 310 additions and 59 deletions

View File

@ -180,16 +180,17 @@ $(function(){
});
}
}
CalcControl.InitLsaseTerm();
CalcControl.PeriodTypeView();
CalcControl.SettleMethodView();
changeSettleMethod2();
changeRateType();
CalcControl.RentOrRateView();
count++;
}else{
changeSettleMethod3();
}
});
function importCustomerQuot(){
@ -717,11 +718,13 @@ function changeRateType(){
//根据金额算比例
function getRatioByMoney(e){
debugger;
var equipAmt=getItemValue(0,0,"EQUIP_AMT");//设备款
var cleanLeaseMoney=getItemValue(0,0,"CLEAN_LEASE_MONEY");//融资额
var fundRules=calcRules["fund"];
var firstPayment=getItemValue(0,0,"FIRST_PAYMENT");//首付款
cleanLeaseMoney=Number(equipAmt)-Number(firstPayment);
var finalPayment=getItemValue(0,0,"FINAL_PAYMENT");//棺마운
cleanLeaseMoney=Number(equipAmt)-Number(firstPayment)-Number(finalPayment);
if("<%=productType%>" == "2"){
setItemValue(0,0,"CLEAN_LEASE_MONEY",cleanLeaseMoney);
if(!getItemValue(0,getRow(),"CLEAN_LEASE_MONEY")){

View File

@ -82,8 +82,8 @@ function saveproj_name(){
},"请选择经销商");
}
//省市
function selectRegionCode(){
//省市
/* function selectRegionCode(){
var area_code = getItemValue(0,getRow(),"DISTRIBUTOR_ADDRESS");
AsDialog.PopView("/Common/ToolsA/AreaVFrame.jsp","AreaCode="+area_code,"dialogWidth=850px;dialogHeight=450px;center:yes;status:no;statusbar:no",function(sAreaCodeInfo){
//增加清空功能的判断
@ -103,6 +103,42 @@ function saveproj_name(){
}
}
},'请选择省市');
} */
var province="";//定义一个全局变量
// 选择省份
function selectProvinceCode(){
AsDialog.OpenSelector("selectProvinceCode","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn==""){
//alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
sReturn = sReturn.split("@");
// alert(sReturn[1]);
setItemValue(0,0,"provinces",sReturn[1]);
province=sReturn[0];
setCertType();
},"请选择省份",'');
}
// 选择市区
function selectCityCode(){
//alert("参数:"+province);
if(province=="" || province==null){
alert("请先选择省份。");
return;
}else{
AsDialog.OpenSelector("selectCityCode","province,"+province,"dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn==""){
//alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
sReturn = sReturn.split("@");
setItemValue(0,0,"DISTRIBUTOR_ADDRESS",sReturn[0]);//地区区号
setItemValue(0,0,"DISTRIBUTOR_ADDRESSNAME",sReturn[1]);//地区
},"请选择地区",'');
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -40,15 +40,20 @@
var certType = getItemValue(0,getRow(0),"CERTTYPE");
var certId = getItemValue(0,getRow(0),"CERTID");
if(certType==""){
//setErrorTips("certType","证件类型不能为空!");
alert("证件类型不能为空!");
return false;
}
if(certId==""){
//setErrorTips("certId","证件号不能为空!");
alert("证件号不能为空!");
return false;
}
if(certType=="Ent02"){
if(checkORGRight1(certId)){
return true;
}else{
//setErrorTips("certId","组织机构代码格式不正确!");
alert("组织机构代码格式不正确!");
return false;
}
@ -57,6 +62,7 @@
if(CheckLicense(certId)){
return true;
}else{
//setErrorTips("certId","身份证格式不正确!");
alert("身份证格式不正确!");
return false;
}
@ -64,25 +70,43 @@
if(certType=="Ent03"){
return true;
}
}
function checkTel(){
var mobile = getItemValue(0,getRow(0),"mobile");
if(mobile==""){
//setErrorTips("mobile","手机号不能为空!");
alert("手机号不能为空!");
return false;
}
if(CheckPhoneCode(mobile)){
return true;
}else{
//setErrorTips("mobile","手机号格式不正确!");
alert("手机号格式不正确!");
return false;
}
}
function checkWorkTel(){
var workTel = getItemValue(0,getRow(0),"WORKTEL");
if(workTel==""){
//setErrorTips("WORKTEL","单位电话不能为空!");
alert("单位电话不能为空!");
return false;
}
if(CheckPhoneCode(workTel)){
return true;
}else{
//setErrorTips("WORKTEL","单位电话格式不正确!");
alert("单位电话格式不正确!");
return false;
}
}
function save(){
if(checkTel()==true&&checkCertId()==true){
debugger;
if(checkTel()==true&&checkCertId()==true&&checkWorkTel()==true){
as_save(0,"goBack()");
}
}

View File

@ -65,12 +65,13 @@
var leasfrom = getItemValue(0,getRow(),"LEAS_FORM");
var projectSource = getItemValue(0,getRow(),"PROJECT_SOURCE");
var customerType = "<%=custype%>";
if(customerType=="01"){
if(customerType=="01"){//法人
as_save("myiframe0","frame_list.window.as_save(0);");
//as_save(0);
}
if(customerType=="03"){
if(customerType=="03"){//自然人
frame_list.window.saveRecord(leasfrom,projectSource);
//as_save("myiframe0","frame_list.window.as_save(0);");
}
}
</script>

View File

@ -15,7 +15,6 @@
String sTempletNo = "BusinessCustomerInfo";//--Ä£°åºÅ--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
String custname=CurPage.getParameter("custname");
System.out.print(custname+"=====================");
doTemp.setHtmlEvent("CERTID","onChange","changeCertid");
doTemp.setHtmlEvent("MARRIAGE","onChange","changeChildrensNumber");
String rightType = CurPage.getParameter("RightType");//Ò³ÃæÖ»¶ÁÓë·ñ
@ -160,6 +159,7 @@
}
function saveRecord(leasfrom,projectSource){
//as_save("myiframe0","frame_list.window.as_save(0);");
<%-- var idexpiry=getItemValue(0,getRow(),"IDEXPIRY");
var date1 = "<%=dateString%>";
if(date1>=idexpiry){

View File

@ -304,7 +304,7 @@
}
}
// if(carAttributes=='1'){
// if(carAttributes=='01'){
// AsDialog.OpenSelector("SelectBusinessType","ProductType,1,TypeNo,0005","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
// function(sReturn){
// if(!sReturn||sReturn=="_CANCEL_"||sReturn==""||sReturn=="_NONE_")
@ -317,7 +317,7 @@
// setItemValue(0,0,"productId",sReturn[0]);
// setItemValue(0,0,"productName",sReturn[1]);
// },"ÇëÑ¡Ôñ²úÆ·",'');
// }else if(carAttributes=='2'){
// }else if(carAttributes=='02'){
// AsDialog.OpenSelector("SelectBusinessType","ProductType,1,TypeNo,0005","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
// function(sReturn){
// if(!sReturn||sReturn=="_CANCEL_"||sReturn==""||sReturn=="_NONE_")

File diff suppressed because one or more lines are too long

View File

@ -167,7 +167,7 @@
<Parameter COMPONENTTYPE="PRD0381" DATATYPE="5" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="AdvanceInvoicing" PARAMETERNAME="提前开票天数" STATUS="1"/>
<Parameter COMPONENTTYPE="PRD0380" DATATYPE="5" METHODTYPE="Nothing" OPERATOR="MINIMUMVALUE,MAXIMUMVALUE,VALUE" PARAMETERID="DefaultValue" PARAMETERNAME="默认值" STATUS="1"/>
<Parameter CODESCRIPT="residual_method" CODESOURCE="Code" COMPONENTTYPE="PRD0380" DATATYPE="4" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="ResidualMethod" PARAMETERNAME="残值处理方式" SELECTTYPE="05" STATUS="1"/>
<Parameter CODESCRIPT="INCOME_NUMBER" CODESOURCE="Code" COMPONENTTYPE="PRD0350" DATATYPE="5" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="RentMonth" PARAMETERNAME="×âÁÞÆÚÏÞ" SELECTTYPE="04" STATUS="1"/>
<Parameter CODESCRIPT="INCOME_NUMBER" CODESOURCE="Code" COMPONENTTYPE="PRD0350" DATATYPE="5" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="INCOME_NUMBER" PARAMETERNAME="×âÁÞÆÚÏÞ" SELECTTYPE="04" STATUS="1"/>
<Parameter COMPONENTTYPE="PRD0380" DATATYPE="6" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="EndValueRatio" PARAMETERNAME="残值比例限定" STATUS="1"/>
<Parameter CODESCRIPT="yes_no" CODESOURCE="Code" COMPONENTTYPE="PRD0385" DATATYPE="4" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="isBalance" PARAMETERNAME="是否差额放款" SELECTTYPE="05" STATUS="1"/>
<Parameter COMPONENTTYPE="PRD0386" DATATYPE="1" METHODTYPE="Nothing" OPERATOR="VALUE" PARAMETERID="GuaranteeName" PARAMETERNAME="担保人名称" STATUS="1"/>

View File

@ -1,4 +1,6 @@
<?xml version="1.0" encoding="GBK" standalone="no"?><ComponentTypes>
<ComponentType ID="PRD0301" NAME="还款方式" RELATIVETEMPLETCOLNAME="RPT" STATUS="1"/>
<ComponentType ID="PRD0315" NAME="费用设定" STATUS="1"/>
<ComponentType ID="PRD01" NAME="准入要求" STATUS="2"/>
<ComponentType ID="PRD0350" NAME="产品设定" STATUS="1"/>
<ComponentType ID="PRD0314" NAME="方案信息" STATUS="2"/>
@ -6,23 +8,18 @@
<ComponentType ID="PRD0312" NAME="租赁物类型" STATUS="2"/>
<ComponentType ID="PRD0401" NAME="受理调查" STATUS="2"/>
<ComponentType ID="PRD0402" NAME="审查审批" STATUS="2"/>
<ComponentType ID="PRD0412" NAME="资料清单" STATUS="1"/>
<ComponentType ID="PRD0413" NAME="资料组合配置" STATUS="2"/>
<ComponentType ID="PRD0414" NAME="流程附件" STATUS="1"/>
<ComponentType ID="PRD0415" NAME="评分模型" STATUS="2"/>
<ComponentType ID="PRD0416" NAME="信审报告" STATUS="1"/>
<ComponentType ID="PRD0417" NAME="调查报告" STATUS="1"/>
<ComponentType ID="PRD0403" NAME="文档模板" STATUS="1"/>
<ComponentType ID="PRD0380" NAME="残值设定" STATUS="2"/>
<ComponentType ID="PRD0404" NAME="放款支付" STATUS="1"/>
<ComponentType ID="PRD0411" NAME="付款前提" STATUS="1"/>
<ComponentType ID="PRD0301" NAME="还款方式" RELATIVETEMPLETCOLNAME="RPT" STATUS="1"/>
<ComponentType ID="PRD0310" NAME="租金推算方法" STATUS="1"/>
<ComponentType ID="PRD0323" NAME="租金圆整" STATUS="1"/>
<ComponentType ID="PRD0320" NAME="调息" STATUS="1"/>
<ComponentType ID="PRD0321" NAME="分段" STATUS="2"/>
<ComponentType ID="PRD0307" NAME="还款次序" STATUS="1"/>
<ComponentType ID="PRD0315" NAME="费用设定" STATUS="1"/>
<ComponentType ID="PRD0302" NAME="利率方案" RELATIVETEMPLETCOLNAME="RAT" STATUS="2"/>
<ComponentType ID="PRD0322" NAME="利息处理" STATUS="1"/>
<ComponentType ID="PRD0309" NAME="收益核算" STATUS="1"/>
@ -58,4 +55,7 @@
<ComponentType ID="PRD0330" NAME="业务公式" STATUS="2"/>
<ComponentType ID="PRD0384" NAME="联合出资信息" STATUS="2"/>
<ComponentType ID="PRD0386" NAME="渠道方信息" STATUS="2"/>
<ComponentType ID="PRD0412" NAME="资料清单" STATUS="1"/>
<ComponentType ID="PRD0403" NAME="文档模板" STATUS="1"/>
<ComponentType ID="PRD0414" NAME="流程附件" STATUS="1"/>
</ComponentTypes>

View File

@ -1643,6 +1643,8 @@
<!-- Code: OffSheetFlag -->
<attribute name="OffSheetFlag" label="表内外标志" type="STRING"
length="6" />
<attribute name="ATTRIBUTE26" label="车类型" type="STRING"
length="20" />
</attributes>
<manager>
<managerProperties>

View File

@ -1346,6 +1346,11 @@
<attribute name="UPDATEUSERID" label="更新人" type="STRING" length="32"/>
<attribute name="UPDATEORGID" label="更新部门" type="STRING" length="32"/>
<attribute name="UPDATETIME" label="更新时间" type="STRING" length="32"/>
<attribute name="BANK_YURREF" label="业务参考号" type="STRING" length="32"/>
<attribute name="BANK_SQRNBR" label="流水号" type="STRING" length="32"/>
<attribute name="BANK_PAY_ID" label="支付ID" type="STRING" length="32"/>
<attribute name="BANK_REQNBR" label="流程实例号" type="STRING" length="32"/>
<attribute name="BANK_ID" label="支付账户ID" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
@ -1402,6 +1407,11 @@
<attribute name="UPDATEUSERID" label="更新人" type="STRING" length="32"/>
<attribute name="UPDATEORGID" label="更新部门" type="STRING" length="32"/>
<attribute name="UPDATETIME" label="更新时间" type="STRING" length="32"/>
<attribute name="BANK_YURREF" label="业务参考号" type="STRING" length="32"/>
<attribute name="BANK_SQRNBR" label="流水号" type="STRING" length="32"/>
<attribute name="BANK_PAY_ID" label="支付ID" type="STRING" length="32"/>
<attribute name="BANK_REQNBR" label="流程实例号" type="STRING" length="32"/>
<attribute name="BANK_ID" label="支付账户ID" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
@ -2820,7 +2830,6 @@
<class name="LC_CALC_CONDITION_TEMP" label="" keyAttributes="ID">
<attributes>
<attribute name="deposit" label="承租人风险抵押金" type="STRING" length="22"/>
<attribute name="ID" label="标识" type="STRING" length="32"/>
<attribute name="QUOT_ID" label="报价编号" type="STRING" length="32"/>
<attribute name="CUST_ID" label="客户编号" type="STRING" length="32"/>
@ -2944,7 +2953,9 @@
<attribute name="GPS_FINAL_PAYMENT_RATIO" label="GPS尾款付款比例" type="DOUBLE" length="22" scale="6"/>
<attribute name="TABLEWARE_FEE_FIRST_PAYMENT_RATIO" label="精品首付款比例" type="DOUBLE" length="22" scale="6"/>
<attribute name="TABLEWARE_FEE_FINAL_PAYMENT_RATIO" label="精品尾款付款比例" type="DOUBLE" length="22" scale="6"/>
<attribute name="RATE_INTEREST" label="利率/费率" type="DOUBLE" length="22" scale="6"/>
<attribute name="RATE_INTEREST" label="利率/费率" type="DOUBLE" length="22" scale="6"/>
<attribute name="INCIDENTAL_FIRST_PAYMENT_RATIO" label="杂费首付款比例" type="DOUBLE" length="22" scale="6"/>
<attribute name="INCIDENTAL_FINAL_PAYMENT_RATIO" label="杂费尾款付款比例" type="DOUBLE" length="22" scale="6"/>
</attributes>
<manager>
<managerProperties>

View File

@ -1225,13 +1225,10 @@
<attribute name="UPDATETIME" label="更新时间" type="STRING" length="32"/>
<attribute name="UNIONNUMBER" label="联行号" type="STRING" length="32"/>
<attribute name="DISTRIBUTOR_ACCOUNT_TEMP" label="经销商名称" type="STRING" length="32"/>
<attribute name="OPEN_BANK" label="开户银行" type="STRING" length="32"/>
<attribute name="ORGID" label="部门编号" type="STRING" length="32"/>
<attribute name="district" label="地区" type="STRING" length="64"/>
<attribute name="provinceInfo" label="省份" type="STRING" length="64"/>
<attribute name="CRTPVC" label="开户所在省份" type="STRING" length="32"/>
<attribute name="CRTCTY" label="开户所在城市" type="STRING" length="32"/>
<attribute name="open_bank" label="开户银行" type="STRING" length="100"/>
<attribute name="open_bank" label="开户银行" type="STRING" length="100"/>
</attributes>
<manager>
@ -1261,11 +1258,9 @@
<attribute name="APPLY_NUMBER" label="申请编号唯一" type="STRING" length="32"/>
<attribute name="UNIONNUMBER" label="联行号" type="STRING" length="32"/>
<attribute name="form_id" label="正式表id" type="STRING" length="32"/>
<attribute name="CRTPVC" label="开户所在省份" type="STRING" length="32"/>
<attribute name="CRTCTY" label="开户所在城市" type="STRING" length="32"/>
<attribute name="open_bank" label="开户银行" type="STRING" length="100"/>
<attribute name="district" label="地区" type="STRING" length="64"/>
<attribute name="provinceInfo" label="省份" type="STRING" length="64"/>
<attribute name="open_bank" label="开户银行" type="STRING" length="100"/>
</attributes>
<manager>
@ -1315,6 +1310,9 @@
<attribute name="LIMIT_APPROVAL_DATE" label="授信日期" type="STRING" length="32"/>
<attribute name="LIMIT_EFFECTIVE_DATE" label="授信有效期" type="STRING" length="32"/>
<attribute name="LIMIT_END_DATE" label="授信到期日" type="STRING" length="32"/>
<attribute name="district" label="地区" type="STRING" length="64"/>
<attribute name="provinceInfo" label="省份" type="STRING" length="64"/>
<attribute name="open_bank" label="开户银行" type="STRING" length="100"/>
</attributes>
<manager>
<managerProperties>
@ -1367,13 +1365,9 @@
<attribute name="UPDATETIME" label="更新时间" type="STRING" length="32"/>
<attribute name="UNIONNUMBER" label="联行号" type="STRING" length="32"/>
<attribute name="DISTRIBUTOR_ACCOUNT_TEMP" label="经销商名称" type="STRING" length="32"/>
<attribute name="OPEN_BANK" label="开户银行" type="STRING" length="32"/>
<attribute name="district" label="地区" type="STRING" length="64"/>
<attribute name="provinceInfo" label="省份" type="STRING" length="64"/>
<attribute name="CRTPVC" label="开户所在省份" type="STRING" length="32"/>
<attribute name="CRTCTY" label="开户所在城市" type="STRING" length="32"/>
<attribute name="open_bank" label="开户银行" type="STRING" length="100"/>
<attribute name="open_bank" label="开户银行" type="STRING" length="100"/>
</attributes>
<manager>
@ -1670,11 +1664,9 @@
<attribute name="UPDATETIME" label="更新时间" type="STRING" length="32"/>
<attribute name="UNIONNUMBER" label="联行号" type="STRING" length="32"/>
<attribute name="DISTRIBUTOR_ACCOUNT_TEMP" label="经销商名称" type="STRING" length="32"/>
<attribute name="OPEN_BANK" label="开户银行" type="STRING" length="32"/>
<attribute name="CRTPVC" label="开户所在省份" type="STRING" length="32"/>
<attribute name="CRTCTY" label="开户所在城市" type="STRING" length="32"/>
<attribute name="open_bank" label="开户银行" type="STRING" length="100"/>
<attribute name="district" label="地区" type="STRING" length="64"/>
<attribute name="provinceInfo" label="省份" type="STRING" length="64"/>
<attribute name="open_bank" label="开户银行" type="STRING" length="100"/>
</attributes>
<manager>
@ -2536,5 +2528,121 @@
</managerProperties>
</manager>
</class>
<class name="LB_CAR_CREDIT_CALLRESULT" label="信贷结果表" keyAttributes="ID">
<attributes>
<attribute name="ID" label="标识编号" type="STRING" length="32"/>
<attribute name="entryid" label="进件编号" type="STRING" length="100"/>
<attribute name="final_score" label="风险分数" type="STRING" length="100"/>
<attribute name="final_decision" label="决策结果" type="STRING" length="100"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="lb_car_credit_callresult" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="CUSTOMER_PERSON_HIS" label="" keyAttributes="ID">
<attributes>
<attribute name="ID" label="标识" type="STRING" length="40"/>
<attribute name="CUSTOMERID" label="客户编号" type="STRING" length="40"/>
<attribute name="STATUS" label="状态" type="STRING" length="20"/>
<attribute name="FULLNAME" label="姓名" type="STRING" length="80"/>
<attribute name="SEX" label="性别" type="STRING" length="18"/>
<attribute name="BIRTHDAY" label="出生日期" type="STRING" length="10"/>
<attribute name="CERTTYPE" label="证件类型" type="STRING" length="18"/>
<attribute name="CERTID" label="证件号码" type="STRING" length="32"/>
<attribute name="SINO" label="社会保险号" type="STRING" length="32"/>
<attribute name="COUNTRY" label="国家" type="STRING" length="18"/>
<attribute name="province" label="省份" type="STRING" length="18"/>
<attribute name="city" label="城市" type="STRING" length="18"/>
<attribute name="county" label="区县" type="STRING" length="18"/>
<attribute name="NATIONALITY" label="民族" type="STRING" length="18"/>
<attribute name="NATIVEPLACE" label="户籍地址" type="STRING" length="200"/>
<attribute name="POLITICALFACE" label="政治面貌" type="STRING" length="18"/>
<attribute name="MARRIAGE" label="婚姻状况" type="STRING" length="18"/>
<attribute name="UNITKIND" label="单位所属行业" type="STRING" length="18"/>
<attribute name="WORKCORP" label="单位名称" type="STRING" length="80"/>
<attribute name="WORKADD" label="单位地址" type="STRING" length="200"/>
<attribute name="WORKTEL" label="单位电话" type="STRING" length="32"/>
<attribute name="OCCUPATION" label="职业" type="STRING" length="18"/>
<attribute name="title" label="职称" type="STRING" length="18"/>
<attribute name="EMPLOYRECORD" label="工作履历" type="STRING" length="200"/>
<attribute name="EDURECORD" label="毕业学校(取得最高学历)" type="STRING" length="200"/>
<attribute name="EDUEXPERIENCE" label="最高学历" type="STRING" length="18"/>
<attribute name="EDUDEGREE" label="最高学位" type="STRING" length="18"/>
<attribute name="GRADUATEYEAR" label="毕业年份" type="STRING" length="10"/>
<attribute name="CREDITLEVEL" label="信用等级" type="STRING" length="18"/>
<attribute name="EVALUATEDATE" label="评估日期" type="STRING" length="10"/>
<attribute name="BALANCESHEET" label="待扩展字段" type="STRING" length="200"/>
<attribute name="INTRO" label="个人情况简介" type="STRING" length="200"/>
<attribute name="SELFMONTHINCOME" label="个人月收入" type="DOUBLE" length="24" scale="6"/>
<attribute name="FAMILYMONTHINCOME" label="家庭月收入" type="DOUBLE" length="24" scale="6"/>
<attribute name="INCOMESOURCE" label="收入来源" type="STRING" length="200"/>
<attribute name="POPULATION" label="家庭人口数" type="INT" length="10"/>
<attribute name="LOANCARDNO" label="贷款卡号" type="STRING" length="32"/>
<attribute name="LOANCARDINSYEAR" label="贷款卡最新年审年份" type="STRING" length="10"/>
<attribute name="FARMERSORT" label="农户分类" type="STRING" length="18"/>
<attribute name="REGIONALISM" label="所属行政区域" type="STRING" length="18"/>
<attribute name="draft" label="是否草稿" type="STRING" length="18"/>
<attribute name="INPUTORGID" label="登记单位" type="STRING" length="32"/>
<attribute name="INPUTUSERID" label="登记人" type="STRING" length="32"/>
<attribute name="REMARK" label="备注" type="STRING" length="500"/>
<attribute name="UPDATEORGID" label="更新机构编号" type="STRING" length="32"/>
<attribute name="UPDATEUSERID" label="更新用户编号" type="STRING" length="32"/>
<attribute name="COMMADD" label="通讯地址" type="STRING" length="200"/>
<attribute name="COMMZIP" label="通讯地址邮编" type="STRING" length="10"/>
<attribute name="NATIVEADD" label="户籍地址" type="STRING" length="200"/>
<attribute name="WORKZIP" label="单位地址邮编" type="STRING" length="10"/>
<attribute name="HEADSHIP" label="职务" type="STRING" length="18"/>
<attribute name="WORKBEGINDATE" label="本单位工作起始日" type="STRING" length="10"/>
<attribute name="YEARINCOME" label="个人年收入" type="DOUBLE" length="24" scale="6"/>
<attribute name="PAYACCOUNT" label="工资帐号" type="STRING" length="32"/>
<attribute name="PAYACCOUNTBANK" label="工资帐号开户银行" type="STRING" length="200"/>
<attribute name="FAMILYSTATUS" label="居住状况" type="STRING" length="18"/>
<attribute name="TEMPSAVEFLAG" label="暂存标志" type="STRING" length="18"/>
<attribute name="CUSTSOURCE" label="客户来源" type="STRING" length="32"/>
<attribute name="CUSTKIND" label="内部行业" type="STRING" length="32"/>
<attribute name="invalid" label="是否废弃" type="STRING" length="10"/>
<attribute name="FLOWUNID" label="流程编号" type="STRING" length="32"/>
<attribute name="inputtime" label="登记时间" type="STRING" length="32"/>
<attribute name="updatetime" label="更新时间" type="STRING" length="32"/>
<attribute name="DRIVERLICENSE" label="驾驶证" type="STRING" length="32"/>
<attribute name="LICENSENAME" label="驾驶证姓名" type="STRING" length="200"/>
<attribute name="COUNTRYNAME" label="国家" type="STRING" length="200"/>
<attribute name="PROVINCENAME" label="省份" type="STRING" length="200"/>
<attribute name="CITYNAME" label="城市" type="STRING" length="200"/>
<attribute name="EMERGENCY_CONTACT_PERSON" label="紧急联系人" type="STRING" length="32"/>
<attribute name="EMERGENCY_CONTACT_TEL" label="紧急联系电话" type="STRING" length="32"/>
<attribute name="mobile" label="手机号" type="STRING" length="32"/>
<attribute name="ENTRYTIME" label="入职时间" type="STRING" length="32"/>
<attribute name="FORMALEMP" label="正式员工" type="STRING" length="32"/>
<attribute name="childrens_number" label="子女人数" type="STRING" length="32"/>
<attribute name="family_address" label="居住地址" type="STRING" length="200"/>
<attribute name="telephone" label="固定电话" type="STRING" length="32"/>
<attribute name="living_life" label="居住年限" type="STRING" length="32"/>
<attribute name="Mailing_Address" label="邮寄地址" type="STRING" length="200"/>
<attribute name="Property_type" label="房产类型" type="STRING" length="32"/>
<attribute name="Unit_nature" label="单位性质" type="STRING" length="32"/>
<attribute name="before_unit_name" label="前工作单位名称" type="STRING" length="60"/>
<attribute name="main_income" label="主要收入" type="STRING" length="32"/>
<attribute name="other_income" label="其他收入" type="DOUBLE" length="22" scale="2"/>
<attribute name="Partner_" label="作为共同申请人-配偶" type="STRING" length="32"/>
<attribute name="spouse_name" label="配偶姓名-配偶" type="STRING" length="32"/>
<attribute name="spouse_hukou" label="户口-配偶" type="STRING" length="32"/>
<attribute name="sIdentNumber" label="证件号码-配偶" type="STRING" length="64"/>
<attribute name="suname" label="单位名称-配偶" type="STRING" length="60"/>
<attribute name="suphone" label="单位电话-配偶" type="STRING" length="32"/>
<attribute name="sposition" label="职位—配偶" type="STRING" length="32"/>
<attribute name="spnumber" label="手机号——配偶" type="STRING" length="32"/>
<attribute name="smincome" label="月收入——配偶" type="DOUBLE" length="22" scale="2"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="customer_person_his" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
</package>
</jbo>

View File

@ -1857,7 +1857,7 @@
<attribute name="DEVICE_TYPE" label="设备类型" type="STRING" length="30"/>
<attribute name="EQUIP_NAME" label="设备名称" type="STRING" length="200"/>
<attribute name="BRAND" label="品牌" type="STRING" length="30"/>
<attribute name="MODEL" label="型号/规格" type="STRING" length="30"/>
<attribute name="MODEL" label="型号/规格" type="STRING" length="60"/>
<attribute name="EQUIP_NUM" label="数量" type="STRING" length="30"/>
<attribute name="PRICE" label="单价" type="STRING" length="30"/>
<attribute name="UNIT" label="单位" type="STRING" length="30"/>

View File

@ -39,6 +39,7 @@ public class ProductCondition {
this.getProductAdjustRules(doTemp, productId);//调息
this.getGrossRules(doTemp, productId);//
//this.setDateRule(doTemp, productId);//日期
this.getCautionRatio(doTemp, productId);//±£Ö¤½ð±ÈÀý
return sb.toString();
}
@ -409,7 +410,6 @@ public class ProductCondition {
}
}
}
}
public String getSqlWhere(String condition){
String[] conds=condition.split(",");
@ -420,5 +420,11 @@ public class ProductCondition {
}
return s;
}
//»ñÈ¡±£Ö¤½ð±ÈÀý
public void getCautionRatio(ASObjectModel doTemp,String productId) throws Exception{
String caution_money = ProductParamUtil.getProductParameterValue(productId, "PRD0315","CAUTION_MONEY","CostType09");
String INCOME_NUMBER = ProductParamUtil.getProductParameterValue(productId, "PRD0350","product_rate","INCOME_NUMBER");
doTemp.setDefaultValue("CAUTION_MONEY_RATIO",caution_money);
doTemp.setDefaultValue("INCOME_NUMBER",INCOME_NUMBER);
}
}

View File

@ -338,8 +338,8 @@ public class PayController extends BaseFlowStartAction {
pay_detail_list = new ArrayList<BizObject>();
for (String income_id : income_ids) {
String date = df.format(new Date());
pay_detail = new SDKDcPayReqxVO();
infoOne = bankBo.createQuery("select o.PROJECT_ID,o.FEE_TYPE,o.PAY_TYPE,o.BANK_SQRNBR,o.BANK_PAY_ID,o.BANK_REQNBR,o.FACT_MONEY,o.memo,o.CONTRACT_ID,o.PAYMENT_NUMBER,o.PLAN_LIST,FLOWUNID,contract_info.CONTRACT_NO,distributor.acc_number,distributor.open_bank,distributor.account,distributor.district,distributor.provinceInfo from o left join jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO contract_info on o.CONTRACT_ID = contract_info.id left join jbo.app.tenwa.customer.DISTRIBUTOR_ACCOUNT distributor on contract_info.distributor_id = distributor.id and distributor.is_main='Y' where o.id=:id and o.PAY_TYPE = 'pay_type_out' ").setParameter("id", income_id).getSingleResult(false);
pay_detail = new SDKDcPayReqxVO();
infoOne = bankBo.createQuery("select o.PROJECT_ID,o.FEE_TYPE,o.PAY_TYPE,o.BANK_SQRNBR,o.BANK_PAY_ID,o.BANK_REQNBR,o.FACT_MONEY,o.memo,o.CONTRACT_ID,o.PAYMENT_NUMBER,o.PLAN_LIST,FLOWUNID,contract_info.CONTRACT_NO,distributor.acc_number,distributor.open_bank,distributor.account,distributor.district,distributor.provinceInfo from o left join jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO contract_info on o.CONTRACT_ID = contract_info.id left join jbo.app.tenwa.customer.DISTRIBUTOR_ACCOUNT distributor on contract_info.distributor_id = distributor.distributor_id and distributor.is_main='Y' where o.id=:id and o.PAY_TYPE = 'pay_type_out' ").setParameter("id", income_id).getSingleResult(false);
if(infoOne==null) {
map.put("code", "1") ;
map.put("msg", "第["+index+"]笔数据不存在,请检查") ;

View File

@ -18,6 +18,7 @@ public class LBGuarantorPerUnitHandler extends CommonHandler{
BizObject ci = cpt.newObject();
ci.setAttributeValue("CUSTOMERID", bo.getAttribute("ASSUROR").getString());
ci.setAttributeValue("FULLNAME", bo.getAttribute("FULLNAME").getString());
ci.setAttributeValue("FLOWUNID", bo.getAttribute("FLOWUNID").getString());
ci.setAttributeValue("SEX", bo.getAttribute("SEX").getString());
ci.setAttributeValue("CERTTYPE", bo.getAttribute("CERTTYPE").getString());
ci.setAttributeValue("CERTID", bo.getAttribute("CERTID").getString());
@ -38,8 +39,9 @@ public class LBGuarantorPerUnitHandler extends CommonHandler{
protected void afterUpdate(JBOTransaction tx, BizObject bo)
throws Exception {
String customerid = bo.getAttribute("ASSUROR").getString();
String flowunid = bo.getAttribute("FLOWUNID").getString();
BizObjectManager cpt = JBOFactory.getBizObjectManager(CUSTOMER_PERSON_TEMP.CLASS_NAME, tx);
BizObject ci = cpt.createQuery("select * from O where CUSTOMERID=:customerid").setParameter("customerid", customerid).getSingleResult(true);
BizObject ci = cpt.createQuery("CUSTOMERID=:customerid and FLOWUNID=:flowunid").setParameter("customerid", customerid).setParameter("flowunid", flowunid).getSingleResult(true);
ci.setAttributeValue("FULLNAME", bo.getAttribute("FULLNAME").getString());
ci.setAttributeValue("SEX", bo.getAttribute("SEX").getString());
ci.setAttributeValue("CERTTYPE", bo.getAttribute("CERTTYPE").getString());
@ -53,6 +55,5 @@ public class LBGuarantorPerUnitHandler extends CommonHandler{
ci.setAttributeValue("other_income", bo.getAttribute("other_income").getString());
ci.setAttributeValue("title", bo.getAttribute("title").getString());
cpt.saveObject(ci);
tx.commit();
}
}

View File

@ -0,0 +1,58 @@
package com.tenwa.lease.flow.project.commbusiness;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import jbo.app.tenwa.customer.CUSTOMER_PERSON;
import jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP;
import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT;
import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT_TEMP;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.BizObjectManager;
import com.amarsoft.are.jbo.JBOFactory;
import com.amarsoft.awe.util.Transaction;
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
import com.tenwa.flow.baseBussion.BaseBussiness;
import com.tenwa.lease.flow.comm.service.LeaseFlowBaseService;
import com.tenwa.lease.flow.comm.service.ServiceOperatorEnum;
import com.tenwa.lease.flow.comm.serviceImp.LeaseFlowBaseServiceImp;
public class LBGuaranteePerUnitTempToFormalBusiness extends BaseBussiness {
@SuppressWarnings("unchecked")
@Override
public Object run(Transaction Sqlca) throws Exception {
this.initBussinessParam(Sqlca);
String flowunid = this.getAttribute("ObjectNo").toString();
Map<String,String> fromCondtion = new HashMap<String,String>();
Map<String,String> toCondtion = new HashMap<String,String>();
BizObjectManager lgut = JBOFactory.getBizObjectManager(LB_GUARANTEE_UNIT_TEMP.CLASS_NAME,Sqlca);
List<BizObject> lguts = lgut.createQuery("select * from O left join jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP cpt "
+ "on O.ASSUROR=cpt.CUSTOMERID where O.flowunid=:flowUnid and O.DATA_STATE='guarantee'")
.setParameter("flowUnid", flowunid).getResultList(false);
for (BizObject lgu:lguts) {
if(fromCondtion.size()>0){
fromCondtion.clear();
}
if(toCondtion.size()>0){
toCondtion.clear();
}
fromCondtion.put("id",lgu.getAttribute("id").toString());
toCondtion.put("ASSUROR", lgu.getAttribute("ASSUROR").toString());
DataOperatorUtil.copySingleJBO(LB_GUARANTEE_UNIT_TEMP.CLASS_NAME, fromCondtion, LB_GUARANTEE_UNIT.CLASS_NAME, toCondtion, null, Sqlca);
if(fromCondtion.size()>0){
fromCondtion.clear();
}
if(toCondtion.size()>0){
toCondtion.clear();
}
fromCondtion.put("CUSTOMERID",lgu.getAttribute("ASSUROR").toString());
toCondtion.put("CUSTOMERID", lgu.getAttribute("ASSUROR").toString());
DataOperatorUtil.copySingleJBO(CUSTOMER_PERSON_TEMP.CLASS_NAME, fromCondtion, CUSTOMER_PERSON.CLASS_NAME, toCondtion, null, Sqlca);
}
String sMessage="true";
return sMessage;
}
}

View File

@ -54,8 +54,12 @@ public class LBGuaranteeUnitFormalToTempBusiness extends BaseBussiness {
if(fromCondtion.size()>0){
fromCondtion.clear();
}
if(otherProperty.size()>0){
otherProperty.clear();
}
fromCondtion.put("CUSTOMERID",lgu.getAttribute("ASSUROR").toString());
DataOperatorUtil.copySingleJBO(CUSTOMER_PERSON.CLASS_NAME, fromCondtion, CUSTOMER_PERSON_TEMP.CLASS_NAME, null, null, Sqlca);
otherProperty.put("FLOWUNID", flowUnid);
DataOperatorUtil.copySingleJBO(CUSTOMER_PERSON.CLASS_NAME, fromCondtion, CUSTOMER_PERSON_TEMP.CLASS_NAME, null, otherProperty, Sqlca);
}
String sMessage="true";

View File

@ -77,8 +77,6 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
if(certType.equals("Ent02")){
bmCC.setAttributeValue("flowunid", this.getAttribute("FlowUnid"));
bmCC.setAttributeValue("customerid", customerId);
String custname = this.getAttribute("custname").toString();
String certid = this.getAttribute("certid").toString();
bmCC.setAttributeValue("enterprisename", this.getAttribute("custname"));
bmCC.setAttributeValue("certid", this.getAttribute("certid"));
bmCCT.saveObject(bmCC);
@ -107,13 +105,9 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
bo.setAttributeValue("project_name",this.getAttribute("ProjectNo"));
bo.setAttributeValue("project_manage",this.getAttribute("CurUserID"));
bo.setAttributeValue("project_dept",asUser.getOrgID());
String versionid = this.getAttribute("versionid").toString();
String bustype = this.getAttribute("businessType").toString();
bo.setAttributeValue("VERSIONID", this.getAttribute("versionid"));
bo.setAttributeValue("BUSINESSTYPE", this.getAttribute("businessType"));
bo.setAttributeValue("LEAS_FORM", this.getAttribute("leasehold"));//ĬÈÏ»Ø×â
bo.setAttributeValue("LEAS_FORM", this.getAttribute("leasehold"));//租赁方式
bo.setAttributeValue("PRODUCT_ID",this.getAttribute("ProductId"));//业务品种编号
bo.setAttributeValue("PRODUCT_NAME",this.getAttribute("ProductName"));//业务品种名称
bo.setAttributeValue("PROJECT_STATUS","0");