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){