From 3ef2df03b53933cefdbf431e498364fd3ebbc46e Mon Sep 17 00:00:00 2001 From: tangft <32189@DESKTOP-M6TAG3K> Date: Wed, 9 Jan 2019 19:44:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E5=90=8D=E7=A7=B0=E6=A0=B9?= =?UTF-8?q?=E6=8D=AE=E7=94=B3=E8=AF=B7=E7=BC=96=E5=8F=B7=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BusinessProjectTempInfo.jsp | 14 +++++++------- .../BusinessApplication/CustomerInfo.jsp | 9 ++++----- .../handler/company/CompanyHandler.java | 2 +- .../businessapply/CustomerInfoManage.java | 19 ++++++++++++++++--- 4 files changed, 28 insertions(+), 16 deletions(-) diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessProjectTempInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessProjectTempInfo.jsp index 1416c0a47..a4917e89c 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessProjectTempInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessProjectTempInfo.jsp @@ -87,20 +87,20 @@ return; } */ var operationType="<%=operationType%>"; - if("BAIC_MOTOR"==operationType){ - var sReturn = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","changFlowKey","projectNo="+projectNo+",flowunid=<%=sFlowUnid%>"); - if("false"==sReturn){ - return "申请编号保存错误!!!"; - } - } if(customerType=="01"||customerT=="01"){//法人 //as_save("myiframe0","frame_list.window.saveCompany();"); +// if("BAIC_MOTOR"==operationType){ + var sReturn = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","changFlowKey","projectNo="+projectNo+",flowunid=<%=sFlowUnid%>"); + if("false"==sReturn){ + return "申请编号保存错误!!!"; + } +// } frame_list.window.saveCompany(inputName,inputTel,projectNo); //as_save(0); } if(customerType=="03"||customerT=="03"){//自然人 - frame_list.window.saveRecord(leasfrom,projectSource,inputName,inputTel,projectNo); + frame_list.window.saveRecord(leasfrom,projectSource,inputName,inputTel,projectNo,operationType); //as_save("myiframe0","frame_list.window.as_save(0);"); } } diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp index 007117133..6a9070e54 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp @@ -424,7 +424,7 @@ } */ } - function saveRecord(leasfrom,projectSource,inputName,inputTel,projectNo){//保存 + function saveRecord(leasfrom,projectSource,inputName,inputTel,projectNo,operationType){//保存 //校验申请人手机号和配偶手机号是否重复 var RepeatReault = ""; var customerType = "03"; @@ -544,14 +544,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+"')"); + as_save("0","saveCertInfo('"+inputName+"','"+inputTel+"','"+leasfrom+"','"+projectSource+"','"+projectNo+"','"+operationType+"')"); return true; }; } - function saveCertInfo(inputName,inputTel,leasfrom,projectSource,projectNo){ - - var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoManage","saveCertInfo",'projectNo='+projectNo+',inputName='+inputName+',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){ + 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()%>'); if(sResult == "SUCCESS"){ parent.reloadSelf(); } diff --git a/src_tenwa/com/tenwa/customer/handler/company/CompanyHandler.java b/src_tenwa/com/tenwa/customer/handler/company/CompanyHandler.java index a49489094..2f5e25ce9 100644 --- a/src_tenwa/com/tenwa/customer/handler/company/CompanyHandler.java +++ b/src_tenwa/com/tenwa/customer/handler/company/CompanyHandler.java @@ -22,7 +22,7 @@ public class CompanyHandler extends CommonHandler{ BizObject fbo = fbom.createQuery("flow_unid=:flowunid").setParameter("flowunid", flowunid).getSingleResult(true); String pname = fbo.getAttribute("proj_name").getString(); pname = pname.substring(0, pname.indexOf("-")); - fbo.setAttributeValue("proj_name", pname+"-"+proj_name); +// fbo.setAttributeValue("proj_name", pname+"-"+proj_name); fbom.saveObject(fbo); BizObject lpit=lpitManage.createQuery("flowunid='"+bo.getAttribute("FLOWUNID").getString()+"'").getSingleResult(true); diff --git a/src_tenwa/com/tenwa/lease/flow/project/businessapply/CustomerInfoManage.java b/src_tenwa/com/tenwa/lease/flow/project/businessapply/CustomerInfoManage.java index 3e091140a..46c562c5e 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/businessapply/CustomerInfoManage.java +++ b/src_tenwa/com/tenwa/lease/flow/project/businessapply/CustomerInfoManage.java @@ -50,6 +50,7 @@ public class CustomerInfoManage { private String inputTel; private String distributorCode; private String projectNo; + private String operationType; public String getDistributorCode() { return distributorCode; @@ -271,6 +272,13 @@ public class CustomerInfoManage { public void setProjectNo(String projectNo) { this.projectNo = projectNo; } + public String getOperationType() { + return operationType; + } + + public void setOperationType(String operationType) { + this.operationType = operationType; + } public String saveCustomerFamilyFormal(JBOTransaction tx){ try{ @@ -389,9 +397,14 @@ public class CustomerInfoManage { } //update 项目名称 if(buss != null){ - String projName = buss.getAttribute("proj_name").toString(); - projName = projName.split("-")[0].toString(); - buss.setAttributeValue("proj_name", projName + "-" + fullname); + if("BAIC_MOTOR".equals(operationType)){ + buss.setAttributeValue("FLOW_KEY", projectNo); + buss.setAttributeValue("proj_name", projectNo + "-" + fullname); + }else{ + String projName = buss.getAttribute("proj_name").toString(); + projName = projName.split("-")[0].toString(); + buss.setAttributeValue("proj_name", projName + "-" + fullname); + } } busObj.saveObject(buss); bm.saveObject(proj);