共同申请人保存将错误信息弹出改为在后面标红显示
This commit is contained in:
parent
c94fa6ff11
commit
e619eb1be1
@ -15,6 +15,8 @@
|
||||
doTemp.setColTips("", "");
|
||||
doTemp.setDefaultValue("project_id", ProjectId);
|
||||
doTemp.setHtmlEvent("tel","onChange","checkTelRepeat");
|
||||
doTemp.setHtmlEvent("certId","onChange","checkCertId");
|
||||
doTemp.setHtmlEvent("suphone","onChange","checkSuphone");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
//dwTemp.ReadOnly = "-2";//只读模式
|
||||
@ -41,21 +43,19 @@
|
||||
<script type="text/javascript">
|
||||
function checkCertId(){//校验共同申请人证件号格式
|
||||
var certId = getItemValue(0,getRow(0),"certid");
|
||||
if(certId.length!=18){
|
||||
alert("身份证必须是18位!");
|
||||
return false;
|
||||
}
|
||||
if(certId==""){
|
||||
//setErrorTips("certId","证件号不能为空!");
|
||||
alert("证件号不能为空!");
|
||||
setErrorTips("certId","证件号不能为空!");
|
||||
return false;
|
||||
}
|
||||
if(certId.length!=18){
|
||||
setErrorTips("certid","身份证必须是18位!");
|
||||
return false;
|
||||
}
|
||||
|
||||
if(CheckLicense(certId)){
|
||||
setErrorTips("certid","");
|
||||
return true;
|
||||
}else{
|
||||
//setErrorTips("certId","身份证格式不正确!");
|
||||
alert("身份证格式错误!");
|
||||
setErrorTips("certId","身份证格式不正确!");
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -64,15 +64,16 @@
|
||||
function checkTel(){//校验共同申请人手机号格式
|
||||
var tel = getItemValue(0,getRow(0),"tel");
|
||||
if(tel==""){
|
||||
//setErrorTips("mobile","手机号不能为空!");
|
||||
alert("手机号不能为空!");
|
||||
setErrorTips("tel","手机号不能为空!");
|
||||
//alert("手机号不能为空!");
|
||||
return false;
|
||||
}
|
||||
if(CheckPhoneCode(tel)){
|
||||
setErrorTips("tel","");
|
||||
return true;
|
||||
}else{
|
||||
//setErrorTips("mobile","手机号格式不正确!");
|
||||
alert("手机号格式不正确!");
|
||||
setErrorTips("tel","手机号格式不正确!");
|
||||
//alert("手机号格式不正确!");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -80,15 +81,16 @@
|
||||
function checkSuphone(){//校验单位电话格式和不为空
|
||||
var suphone = getItemValue(0,getRow(0),"suphone");
|
||||
if(suphone==""){
|
||||
//setErrorTips("mobile","手机号不能为空!");
|
||||
alert("单位电话不能为空!");
|
||||
setErrorTips("suphone","单位电话不能为空!");
|
||||
//alert("单位电话不能为空!");
|
||||
return false;
|
||||
}
|
||||
if(CheckPhoneCode(suphone)){
|
||||
setErrorTips("suphone","");
|
||||
return true;
|
||||
}else{
|
||||
//setErrorTips("mobile","手机号格式不正确!");
|
||||
alert("单位电话格式不正确!");
|
||||
setErrorTips("suphone","单位电话格式不正确!");
|
||||
//alert("单位电话格式不正确!");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -99,9 +101,12 @@
|
||||
var sParams = "mobile="+tel+",customerType="+customerType+",flowunid="+"<%=FlowUnid%>";
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobileRepeat",sParams);
|
||||
if(sReturnInfo=="8"){
|
||||
alert("该手机号已重复!");
|
||||
setErrorTips("tel","该手机号已重复!");
|
||||
//alert("该手机号已重复!");
|
||||
setItemValue(0,0,"tel","");
|
||||
return;
|
||||
}else{
|
||||
setErrorTips("tel","");
|
||||
}
|
||||
}
|
||||
|
||||
@ -146,14 +151,14 @@
|
||||
if(SuphoneResult==false){
|
||||
return;
|
||||
}
|
||||
// var ID = getItemValue(0,getRow(0),'ID');
|
||||
// if("undefined"==ID||""==ID || null==ID){
|
||||
// AsDebug.showMessage("提示","请选中一条数据!","","",true);
|
||||
// return;
|
||||
// }
|
||||
// var sUrl = "/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyJoinTempInfo.jsp";
|
||||
// var sparam = 'ID='+ID;
|
||||
// AsControl.OpenView(sUrl,sparam,"_self","");
|
||||
/*var ID = getItemValue(0,getRow(0),'ID');
|
||||
if("undefined"==ID||""==ID || null==ID){
|
||||
AsDebug.showMessage("提示","请选中一条数据!","","",true);
|
||||
return;
|
||||
}
|
||||
var sUrl = "/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyJoinTempInfo.jsp";
|
||||
var sparam = 'ID='+ID;
|
||||
AsControl.OpenView(sUrl,sparam,"_self","");
|
||||
var name = getItemValue(0,0,"name");
|
||||
var certid = getItemValue(0,0,"certid");
|
||||
var tel = getItemValue(0,0,"tel");
|
||||
@ -165,14 +170,14 @@
|
||||
if(name=="" || certid=="" || tel==""){
|
||||
alert("请输入共同申请人信息!");
|
||||
return;
|
||||
}else{
|
||||
}else{ */
|
||||
var flowunid = getItemValue(0,0,"flowunid");
|
||||
if(null==flowunid||""==flowunid){
|
||||
setItemValue(0, 0, "flowunid", "<%=FlowUnid%>");
|
||||
setItemValue(0, 0, "Partner_", "Y");
|
||||
}
|
||||
as_save(0);
|
||||
}
|
||||
// }
|
||||
}
|
||||
function returnList(){
|
||||
AsControl.OpenView("<%=sPrevUrl%>", "","_self","");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user