From f2a65cbc43d8d5bf56427d6b6eb1c805c055225d Mon Sep 17 00:00:00 2001 From: user Date: Sat, 23 Jun 2018 13:18:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=9A=E5=8A=A1=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E7=A7=9F=E8=B5=81=E6=96=B9=E5=BC=8F=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=80=BC=E5=88=B7=E6=96=B0=E6=B2=A1=E6=9C=89=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E6=94=B9=E4=B8=9A=E5=8A=A1=E7=94=B3=E8=AF=B7?= =?UTF-8?q?=E5=8F=91=E8=B5=B7=E6=96=B9=E6=B3=95=EF=BC=8C=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=8B=85=E4=BF=9D=E4=BA=BA=E9=A1=B5=E9=9D=A2=E5=8D=95=E4=BD=8D?= =?UTF-8?q?=E7=94=B5=E8=AF=9D=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LBGuaranteePerUnitInfo.jsp | 30 +++++++++++++++++-- .../BusinessProjectTempInfo.jsp | 5 ++-- .../BusinessApplication/CustomerInfo.jsp | 2 +- .../ProjectApprovalCreationInfo.jsp | 4 +-- .../LBProjectIntoTempInitCarBusiness.java | 8 +---- 5 files changed, 34 insertions(+), 15 deletions(-) diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp index 7f7023152..a66623f31 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp @@ -40,15 +40,20 @@ var certType = getItemValue(0,getRow(0),"CERTTYPE"); var certId = getItemValue(0,getRow(0),"CERTID"); if(certType==""){ + //setErrorTips("certType","证件类型不能为空!"); alert("证件类型不能为空!"); + return false; } if(certId==""){ + //setErrorTips("certId","证件号不能为空!"); alert("证件号不能为空!"); + return false; } if(certType=="Ent02"){ if(checkORGRight1(certId)){ return true; }else{ + //setErrorTips("certId","组织机构代码格式不正确!"); alert("组织机构代码格式不正确!"); return false; } @@ -57,6 +62,7 @@ if(CheckLicense(certId)){ return true; }else{ + //setErrorTips("certId","身份证格式不正确!"); alert("身份证格式不正确!"); return false; } @@ -64,25 +70,43 @@ if(certType=="Ent03"){ return true; } - } function checkTel(){ var mobile = getItemValue(0,getRow(0),"mobile"); if(mobile==""){ + //setErrorTips("mobile","手机号不能为空!"); alert("手机号不能为空!"); + return false; } if(CheckPhoneCode(mobile)){ return true; }else{ + //setErrorTips("mobile","手机号格式不正确!"); alert("手机号格式不正确!"); return false; } - + } + + function checkWorkTel(){ + var workTel = getItemValue(0,getRow(0),"WORKTEL"); + if(workTel==""){ + //setErrorTips("WORKTEL","单位电话不能为空!"); + alert("单位电话不能为空!"); + return false; + } + if(CheckPhoneCode(workTel)){ + return true; + }else{ + //setErrorTips("WORKTEL","单位电话格式不正确!"); + alert("单位电话格式不正确!"); + return false; + } } function save(){ - if(checkTel()==true&&checkCertId()==true){ + debugger; + if(checkTel()==true&&checkCertId()==true&&checkWorkTel()==true){ as_save(0,"goBack()"); } } diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessProjectTempInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessProjectTempInfo.jsp index 701d4dfdc..019f696d5 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessProjectTempInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/BusinessProjectTempInfo.jsp @@ -65,12 +65,13 @@ var leasfrom = getItemValue(0,getRow(),"LEAS_FORM"); var projectSource = getItemValue(0,getRow(),"PROJECT_SOURCE"); var customerType = "<%=custype%>"; - if(customerType=="01"){ + if(customerType=="01"){//法人 as_save("myiframe0","frame_list.window.as_save(0);"); //as_save(0); } - if(customerType=="03"){ + if(customerType=="03"){//自然人 frame_list.window.saveRecord(leasfrom,projectSource); + //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 9edfaf7ac..2c8d52fe7 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp @@ -15,7 +15,6 @@ String sTempletNo = "BusinessCustomerInfo";//--模板号-- ASObjectModel doTemp = new ASObjectModel(sTempletNo); String custname=CurPage.getParameter("custname"); - System.out.print(custname+"====================="); doTemp.setHtmlEvent("CERTID","onChange","changeCertid"); doTemp.setHtmlEvent("MARRIAGE","onChange","changeChildrensNumber"); String rightType = CurPage.getParameter("RightType");//页面只读与否 @@ -160,6 +159,7 @@ } function saveRecord(leasfrom,projectSource){ + //as_save("myiframe0","frame_list.window.as_save(0);"); <%-- var idexpiry=getItemValue(0,getRow(),"IDEXPIRY"); var date1 = "<%=dateString%>"; if(date1>=idexpiry){ diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp index f1052df8f..5a1089959 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp @@ -304,7 +304,7 @@ } } -// if(carAttributes=='1'){ +// if(carAttributes=='01'){ // AsDialog.OpenSelector("SelectBusinessType","ProductType,1,TypeNo,0005","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px", // function(sReturn){ // if(!sReturn||sReturn=="_CANCEL_"||sReturn==""||sReturn=="_NONE_") @@ -317,7 +317,7 @@ // setItemValue(0,0,"productId",sReturn[0]); // setItemValue(0,0,"productName",sReturn[1]); // },"请选择产品",''); -// }else if(carAttributes=='2'){ +// }else if(carAttributes=='02'){ // AsDialog.OpenSelector("SelectBusinessType","ProductType,1,TypeNo,0005","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px", // function(sReturn){ // if(!sReturn||sReturn=="_CANCEL_"||sReturn==""||sReturn=="_NONE_") diff --git a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBProjectIntoTempInitCarBusiness.java b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBProjectIntoTempInitCarBusiness.java index e1bc9c92a..a129526ac 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBProjectIntoTempInitCarBusiness.java +++ b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBProjectIntoTempInitCarBusiness.java @@ -77,8 +77,6 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness { if(certType.equals("Ent02")){ bmCC.setAttributeValue("flowunid", this.getAttribute("FlowUnid")); bmCC.setAttributeValue("customerid", customerId); - String custname = this.getAttribute("custname").toString(); - String certid = this.getAttribute("certid").toString(); bmCC.setAttributeValue("enterprisename", this.getAttribute("custname")); bmCC.setAttributeValue("certid", this.getAttribute("certid")); bmCCT.saveObject(bmCC); @@ -107,13 +105,9 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness { bo.setAttributeValue("project_name",this.getAttribute("ProjectNo")); bo.setAttributeValue("project_manage",this.getAttribute("CurUserID")); bo.setAttributeValue("project_dept",asUser.getOrgID()); - - String versionid = this.getAttribute("versionid").toString(); - String bustype = this.getAttribute("businessType").toString(); - bo.setAttributeValue("VERSIONID", this.getAttribute("versionid")); bo.setAttributeValue("BUSINESSTYPE", this.getAttribute("businessType")); - bo.setAttributeValue("LEAS_FORM", this.getAttribute("leasehold"));//默认回租 + bo.setAttributeValue("LEAS_FORM", this.getAttribute("leasehold"));//租赁方式 bo.setAttributeValue("PRODUCT_ID",this.getAttribute("ProductId"));//业务品种编号 bo.setAttributeValue("PRODUCT_NAME",this.getAttribute("ProductName"));//业务品种名称 bo.setAttributeValue("PROJECT_STATUS","0");