自然人信息,紧急联系人1字段和紧急联系人2字段添加红字校验
This commit is contained in:
parent
726de652d1
commit
be54a64b9d
@ -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;");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user