From c654cff68bf9a2d4546257dd621513c873af6329 Mon Sep 17 00:00:00 2001 From: user Date: Mon, 9 Jul 2018 15:26:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E7=94=B3=E8=AF=B7=EF=BC=8C?= =?UTF-8?q?=E9=85=8D=E5=81=B6=E4=BF=A1=E6=81=AF=E9=A1=B5=E9=9D=A2=E5=85=A5?= =?UTF-8?q?=E5=80=BC=E9=A1=B9=E7=9B=AEID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BusinessApplication/CustomerFamilyTempInfo.jsp | 7 ++++--- .../project/businessapply/CustomerInfoManage.java | 13 +++++++++++++ 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp index 941d7ae81..76cb15c22 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp @@ -6,6 +6,8 @@ History Log: */ String sPrevUrl = CurPage.getParameter("PrevUrl"); + String projectId = CurPage.getParameter("ProjectId"); + System.out.print("========================="+projectId); String flowunid = CurPage.getParameter("FlowUnid"); String customerid = Sqlca.getString("select customer_id from lb_union_lessee_temp where flowunid='"+flowunid+"'"); String marriage = Sqlca.getString("select MARRIAGE from CUSTOMER_PERSON_TEMP where flowunid='"+flowunid+"'"); @@ -60,7 +62,6 @@ var certid = getItemValue(0,0,"certid"); var tel = getItemValue(0,0,"tel"); var partner = getItemValue(0,getRow(0),"Partner_"); - if(partner=="Y"){ var result = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerPartnerCheck","CheckPartnerInfo","flowunid=<%=flowunid%>"); if(result=="1"){ @@ -101,7 +102,7 @@ } } var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoManage","saveCustomerFamily", - "relative=01,status=valid,customerid=<%=customerid%>,flowunid=<%=flowunid%>,certid="+getItemValue(0,0,"certid")+",name="+getItemValue(0,0,"name")+",tel="+getItemValue(0,0,"tel")+",suname="+getItemValue(0,0,"suname")+",partner="+getItemValue(0,getRow(0),"Partner_")+",sposition="+getItemValue(0,getRow(0),"sposition")+",suphone="+getItemValue(0,getRow(0),"suphone")+",smincome="+getItemValue(0,getRow(0),"smincome")+",shukou="+getItemValue(0,getRow(0),"shukou")); + "relative=01,status=valid,customerid=<%=customerid%>,flowunid=<%=flowunid%>,projectId=<%=projectId%>,certid="+getItemValue(0,0,"certid")+",name="+getItemValue(0,0,"name")+",tel="+getItemValue(0,0,"tel")+",suname="+getItemValue(0,0,"suname")+",partner="+getItemValue(0,getRow(0),"Partner_")+",sposition="+getItemValue(0,getRow(0),"sposition")+",suphone="+getItemValue(0,getRow(0),"suphone")+",smincome="+getItemValue(0,getRow(0),"smincome")+",shukou="+getItemValue(0,getRow(0),"shukou")); if(sResult == "SUCCESS"){ reloadSelf(); } @@ -110,7 +111,7 @@ setItemValue(0,0,"certid",""); setItemValue(0,0,"tel",""); var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoManage","saveCustomerFamily", - "relative=01,status=valid,customerid=<%=customerid%>,flowunid=<%=flowunid%>,certid="+getItemValue(0,0,"certid")+",name="+getItemValue(0,0,"name")+",tel="+getItemValue(0,0,"tel")); + "relative=01,status=valid,customerid=<%=customerid%>,flowunid=<%=flowunid%>,projectId=<%=projectId%>,certid="+getItemValue(0,0,"certid")+",name="+getItemValue(0,0,"name")+",tel="+getItemValue(0,0,"tel")); if(sResult == "SUCCESS"){ reloadSelf(); } 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 fb2b46c0e..15031387a 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/businessapply/CustomerInfoManage.java +++ b/src_tenwa/com/tenwa/lease/flow/project/businessapply/CustomerInfoManage.java @@ -36,7 +36,16 @@ public class CustomerInfoManage { private String suphone; private String smincome; private String shukou; + private String projectId; + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + public String getShukou() { return shukou; } @@ -230,6 +239,8 @@ public class CustomerInfoManage { bo.setAttributeValue("smincome", smincome); bo.setAttributeValue("shukou", shukou); bo.setAttributeValue("Spouse_", "Y"); + String proejctId = this.projectId; + bo.setAttributeValue("PROJECT_ID", projectId); }else{ bo = bom.newObject(); bo.setAttributeValue("flowunid", flowunid); @@ -247,6 +258,8 @@ public class CustomerInfoManage { bo.setAttributeValue("smincome", smincome); bo.setAttributeValue("shukou", shukou); bo.setAttributeValue("Spouse_", "Y"); + String proejctId = this.projectId; + bo.setAttributeValue("PROJECT_ID", projectId); } bom.saveObject(bo); }catch(Exception e){