diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp index 4f093d119..d41b92a87 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp @@ -64,7 +64,11 @@ return true; }else{ //setErrorTips("certId","身份证格式不正确!"); - alert("身份证格式不正确!"); + if(certId.length==18){ + alert("身份证格式错误!"); + }else{ + alert("身份证必须是18位!"); + } return false; } } diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/ApprovalForm.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/ApprovalForm.jsp index f6a3ba7eb..8ed56050a 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/ApprovalForm.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/ApprovalForm.jsp @@ -14,6 +14,7 @@ String phaseNo = CurPage.getAttribute("PhaseNo"); String taskno=CurPage.getParameter("TaskNo"); String RightType= CurPage.getParameter("RightType"); + String customerType= CurPage.getParameter("CustomerType"); String flowunid = CurPage.getParameter("FlowUnid"); String clean_lease_money = Sqlca.getString("select CLEAN_LEASE_MONEY from LC_CALC_CONDITION_TEMP where flowunid='"+flowunid+"'"); @@ -26,6 +27,9 @@ String sTempletNo = "VI_BUSINESS_APPROVAL";//--模板号-- ASObjectModel doTemp = new ASObjectModel(sTempletNo); + if("01".equals(customerType)){ + doTemp.setVisible("SEX",false);//如果是法人客户隐藏性别字段 + } doTemp.setHtmlEvent("firstchoice","onChange","changeFirstChoice"); doTemp.setHtmlEvent("secondchoice","onChange","changeSecondChoice"); doTemp.setHtmlEvent("thirdchoice","onChange","changeThirdChoice"); diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyJoinTempInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyJoinTempInfo.jsp index 51515ae64..3968043a6 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyJoinTempInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyJoinTempInfo.jsp @@ -51,7 +51,11 @@ return true; }else{ //setErrorTips("certId","身份证格式不正确!"); - alert("身份证格式不正确!"); + if(certId.length==18){ + alert("身份证格式错误!"); + }else{ + alert("身份证必须是18位!"); + } return false; } diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp index 4a95a5b66..1547bfd28 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp @@ -209,7 +209,11 @@ // } else{ parent.parent.openDWDialog(); - setErrorTips("certid","身份证格式有误!"); + if(certid.length==18){ + setErrorTips("certid","身份证格式错误!"); + }else{ + setErrorTips("certid","身份证必须是18位!"); + } parent.parent.resetDWDialog("配偶身份证信息错误!",false); return false; } diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp index 790151371..91a77ed3d 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp @@ -421,7 +421,11 @@ if(CheckLicense(certid) ){ return true; }else{ - setErrorTips("certid","身份证格式错误!"); + if(certid.length==18){ + setErrorTips("certid","身份证格式错误!"); + }else{ + setErrorTips("certid","身份证必须是18位!"); + } return false; } } 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 639ed10b7..687855830 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/businessapply/CustomerInfoManage.java +++ b/src_tenwa/com/tenwa/lease/flow/project/businessapply/CustomerInfoManage.java @@ -42,6 +42,7 @@ public class CustomerInfoManage { private String smincome; private String shukou; private String projectId; + private String workunit; public String getF_I_TYPE() { return F_I_TYPE; @@ -218,6 +219,13 @@ public class CustomerInfoManage { public void setFlowunid(String flowunid) { this.flowunid = flowunid; } + public String getWorkunit() { + return workunit; + } + + public void setWorkunit(String workunit) { + this.workunit = workunit; + } public String saveCustomerFamilyFormal(JBOTransaction tx){ try{ @@ -261,6 +269,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); @@ -279,6 +288,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){