diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp index e774596c3..eae6a5c15 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp @@ -93,7 +93,7 @@ setItemValue(0,0,"CERTTYPE","Ind01"); } - function checkName(){ + function checkName(){//校验姓名 var customerType = "03"; var customerName = getItemValue(0,getRow(),"FULLNAME"); //var certId = getItemValue(0,getRow(),"certid"); @@ -103,7 +103,7 @@ return sReturnInfo; } - function checkCertId(){ + function checkCertId(){//校验证件号 var customerType = "03"; //var customerName = getItemValue(0,getRow(),"CustomerName"); var certId = getItemValue(0,getRow(),"CERTID"); @@ -113,7 +113,7 @@ return sReturnInfo; } - function checkMobile(){ + function checkMobile(){//校验手机号 var customerType = "03"; var mobile = getItemValue(0,getRow(),"mobile"); var sParams = "mobile="+mobile+",customerType="+customerType; @@ -121,6 +121,22 @@ return sReturnInfo; } + function checkEmergencyContactTel(){//校验紧急联系人1电话 + var customerType = "03"; + var emergencyTel = getItemValue(0,getRow(),"EMERGENCY_CONTACT_TEL"); + var sParams = "mobile="+emergencyTel+",customerType="+customerType; + var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobile",sParams); + return sReturnInfo; + } + + function checkRemark(){//校验紧急联系人2电话 + var customerType = "03"; + var remark = getItemValue(0,getRow(),"REMARK"); + var sParams = "mobile="+remark+",customerType="+customerType; + var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobile",sParams); + return sReturnInfo; + } + $(document).ready(function(){ // var nameResult = checkName(); @@ -138,6 +154,16 @@ //$("#FULLNAME").attr("style","color:red;"); $("#MOBILE").css("color","red"); } + var EmergencyResult = checkEmergencyContactTel(); + if(EmergencyResult=="6"){ + //$("#FULLNAME").attr("style","color:red;"); + $("#EMERGENCY_CONTACT_TEL").css("color","red"); + } + var remarkResult = checkRemark(); + if(remarkResult=="6"){ + //$("#FULLNAME").attr("style","color:red;"); + $("#REMARK").css("color","red"); + } if("0020"!="<%=sPhaseNo%>"){ $("#ButtonTR").attr("style","display:none;");