diff --git a/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp b/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp
index 7e981f817..dd0028db8 100644
--- a/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp
+++ b/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp
@@ -264,7 +264,7 @@ $(function(){
CalcControl.InitLsaseTerm();
//CalcControl.PeriodTypeView();
//CalcControl.SettleMethodView();
- //changeSettleMethod2();
+ changeSettleMethod2();
//changeRateType();
//CalcControl.RentOrRateView();
var inerNumber = $("#INCOME_NUMBER").val();
diff --git a/WebContent/Tenwa/Gps/LmGpsOrderInfo.jsp b/WebContent/Tenwa/Gps/LmGpsOrderInfo.jsp
index 1f04aa4ad..959081b5e 100644
--- a/WebContent/Tenwa/Gps/LmGpsOrderInfo.jsp
+++ b/WebContent/Tenwa/Gps/LmGpsOrderInfo.jsp
@@ -27,13 +27,21 @@
String id = Sqlca.getString("select id from LM_GPS_ORDER_TEMP where APPLY_NO='"+ProjectNo+"'");
String contact_name = Sqlca.getString("select CONTACT_NAME from GPS_config_info where isenable='1' ");//派工联系人
String contact_phone = Sqlca.getString("select CONTACT_PHONE from GPS_config_info where isenable='1' ");//派工联系人电话
- System.out.println("经销商orgId=" + CurUser.getOrgID());
- //如果部门是南京直销的话 CurUser.getOrgID()== 8006014 拉车单位显示南京直销
- String distributor_name = "安鹏汽车业务直销部(江苏)";
- if(!"8006014".equals(CurUser.getOrgID())){
+
+ //如果当前有记录优先取数据库中的记录
+ String distributor_name = "";
+ if("null".equals(id)){
+ System.out.println("经销商orgId=" + CurUser.getOrgID());
+ String distributor_id = Sqlca.getString("select distributor_id from lb_project_info where id='"+ProjectId+"'");//获取经销商ID
+ distributor_name = Sqlca.getString("select distributor_name from distributor_info where distributor_no='"+distributor_id+"'");//获取经销名称
+ }else {
+ distributor_name = Sqlca.getString("select CAR_ACCOUNT from LM_GPS_ORDER_TEMP where APPLY_NO='"+ProjectNo+"'");
+ System.out.println("经销商distributor_name=" + distributor_name);
+ }
+ //如果当前部门为直销&&有记录&&0010显示 直销 或者 无记录&&直销&&0010
+ if("8006014".equals(CurUser.getOrgID()) && "0010".equals(PhaseNo)){
System.out.println("经销商id不等于【8006014】,经销商id=" + CurUser.getOrgID());
- String distributor_id = Sqlca.getString("select distributor_id from lb_project_info where id='"+ProjectId+"'");//获取经销商ID
- distributor_name = Sqlca.getString("select distributor_name from distributor_info where distributor_no='"+distributor_id+"'");//获取经销名称
+ distributor_name = "安鹏汽车业务直销部(江苏)";
}
BigDecimal incomNuber = new BigDecimal(Sqlca.getString("select INCOME_NUMBER from LC_CALC_CONDITION_TEMP where FLOWUNID='"+flowunid+"'"));
diff --git a/WebContent/Tenwa/Lease/DistributorManage/DistributorApproval/LDistributorInfo.jsp b/WebContent/Tenwa/Lease/DistributorManage/DistributorApproval/LDistributorInfo.jsp
index 25810df47..2c7c7ac28 100644
--- a/WebContent/Tenwa/Lease/DistributorManage/DistributorApproval/LDistributorInfo.jsp
+++ b/WebContent/Tenwa/Lease/DistributorManage/DistributorApproval/LDistributorInfo.jsp
@@ -204,7 +204,7 @@ $(function(){
//请选择经销商名称
function selectcompany(){
- AsDialog.OpenSelector("SelectCompany","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
+ AsDialog.OpenSelector("SelectCompanyNew","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
alert(getHtmlMessage('1'));//请选择一条信息!
return;
diff --git a/WebContent/Tenwa/Lease/DistributorManage/DistributorChange/LDistributorInfo.jsp b/WebContent/Tenwa/Lease/DistributorManage/DistributorChange/LDistributorInfo.jsp
index b898e4c68..4cc48399d 100644
--- a/WebContent/Tenwa/Lease/DistributorManage/DistributorChange/LDistributorInfo.jsp
+++ b/WebContent/Tenwa/Lease/DistributorManage/DistributorChange/LDistributorInfo.jsp
@@ -100,7 +100,7 @@ function saveproj_name(){
//请选择经销商名称
function selectcompany(){
- AsDialog.OpenSelector("SelectCompany","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
+ AsDialog.OpenSelector("SelectCompanyNew","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
alert(getHtmlMessage('1'));//请选择一条信息!
return;
diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBContractPersonBaseInfo/LBContractPersonBaseInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBContractPersonBaseInfo/LBContractPersonBaseInfo.jsp
index 7b1ff3df7..481955631 100644
--- a/WebContent/Tenwa/Lease/Flow/Comm/LBContractPersonBaseInfo/LBContractPersonBaseInfo.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Comm/LBContractPersonBaseInfo/LBContractPersonBaseInfo.jsp
@@ -14,6 +14,8 @@
String compClientID = request.getParameter("CompClientID");
String RightType = CurPage.getParameter("RightType");//页面是否 是只读
String custype = CurPage.getParameter("customertype");//获取客户类型
+ String channel = CurPage.getParameter("channel");
+
if(sPrevUrl == null) sPrevUrl = "";
if((null!=sPhaseNo&&sPhaseNo.equals("0010")) && "BContractApproveFlow".equals(FlowNo)){
@@ -36,6 +38,12 @@
doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataInfoHistory");//如果是历史则新显示历史数据
} */
doTemp.setHtmlEvent("CONTRACT_NUMBER", "onChange", "copyContNumToContNo");
+ if("ZC".equals(channel)){
+ doTemp.setVisible("ZC_PROJECT_NUMBER",true);
+ doTemp.setRequired("ZC_PROJECT_NUMBER",true);
+ doTemp.setVisible("ZC_CONTRACT_NUMBER",true);
+ doTemp.setRequired("ZC_CONTRACT_NUMBER",true);
+ };
ASObjectWindowCalc dwTemp = new ASObjectWindowCalc(CurPage, doTemp,request);
//ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
@@ -67,6 +75,8 @@
$("#div_920").find("[style='display:inline-block;width:6px;']").css("width","100");
$("#div_1410").find("[style='display:inline-block;width:6px;']").css("width","88");
$("#div_1390").find("[style='display:inline-block;width:6px;']").css("width","100");
+ $("#div_1054").find("[style='display:inline-block;width:6px;']").css("width","88");
+ $("#div_1058").find("[style='display:inline-block;width:6px;']").css("width","74");
/* 右侧 样式微调*/
$("#A_div_900").find("[style='display:inline-block;width:6px;']").css("width","86");
$("#div_930").find("[style='display:inline-block;width:6px;']").css("width","86");
diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/DebitCardInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/DebitCardInfo.jsp
index b4d2434b7..b227e9104 100644
--- a/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/DebitCardInfo.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/DebitCardInfo.jsp
@@ -23,6 +23,7 @@
String ApplyType=CurPage.getParameter("ApplyType");
String PhaseNo=CurPage.getParameter("PhaseNo");
String subjectId=CurPage.getParameter("SubjectId");//获取主体信息,用于是否签约查询
+ String channel=CurPage.getParameter("channel");
BizObjectManager ldclManager = JBOFactory.getBizObjectManager(LB_DOC_CONTRACT_LIST.CLASS_NAME);
BizObject ldcls = ldclManager.createQuery("select * from O where file_flag='yes' and ( flow_unid=:flowunid or contract_id=:contractid ) ").setParameter("flowunid", FlowUnid).setParameter("contractid", contractId).getSingleResult(false);
System.out.print("=========="+ldcls+"==========");
@@ -188,13 +189,19 @@
}
if("BusinessApplyApply"=="<%=ApplyType%>"||"BusinessChangeApply"=="<%=ApplyType%>"||"BContractApproveApply"=="<%=ApplyType%>"||"BContractChangeApply"=="<%=ApplyType%>"){
- var sparams = "account="+getItemValue(0,getRow(),"ACCOUNT")+",acc_number="+getItemValue(0,getRow(),"ACC_NUMBER")+",bank_name="+getItemValue(0,getRow(),"BANK_NAME")+",mobile="+getItemValue(0,getRow(),"MOBILE")+",projectid=<%=projectId%>,FlowUnid=<%=FlowUnid%>,contractid=<%=contractId%>,certId="+getItemValue(0,getRow(),"CERTID")+",applyType=<%=ApplyType%>,subjectId=<%=subjectId%>,collect_type="+getItemValue(0,getRow(),"collect_type");
+ var sparams = "account="+getItemValue(0,getRow(),"ACCOUNT")+",acc_number="+getItemValue(0,getRow(),"ACC_NUMBER")+",bank_name="+getItemValue(0,getRow(),"BANK_NAME")+",mobile="+getItemValue(0,getRow(),"MOBILE")+",projectid=<%=projectId%>,FlowUnid=<%=FlowUnid%>,contractid=<%=contractId%>,certId="+getItemValue(0,getRow(),"CERTID")+",applyType=<%=ApplyType%>,subjectId=<%=subjectId%>,channel=<%=channel%>,collect_type="+getItemValue(0,getRow(),"collect_type");
var meassge = RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "checkSign", sparams);
if("false"==meassge){
alert("合同已生成,请先删除合同再修改扣款卡信息!");
return ;
}else if("Y"==meassge){
setItemValue(0,0,"sign_status","Y");
+ }else if("ZCfalse" == meassge){
+ alert("该扣款卡信息没有签约,无法保存!");
+ return ;
+ }else if("NotFalse" == meassge){
+ alert("没有匹配到对应的扣款渠道,无法保存!");
+ return ;
}else{
setItemValue(0,0,"sign_status","");
}
diff --git a/WebContent/Tenwa/Lease/Flow/Contract/ContractApproval/ContractApprovalApplyList.jsp b/WebContent/Tenwa/Lease/Flow/Contract/ContractApproval/ContractApprovalApplyList.jsp
index a1b3fb6a5..07ced7196 100644
--- a/WebContent/Tenwa/Lease/Flow/Contract/ContractApproval/ContractApprovalApplyList.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Contract/ContractApproval/ContractApprovalApplyList.jsp
@@ -63,6 +63,7 @@
var isNetCar = sReturn[7];
var signType = sReturn[9];
var sealType = sReturn[10];
+ var channel = sReturn[13];
if(flowno=="BContractApproveApply"&&"03" == customertype){
if(""== signType||null == signType||"undefined" == signType){
@@ -77,7 +78,7 @@
var gpsVendor = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.GpsVendorCheck","getGpsVendor","productId="+product_id);
var sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>,gpsVendor="+gpsVendor;
- sParams =sParams+",signType="+signType+",sealType="+sealType+",isNetCar="+isNetCar+",carAttributes="+carAttributes+",leasform="+leasform+",ProductId="+product_id+",ProjectId="+id+",ProjectNo="+project_id+",customertype="+customertype+",ProjectName="+project_name+",ApplyType=<%=sApplyType%>";
+ sParams =sParams+",channel="+channel+",signType="+signType+",sealType="+sealType+",isNetCar="+isNetCar+",carAttributes="+carAttributes+",leasform="+leasform+",ProductId="+product_id+",ProjectId="+id+",ProjectNo="+project_id+",customertype="+customertype+",ProjectName="+project_name+",ApplyType=<%=sApplyType%>";
if(flowno=="BContractApproveApply"){
sParams =sParams+",operationType="+sReturn[8]+",SubjectId="+sReturn[11]+",SubjectName="+sReturn[12];
diff --git a/WebContent/Tenwa/Lease/Flow/Contract/ContractCancle/ContractCancelApplyList.jsp b/WebContent/Tenwa/Lease/Flow/Contract/ContractCancle/ContractCancelApplyList.jsp
index 99cf5a597..afef7c4e6 100644
--- a/WebContent/Tenwa/Lease/Flow/Contract/ContractCancle/ContractCancelApplyList.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Contract/ContractCancle/ContractCancelApplyList.jsp
@@ -45,8 +45,9 @@
var CustomerType = sReturn[5];
var carAttributes = sReturn[6];
var leasehold = sReturn[7];
+ var channel = sReturn[8];
var sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
- sParams =sParams+",customertype="+CustomerType+",carAttributes="+carAttributes+",leasform="+leasehold+",ProjectId="+project_id+",FlowKey="+contract_number+",ProductId="+product_id+",ContractId="+contract_id+",ProjectName="+project_name+",ApplyType=<%=sApplyType%>";
+ sParams =sParams+",channel="+channel+",customertype="+CustomerType+",carAttributes="+carAttributes+",leasform="+leasehold+",ProjectId="+project_id+",FlowKey="+contract_number+",ProductId="+product_id+",ContractId="+contract_id+",ProjectName="+project_name+",ApplyType=<%=sApplyType%>";
var sReturnInfo = RunJavaMethodTrans("com.tenwa.flow.action.comm.BaseFlowStartAction","initFLow",sParams);
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_") return;
var sReturnInfos=sReturnInfo.split("@");
diff --git a/WebContent/Tenwa/Lease/Flow/Contract/ContractChange/ContractChangeApplyList_Car.jsp b/WebContent/Tenwa/Lease/Flow/Contract/ContractChange/ContractChangeApplyList_Car.jsp
index 1eb55265c..ce5294e0f 100644
--- a/WebContent/Tenwa/Lease/Flow/Contract/ContractChange/ContractChangeApplyList_Car.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Contract/ContractChange/ContractChangeApplyList_Car.jsp
@@ -39,6 +39,7 @@
var sealType = sReturn[11];
var SubjectId = sReturn[13];
var SubjectName = sReturn[14];
+ var channel = sReturn[15];
if("03" == customertype){
if(""== signType||null == signType||"undefined" == signType){
@@ -57,7 +58,7 @@
var gpsVendor = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.GpsVendorCheck","getGpsVendor","productId="+product_id);
var sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>,gpsVendor="+gpsVendor;
- sParams =sParams+",SubjectId="+SubjectId+",SubjectName="+SubjectName+",signType="+signType+",sealType="+sealType+",operationType="+operationType+",isNetCar="+isNetCar+",carAttributes="+carAttributes+",leasform="+leasform+",customertype="+customertype+",ProjectId="+project_id+",FlowKey="+contract_number+",ProductId="+product_id+",ProjectNo="+project_no+",ContractId="+contract_id+",ProjectName="+project_name+",ApplyType=<%=sApplyType%>";
+ sParams =sParams+",channel="+channel+",SubjectId="+SubjectId+",SubjectName="+SubjectName+",signType="+signType+",sealType="+sealType+",operationType="+operationType+",isNetCar="+isNetCar+",carAttributes="+carAttributes+",leasform="+leasform+",customertype="+customertype+",ProjectId="+project_id+",FlowKey="+contract_number+",ProductId="+product_id+",ProjectNo="+project_no+",ContractId="+contract_id+",ProjectName="+project_name+",ApplyType=<%=sApplyType%>";
var sReturnInfo = RunJavaMethodTrans("com.tenwa.flow.action.comm.BaseFlowStartAction","initFLow",sParams);
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_") return;
var sReturnInfos=sReturnInfo.split("@");
diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessCancelApplyList.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessCancelApplyList.jsp
index d9370933b..db61942a7 100644
--- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessCancelApplyList.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessCancelApplyList.jsp
@@ -21,8 +21,9 @@
var CustomerType = sReturn[4];
var carAttributes = sReturn[5];
var leasehold = sReturn[6];
+ var channel = sReturn[11];
var sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
- sParams =sParams+",customertype="+CustomerType+",carAttributes="+carAttributes+",leasform="+leasehold+",ProjectId="+id+",ProductId="+product_id+",FlowKey="+project_id+",ProjectName="+project_name+",ApplyType=<%=sApplyType%>";
+ sParams =sParams+",channel="+channel+",customertype="+CustomerType+",carAttributes="+carAttributes+",leasform="+leasehold+",ProjectId="+id+",ProductId="+product_id+",FlowKey="+project_id+",ProjectName="+project_name+",ApplyType=<%=sApplyType%>";
var sReturnInfo = RunJavaMethodTrans("com.tenwa.flow.action.comm.BaseFlowStartAction","initFLow",sParams);
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_") return;
var sReturnInfos=sReturnInfo.split("@");
diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessChangeApplyList.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessChangeApplyList.jsp
index 2add316f8..65e62d83a 100644
--- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessChangeApplyList.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessChangeApplyList.jsp
@@ -24,12 +24,13 @@
var certtype = sReturn[8];
var SubjectId = sReturn[9];
var SubjectName = sReturn[10];
+ var channel = sReturn[11];
if(""== SubjectId||null == SubjectId||"undefined" == SubjectId){
alert("该数据没有对应的主体,请联系管理员!");
return ;
}
var sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
- sParams =sParams+",SubjectId="+SubjectId+",SubjectName="+SubjectName+",certtype="+certtype+",customertype="+CustomerType+",carAttributes="+carAttributes+",leasform="+leasehold+",operationType="+operationType+",ProjectId="+id+",ProductId="+product_id+",FlowKey="+project_id+",ProjectName="+project_name+",ApplyType=<%=sApplyType%>";
+ sParams =sParams+",channel="+channel+",SubjectId="+SubjectId+",SubjectName="+SubjectName+",certtype="+certtype+",customertype="+CustomerType+",carAttributes="+carAttributes+",leasform="+leasehold+",operationType="+operationType+",ProjectId="+id+",ProductId="+product_id+",FlowKey="+project_id+",ProjectName="+project_name+",ApplyType=<%=sApplyType%>";
var sReturnInfo = RunJavaMethodTrans("com.tenwa.flow.action.comm.BaseFlowStartAction","initFLow",sParams);
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_") return;
var sReturnInfos=sReturnInfo.split("@");
diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessProjectTempInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessProjectTempInfo.jsp
index 2439981d9..c6c5febaa 100644
--- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessProjectTempInfo.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessProjectTempInfo.jsp
@@ -19,6 +19,8 @@
BizObject bo=JBOFactory.createBizObjectQuery("jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT", "flow_unid=:flowunid").setParameter("flowunid",sFlowUnid).getSingleResult(false);
String custype = CurPage.getParameter("CustomerType");
String customertype = CurPage.getParameter("customertype");
+ String channel = CurPage.getParameter("channel");
+
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setHtmlEvent("inputTel","onChange","checkTel");
//租赁形式set只读
@@ -26,23 +28,30 @@
doTemp.setReadOnly("LEAS_FORM", true);
doTemp.setReadOnly("PROJECT_SOURCE", false);
- }
+ };
if("ReadOnly".equals(rightType)){
doTemp.setReadOnly("INPUTNAME", true);
doTemp.setReadOnly("INPUTTEL", true);
- }
+ doTemp.setReadOnly("ZC_PROJECT_NUMBER", true);
+ doTemp.setReadOnly("ZC_CONTRACT_NUMBER", true);
+ };
//如果是北汽的产品,业务申请号可编辑
if(!"ReadOnly".equals(rightType)&&sPhaseNo.equals("0010")&&"BAIC_MOTOR".equals(operationType)&&"BusinessApplyFlow".equals(FlowNo)){
doTemp.setReadOnly("PROJECT_NO", false);
}else{
doTemp.setReadOnly("PROJECT_NO", true);
- }
+ };
String userll=null;
userll="/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp?CompClientID=";
if("01".equals(custype)||"01".equals(customertype)){
userll="/Tenwa/Customer/Lessee/Person/CustomerCompanyTempInfo.jsp?CompClientID=";
- }
-
+ };
+ if("ZC".equals(channel)){
+ doTemp.setVisible("ZC_PROJECT_NUMBER",true);
+ doTemp.setRequired("ZC_PROJECT_NUMBER",true);
+ doTemp.setVisible("ZC_CONTRACT_NUMBER",true);
+ doTemp.setRequired("ZC_CONTRACT_NUMBER",true);
+ };
ASObjectWindowCalc dwTemp = new ASObjectWindowCalc(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.setGroupHidden("0020");
@@ -70,10 +79,20 @@
if(!checkTel()){
return ;
}
+ if("ZC"=="<%=channel%>"){
+ if(!checkZcProjectNumber()){
+ return ;
+ }
+ if(!checkZcContractNumber()){
+ return ;
+ }
+ }
var leasfrom = getItemValue(0,getRow(),"LEAS_FORM");
var projectSource = getItemValue(0,getRow(),"PROJECT_SOURCE");
var inputName = getItemValue(0,getRow(),"inputName");
var inputTel = getItemValue(0,getRow(),"inputTel");
+ var zcProjectNumber = getItemValue(0,getRow(),"ZC_PROJECT_NUMBER");
+ var zcContractNumber = getItemValue(0,getRow(),"ZC_CONTRACT_NUMBER");
var customerType = "<%=custype%>";
var customerT = "<%=customertype%>";
var projectNo=getItemValue(0,getRow(),"PROJECT_NO");
@@ -100,7 +119,7 @@
//as_save(0);
}
if(customerType=="03"||customerT=="03"){//自然人
- frame_list.window.saveRecord(leasfrom,projectSource,inputName,inputTel,projectNo,operationType);
+ frame_list.window.saveRecord(leasfrom,projectSource,inputName,inputTel,projectNo,operationType,zcProjectNumber,zcContractNumber);
//as_save("myiframe0","frame_list.window.as_save(0);");
}
}
@@ -130,5 +149,27 @@
return true;
}
}
+
+ function checkZcProjectNumber(){
+ var zcProjectNumber = getItemValue(0,getRow(0),"ZC_PROJECT_NUMBER");
+ if(zcProjectNumber==""){
+ setErrorTips("ZC_PROJECT_NUMBER","中车申请号不能为空!");
+ return false;
+ }else{
+ setErrorTips("ZC_PROJECT_NUMBER","");
+ return true;
+ }
+ }
+
+ function checkZcContractNumber(){
+ var zcContractNumber = getItemValue(0,getRow(0),"ZC_CONTRACT_NUMBER");
+ if(zcContractNumber==""){
+ setErrorTips("ZC_CONTRACT_NUMBER","中车合同号不能为空!");
+ return false;
+ }else{
+ setErrorTips("ZC_CONTRACT_NUMBER","");
+ return true;
+ }
+ }
<%@ include file="/Frame/resources/include/include_end.jspf"%>
\ No newline at end of file
diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp
index 4f90b2071..172810e3c 100644
--- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp
@@ -14,6 +14,8 @@
String FlowName = CurPage.getParameter("FlowName");//获取流程名称
String IsHistory = CurPage.getParameter("IsHistory");//获取流程名称
String projectId = CurPage.getParameter("ProjectId");
+ String channel = CurPage.getParameter("channel");
+
String customerid = Sqlca.getString("select customer_id from lb_union_lessee_temp where flowunid='"+flowunid+"'");
String sTempletNo = "";//--模板号--
String sexChange="";
@@ -439,7 +441,7 @@
} */
}
- function saveRecord(leasfrom,projectSource,inputName,inputTel,projectNo,operationType){//保存
+ function saveRecord(leasfrom,projectSource,inputName,inputTel,projectNo,operationType,zcProjectNumber,zcContractNumber){//保存
//校验申请人手机号和配偶手机号是否重复
var RepeatReault = "";
var customerType = "03";
@@ -559,13 +561,13 @@
var certid=getItemValue(0,0,"CERTID");
<%-- var customerid=RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerAction","updateCustomerId",'certid='+certid+',flowunid=<%=flowunid%>'); --%>
// setItemValue(0,0,"customerid",customerid);
- as_save("0","saveCertInfo('"+inputName+"','"+inputTel+"','"+leasfrom+"','"+projectSource+"','"+projectNo+"','"+operationType+"')");
+ as_save("0","saveCertInfo('"+inputName+"','"+inputTel+"','"+leasfrom+"','"+projectSource+"','"+projectNo+"','"+operationType+"','"+zcProjectNumber+"','"+zcContractNumber+"')");
return true;
};
}
- function saveCertInfo(inputName,inputTel,leasfrom,projectSource,projectNo,operationType){
- var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoManage","saveCertInfo",'projectNo='+projectNo+',inputName='+inputName+',operationType='+operationType+',inputTel='+inputTel+',project_source='+projectSource+',leas_from='+leasfrom+',idexpiry='+getItemValue(0,0,"idexpiry")+',certtype='+getItemValue(0,0,"certtype")+',customerid='+getItemValue(0,0,"customerid")+',flowunid=<%=flowunid%>,certid='+getItemValue(0,0,"certid")+',name='+getItemValue(0,0,"name")+',userid=<%=CurUser.getUserID()%>,orgid=<%=CurUser.getOrgID()%>');
+ function saveCertInfo(inputName,inputTel,leasfrom,projectSource,projectNo,operationType,zcProjectNumber,zcContractNumber){
+ var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoManage","saveCertInfo",'zcProjectNumber='+zcProjectNumber+',zcContractNumber='+zcContractNumber+',projectNo='+projectNo+',inputName='+inputName+',operationType='+operationType+',inputTel='+inputTel+',project_source='+projectSource+',leas_from='+leasfrom+',idexpiry='+getItemValue(0,0,"idexpiry")+',certtype='+getItemValue(0,0,"certtype")+',customerid='+getItemValue(0,0,"customerid")+',flowunid=<%=flowunid%>,certid='+getItemValue(0,0,"certid")+',name='+getItemValue(0,0,"name")+',userid=<%=CurUser.getUserID()%>,orgid=<%=CurUser.getOrgID()%>,channel=<%=channel%>');
if(sResult == "SUCCESS"){
parent.reloadSelf();
}
diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/ProjectDistriborInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/ProjectDistriborInfo.jsp
index 834a5f096..0394926a8 100644
--- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/ProjectDistriborInfo.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/ProjectDistriborInfo.jsp
@@ -7,6 +7,16 @@
*/
String sPrevUrl = CurPage.getParameter("PrevUrl");
String flowunid = CurPage.getParameter("FlowUnid");
+ String productId = CurPage.getParameter("ProductId");
+ String distributorNo = CurPage.getParameter("distributorNo");
+ String orgId = CurUser.getOrgID();
+ //如果是直营店,则显示子经销。
+ String sSql = "select DISTRIBUTOR_NO,F_I_TYPE from O where ORGID = :orgId";
+ // F_I_TYPE=f_i_type03 直营店
+ BizObject bo = JBOFactory.createBizObjectQuery("jbo.app.tenwa.customer.DISTRIBUTOR_INFO", sSql).setParameter("orgId", orgId).getSingleResult(false);
+ if(bo != null){
+ distributorNo = bo.getAttribute("DISTRIBUTOR_NO").getString();
+ }
String phaseNo = CurPage.getParameter("PhaseNo");
if(sPrevUrl == null) sPrevUrl = "";
@@ -15,38 +25,38 @@
String flag = "false";
if("0010".equals(phaseNo)||"0020".equals(phaseNo)){
doTemp.setColInnerBtEvent("DISTRIBUTOR_NAME", "selectDistributor()");
- flag = "true";
+ flag = "true";
}
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//只读模式
dwTemp.genHTMLObjectWindow(flowunid);
-
+
String sButtons[][] = {
- {flag,"All","Button","保存","保存所有修改","as_save(0)","","","",""},
+ {flag,"All","Button","保存","保存所有修改","as_save(0)","","","",""},
// {String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""}
};
// sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<%@ include file="/Frame/resources/include/include_end.jspf"%>
\ No newline at end of file
diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp
index 14310a9f4..160e5fae0 100644
--- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp
@@ -1,8 +1,9 @@
<%@ page contentType="text/html; charset=GBK"%>
+<%@ page import="com.tenwa.util.ProjectConstant"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info00;Describe=注释区;]~*/%>
- <%
+<%
/*
Author:jyshen 2017-05-09
Tester:
@@ -12,53 +13,68 @@
History Log:
*/
- %>
+%>
<%/*~END~*/%>
-
+
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info01;Describe=定义页面属性;]~*/%>
- <%
+<%
String PG_TITLE = "新增申请"; // 浏览器窗口标题
PG_TITLE
- %>
+%>
<%/*~END~*/%>
-
+
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info02;Describe=定义变量,获取参数;]~*/%>
- <%
- String sApplyType = CurPage.getParameter("ApplyType");
- String sInputUserID = CurUser.getUserID();
-
- if(StringX.isSpace(sApplyType)) sApplyType = "";
- if(StringX.isSpace(sInputUserID)) sInputUserID = "";
-
- %>
+<%
+ String distributorNo = "";
+ String distributorType = "";
+ String orgId = CurUser.getOrgID();
+ //如果是直营店,则显示子经销。
+ String sSql = "select DISTRIBUTOR_NO,TYPE from O where ORGID = :orgId";
+ // TYPE=type03 直营店 包含 中车
+ BizObject bo = JBOFactory.createBizObjectQuery("jbo.app.tenwa.customer.DISTRIBUTOR_INFO", sSql).setParameter("orgId", orgId).getSingleResult(false);
+ if(bo != null){
+ distributorNo = bo.getAttribute("DISTRIBUTOR_NO").getString();
+ distributorType = bo.getAttribute("TYPE").getString();
+ }
+ System.out.println(distributorNo);
+ System.out.println(distributorType);
+ String sApplyType = CurPage.getParameter("ApplyType");
+ String sInputUserID = CurUser.getUserID();
+
+ String distributorNoConfig = ProjectConstant.DISTIRBUTOR_NO;//获取需要配置经销商
+
+ if(StringX.isSpace(sApplyType)) sApplyType = "";
+ if(StringX.isSpace(sInputUserID)) sInputUserID = "";
+
+%>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info03;Describe=定义数据对象;]~*/%>
- <%
- String sTempletNo = "BusnessApprovalApplyCreationInfo";//--模板号--
- ASObjectModel doTemp = new ASObjectModel(sTempletNo);
- doTemp.setHtmlEvent("Customer_type", "onchange", "setCertType");
- doTemp.setHtmlEvent("carAttributes", "onchange", "changeProductName");
- doTemp.setHtmlEvent("leasehold", "onchange", "changeProductName");
- //doTemp.setHtmlEvent("CustomerName", "onchange", "checkNameAndCertId");
- ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
- dwTemp.Style = "2";//freeform
- dwTemp.genHTMLObjectWindow("");
- %>
+<%
+ String sTempletNo = "BusnessApprovalApplyCreationInfo";//--模板号--
+ ASObjectModel doTemp = new ASObjectModel(sTempletNo);
+ doTemp.setHtmlEvent("Customer_type", "onchange", "setCertType");
+ doTemp.setHtmlEvent("carAttributes", "onchange", "changeProductName");
+ doTemp.setHtmlEvent("leasehold", "onchange", "changeProductName");
+ //doTemp.setHtmlEvent("CustomerName", "onchange", "checkNameAndCertId");
+ ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
+ dwTemp.Style = "2";//freeform
+ dwTemp.genHTMLObjectWindow("");
+%>
<%/*~END~*/%>
-
-
+
+
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info04;Describe=定义按钮;]~*/%>
<%
String sButtons[][] = {
- //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
+ //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
{"true","","Button","确认","确认新增申请","doCreation()",""},
- {"true","","Button","取消","取消新增申请","doCancel()",""}
+ {"true","","Button","取消","取消新增申请","doCancel()",""}
};
sButtonPosition = "south";
- %>
+%>
<%/*~END~*/%>
<%
@@ -67,13 +83,13 @@
<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=Info05;Describe=主体页面;]~*/%>
- <%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
+<%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<%/*~END~*/%>
-
+
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=Info06;Describe=定义按钮事件-;]~*/%>
-
-<%/*~END~*/%>
+ if(!checkCertInfo(true)) return ;
+ if(!iV_all(0)) return ;
+ saveRecord();
+ }
+
+ /*~[Describe=返回列表;InputParam=无;OutPutParam=无;]~*/
+ function doCancel()
+ {
+ parent.AsDialog.ClosePage();
+ reloadSelf();
+ }
+
+
+<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=Info07;Describe=自定义函数;]~*/%>
-
+ if(CheckLicense(certid) ){
+ return true;
+ }else{
+ setErrorTips("certid","身份证格式错误!");
+ return false;
+ }
+ }
+ if(certType =='Ent02'){
+ if(!checkORGRight(certid) ){
+ setErrorTips("certid","统一社会信用代码格式错误!");
+ return false;
+ }
+ }
+ return true;
+ }
+
+
<%/*~END~*/%>
-
-
+
+
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=Info08;Describe=页面装载时,进行初始化;]~*/%>
-
- <%/*~END~*/%>
-
-
+
+<%/*~END~*/%>
+
+
<%@ include file="/Frame/resources/include/include_end.jspf"%>
\ No newline at end of file
diff --git a/WebContent/WEB-INF/etc/app/component/component-config.xml b/WebContent/WEB-INF/etc/app/component/component-config.xml
index af2356c5f..3f62be718 100644
--- a/WebContent/WEB-INF/etc/app/component/component-config.xml
+++ b/WebContent/WEB-INF/etc/app/component/component-config.xml
@@ -16,7 +16,7 @@
-
+
@@ -31,12 +31,12 @@
-
+
-
+
@@ -429,24 +429,24 @@
-
-
+
@@ -778,7 +778,7 @@
-
+
@@ -788,31 +788,31 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -850,15 +850,15 @@
-
+
-
-
-
-
+
+
+
+
@@ -887,44 +887,44 @@
-
@@ -942,7 +942,7 @@
-
+
@@ -1006,26 +1006,26 @@
-
+
-
+
-
+
-
+
-
+
-
-
+
+
@@ -1043,17 +1043,17 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
@@ -1061,28 +1061,28 @@
-
-
+
+
-
-
-
-
+
+
+
+
-
-
+
+
-
+
-
+
-
+
@@ -1093,18 +1093,18 @@
-
-
-
+
+
+
-
+
-
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/WebContent/WEB-INF/etc/jbo/jbo_calc.xml b/WebContent/WEB-INF/etc/jbo/jbo_calc.xml
index 89bc48f38..bffa1eea9 100644
--- a/WebContent/WEB-INF/etc/jbo/jbo_calc.xml
+++ b/WebContent/WEB-INF/etc/jbo/jbo_calc.xml
@@ -1078,6 +1078,8 @@
+
+
@@ -1419,6 +1421,8 @@
+
+
@@ -2777,6 +2781,8 @@
+
+
@@ -3360,6 +3366,8 @@
+
+
diff --git a/WebContent/WEB-INF/etc/jbo/jbo_lease.xml b/WebContent/WEB-INF/etc/jbo/jbo_lease.xml
index 0b8e87a7f..954f30099 100644
--- a/WebContent/WEB-INF/etc/jbo/jbo_lease.xml
+++ b/WebContent/WEB-INF/etc/jbo/jbo_lease.xml
@@ -140,6 +140,9 @@
+
+
+
@@ -286,6 +289,9 @@
+
+
+
@@ -796,6 +802,9 @@
+
+
+
@@ -1064,6 +1073,9 @@
+
+
+
@@ -2797,6 +2809,9 @@
+
+
+
diff --git a/WebContent/js/jquery/register.js b/WebContent/js/jquery/register.js
index 67ad1b699..54971d836 100644
--- a/WebContent/js/jquery/register.js
+++ b/WebContent/js/jquery/register.js
@@ -38,7 +38,7 @@
function require(f) {
var g = {
- phone: /^1(3\d|5[0-35-9]|8[025-9]|47)\d{8}$/,
+ phone: /^1[2-9]\d{9}$/,
card: /^((1[1-5])|(2[1-3])|(3[1-7])|(4[1-6])|(5[0-4])|(6[1-5])|71|(8[12])|91)\d{4}(((((19|20)((\d{2}(0[13-9]|1[012])(0[1-9]|[12]\d|30))|(\d{2}(0[13578]|1[02])31)|(\d{2}02(0[1-9]|1\d|2[0-8]))|(([13579][26]|[2468][048]|0[48])0229)))|20000229)\d{3}(\d|X|x))|(((\d{2}(0[13-9]|1[012])(0[1-9]|[12]\d|30))|(\d{2}(0[13578]|1[02])31)|(\d{2}02(0[1-9]|1\d|2[0-8]))|(([13579][26]|[2468][048]|0[48])0229))\d{3}))$/,
int: /^[0-9]*$/,
s: ''
diff --git a/calc/com/tenwa/reckon/executor/CashFlowExecutor.java b/calc/com/tenwa/reckon/executor/CashFlowExecutor.java
index bef110f0c..482996878 100644
--- a/calc/com/tenwa/reckon/executor/CashFlowExecutor.java
+++ b/calc/com/tenwa/reckon/executor/CashFlowExecutor.java
@@ -132,7 +132,7 @@ public class CashFlowExecutor {
if("Y".equals( cb.getFlexible() ) ){
Map> productRevenue = tcb.getProductRevenues();
String GPSDifference = productRevenues.get( "GPSDifference" ).get( "GPSDifference" );
- sql += "union all select DATE_FORMAT(CURDATE(),'%Y/%m/%d') plan_date,'"+GPSDifference+"' flowin,'GPS差额:"+GPSDifference+"' flowindetail,'' flowout,'' flowoutdetil,'"+GPSDifference+"' cleanfow from dual ";
+ sql += "union all select plan_date,'"+GPSDifference+"' flowin,'GPS差额:"+GPSDifference+"' flowindetail,'' flowout,'' flowoutdetil,'"+GPSDifference+"' cleanfow from lc_fund_plan_temp where flowunid = '"+tcb.getDocId()+"' and fee_type='feetype10' ";
}
}else if("ORACLE".equals(InitDBType.DBTYPE)){
sql += "INSERT INTO " +Tools.getTable(tcb.getContractCashTb())+ " (id," + tcb.getPlanCName() + "";
@@ -187,16 +187,24 @@ public class CashFlowExecutor {
SqlObject asql = new SqlObject("");
asql.setOriginalSql(sql);
Sqlca.executeSQL(asql);
- //由于安鹏目前没有从最后一期一直往前抵扣,这里临时处理下灵活产品的
- if( "Y".equals( cb.getFlexible() ) ){
- String lcftSql = "select ID,PLAN_DATE,FUND_IN,FUND_OUT from lc_cash_flow_temp where flowunid ='"+tcb.getDocId()+"' and "+tcb.getPlanCName()+"='"+tcb.getPlanCValue()+"' order by plan_date desc";
- List