业务申请,申请人信息手机号重复校验
This commit is contained in:
parent
0a0fcc973a
commit
e484f8052e
@ -21,6 +21,7 @@
|
||||
doTemp.setHtmlEvent("CERTID","onChange","changeCertid");
|
||||
doTemp.setHtmlEvent("MARRIAGE","onChange","changeFamilyRequired");
|
||||
doTemp.setHtmlEvent("Mailing_Address","onChange","checkMailingAddress");
|
||||
doTemp.setHtmlEvent("mobile","onChange","checkMobileRepeat");
|
||||
String rightType = CurPage.getParameter("RightType");//页面只读与否
|
||||
if(rightType==null)rightType="";
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
@ -113,7 +114,7 @@
|
||||
return sReturnInfo;
|
||||
}
|
||||
|
||||
function checkMobile(){//校验手机号
|
||||
function checkMobile(){//校验手机号标红
|
||||
var customerType = "03";
|
||||
var mobile = getItemValue(0,getRow(),"mobile");
|
||||
var sParams = "mobile="+mobile+",customerType="+customerType;
|
||||
@ -121,6 +122,18 @@
|
||||
return sReturnInfo;
|
||||
}
|
||||
|
||||
function checkMobileRepeat(){//校验手机号重复
|
||||
var customerType = "03";
|
||||
var mobile = getItemValue(0,getRow(),"mobile");
|
||||
var sParams = "mobile="+mobile+",customerType="+customerType;
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobileRepeat",sParams);
|
||||
if(sReturnInfo=="8"){
|
||||
alert("该手机号已重复!");
|
||||
setItemValue(0,0,"mobile","");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
function checkEmergencyContactTel(){//校验紧急联系人1电话
|
||||
var customerType = "03";
|
||||
var emergencyTel = getItemValue(0,getRow(),"EMERGENCY_CONTACT_TEL");
|
||||
|
||||
@ -2,8 +2,12 @@ package com.tenwa.lease.flow.project.businessapply;
|
||||
|
||||
import jbo.app.tenwa.customer.CUSTOMER_COMPANY;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_COMPANY_TEMP;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_FAMILY;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_FAMILY_TEMP;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_PERSON;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP;
|
||||
import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT;
|
||||
import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT_TEMP;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
@ -19,6 +23,7 @@ public class CustomerInfoCheck {
|
||||
private String nameResult;
|
||||
private String certResult;
|
||||
private String mobileResult;
|
||||
private String repeatResult;
|
||||
|
||||
public String checkName(JBOTransaction tx) throws JBOException{
|
||||
if(customerType.equals("03")){//×ÔÈ»ÈË
|
||||
@ -70,6 +75,31 @@ public class CustomerInfoCheck {
|
||||
return mobileResult;
|
||||
}
|
||||
|
||||
public String checkMobileRepeat(JBOTransaction tx) throws JBOException{
|
||||
if(customerType.equals("03")){//×ÔÈ»ÈË
|
||||
BizObject mobileP=JBOFactory.createBizObjectQuery(CUSTOMER_PERSON.CLASS_NAME,"mobile=:mobile").setParameter("mobile", this.mobile).getSingleResult(false);
|
||||
BizObject mobilePT=JBOFactory.createBizObjectQuery(CUSTOMER_PERSON_TEMP.CLASS_NAME,"mobile=:mobile").setParameter("mobile", this.mobile).getSingleResult(false);
|
||||
BizObject mobileF=JBOFactory.createBizObjectQuery(CUSTOMER_FAMILY.CLASS_NAME,"tel=:mobile").setParameter("mobile", this.mobile).getSingleResult(false);
|
||||
BizObject mobileFT=JBOFactory.createBizObjectQuery(CUSTOMER_FAMILY_TEMP.CLASS_NAME,"tel=:mobile").setParameter("mobile", this.mobile).getSingleResult(false);
|
||||
BizObject mobileLU=JBOFactory.createBizObjectQuery(LB_GUARANTEE_UNIT.CLASS_NAME,"MOBILE=:mobile").setParameter("mobile", this.mobile).getSingleResult(false);
|
||||
BizObject mobileLUT=JBOFactory.createBizObjectQuery(LB_GUARANTEE_UNIT_TEMP.CLASS_NAME,"MOBILE=:mobile").setParameter("mobile", this.mobile).getSingleResult(false);
|
||||
if(mobileP==null && mobilePT==null && mobileF==null && mobileFT==null && mobileLU==null && mobileLUT==null){
|
||||
this.repeatResult = "7";
|
||||
}else{
|
||||
this.repeatResult = "8";
|
||||
}
|
||||
}
|
||||
return repeatResult;
|
||||
}
|
||||
|
||||
public String getRepeatResult() {
|
||||
return repeatResult;
|
||||
}
|
||||
|
||||
public void setRepeatResult(String repeatResult) {
|
||||
this.repeatResult = repeatResult;
|
||||
}
|
||||
|
||||
public String getMobile() {
|
||||
return mobile;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user