From a2df4a5746e410134c3a8398529f1e32ac87a77c Mon Sep 17 00:00:00 2001 From: user Date: Tue, 17 Jul 2018 09:01:51 +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=E6=B7=BB=E5=8A=A0=E5=B1=85?= =?UTF-8?q?=E4=BD=8F=E5=9C=B0=E5=9D=80=E5=AD=97=E6=AE=B5=E5=B9=B6=E5=85=A5?= =?UTF-8?q?=E5=80=BC=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BusinessApplication/CustomerFamilyTempInfo.jsp | 7 ++++++- .../project/businessapply/CustomerInfoManage.java | 11 +++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp index 0e5b79069..65106657d 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp @@ -132,6 +132,7 @@ var suphone = getItemValue(0,getRow(0),"suphone"); var sposition = getItemValue(0,getRow(0),"sposition"); var smincome = getItemValue(0,getRow(0),"smincome"); + var workunit = getItemValue(0,getRow(0),"workunit"); if(name=="" && "01"==status){ alert("请输入姓名!"); @@ -169,6 +170,10 @@ alert("请输入月收入金额!"); return; } + if(workunit=="" && "01"==status){ + alert("请输入居住地址!"); + return; + } if(name.length > 0){ if(certid.length > 0){ @@ -201,7 +206,7 @@ } } var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoManage","saveCustomerFamily", - "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")); + "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")+",workunit="+getItemValue(0,getRow(0),"workunit")); 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 036f1f1d3..9a737d6ec 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/businessapply/CustomerInfoManage.java +++ b/src_tenwa/com/tenwa/lease/flow/project/businessapply/CustomerInfoManage.java @@ -37,7 +37,16 @@ public class CustomerInfoManage { private String smincome; private String shukou; private String projectId; + private String workunit; + public String getWorkunit() { + return workunit; + } + + public void setWorkunit(String workunit) { + this.workunit = workunit; + } + public String getProjectId() { return projectId; } @@ -240,6 +249,7 @@ public class CustomerInfoManage { bo.setAttributeValue("shukou", shukou); bo.setAttributeValue("Spouse_", "Y"); bo.setAttributeValue("PROJECT_ID", projectId); + bo.setAttributeValue("workunit", workunit); }else{ bo = bom.newObject(); bo.setAttributeValue("flowunid", flowunid); @@ -258,6 +268,7 @@ public class CustomerInfoManage { bo.setAttributeValue("shukou", shukou); bo.setAttributeValue("Spouse_", "Y"); bo.setAttributeValue("PROJECT_ID", projectId); + bo.setAttributeValue("workunit", workunit); } bom.saveObject(bo); }catch(Exception e){