业务申请,更改申请人、配偶、共同人、担保人的手机号重复校验
This commit is contained in:
parent
0208342c17
commit
e2f5ce4bbb
@ -108,7 +108,7 @@
|
||||
function checkMobileRepeat(){//校验担保人手机号重复
|
||||
var customerType = "03";
|
||||
var mobile = getItemValue(0,getRow(),"MOBILE");
|
||||
var sParams = "mobile="+mobile+",customerType="+customerType;
|
||||
var sParams = "mobile="+mobile+",customerType="+customerType+",flowunid="+"<%=sFlowUnid%>";
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobileRepeat",sParams);
|
||||
if(sReturnInfo=="8"){
|
||||
alert("该手机号已重复!");
|
||||
|
||||
@ -92,7 +92,7 @@
|
||||
function checkTelRepeat(){//校验共同申请人手机号重复
|
||||
var customerType = "03";
|
||||
var tel = getItemValue(0,getRow(),"tel");
|
||||
var sParams = "mobile="+tel+",customerType="+customerType;
|
||||
var sParams = "mobile="+tel+",customerType="+customerType+",flowunid="+"<%=FlowUnid%>";
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobileRepeat",sParams);
|
||||
if(sReturnInfo=="8"){
|
||||
alert("该手机号已重复!");
|
||||
|
||||
@ -73,6 +73,15 @@
|
||||
}
|
||||
}
|
||||
|
||||
function checkRepeat(mobile,emergencyTel,remark){
|
||||
var tel = getItemValue(0,getRow(),"tel");
|
||||
if(mobile!=emergencyTel && mobile!=remark && mobile!=tel && emergencyTel!=remark && emergencyTel!=tel && remark!=tel){
|
||||
return "true";
|
||||
}else{
|
||||
return "false";
|
||||
}
|
||||
}
|
||||
|
||||
function changeFamilyRequiredTrue(marriage){//设置配偶信息只读
|
||||
setItemValue(0,0,"status",marriage);
|
||||
setItemRequired(0,"name",true);
|
||||
|
||||
@ -19,9 +19,9 @@
|
||||
//doTemp.setHtmlEvent("MARRIAGE","onChange","changeFamilyRequired");
|
||||
doTemp.setHtmlEvent("MARRIAGE","onChange","changeChildrensNumber");
|
||||
doTemp.setHtmlEvent("Mailing_Address","onChange","checkMailingAddress");
|
||||
doTemp.setHtmlEvent("mobile","onChange","checkMobileRepeat");
|
||||
doTemp.setHtmlEvent("EMERGENCY_CONTACT_TEL","onChange","checkEmergencyRepeat");
|
||||
doTemp.setHtmlEvent("REMARK","onChange","checkRemarkRepeat");
|
||||
//doTemp.setHtmlEvent("mobile","onChange","checkMobileRepeat");
|
||||
//doTemp.setHtmlEvent("EMERGENCY_CONTACT_TEL","onChange","checkEmergencyRepeat");
|
||||
//doTemp.setHtmlEvent("REMARK","onChange","checkRemarkRepeat");
|
||||
String rightType = CurPage.getParameter("RightType");//页面只读与否
|
||||
if(rightType==null)rightType="";
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
@ -72,6 +72,7 @@
|
||||
var marriage = getItemValue(0,0,"MARRIAGE");
|
||||
if("02" == marriage){
|
||||
setItemValue(0,0,"childrens_number","");
|
||||
setItemRequired(0, "childrens_number", false);
|
||||
$("#CHILDRENS_NUMBER").attr("ReadOnly","true");
|
||||
// hideItem(0,'family');
|
||||
$("#A_Group_0030").attr("style","display:none;");
|
||||
@ -126,7 +127,7 @@
|
||||
function checkMobileRepeat(){//校验手机号重复
|
||||
var customerType = "03";
|
||||
var mobile = getItemValue(0,getRow(),"mobile");
|
||||
var sParams = "mobile="+mobile+",customerType="+customerType;
|
||||
var sParams = "mobile="+mobile+",customerType="+customerType+",flowunid="+"<%=flowunid%>";
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobileRepeat",sParams);
|
||||
if(sReturnInfo=="8"){
|
||||
alert("该手机号已重复!");
|
||||
@ -146,7 +147,7 @@
|
||||
function checkEmergencyRepeat(){//校验紧急联系人1电话重复
|
||||
var customerType = "03";
|
||||
var emergencyTel = getItemValue(0,getRow(),"EMERGENCY_CONTACT_TEL");
|
||||
var sParams = "mobile="+emergencyTel+",customerType="+customerType;
|
||||
var sParams = "mobile="+emergencyTel+",customerType="+customerType+",flowunid="+"<%=flowunid%>";
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobileRepeat",sParams);
|
||||
if(sReturnInfo=="8"){
|
||||
alert("该手机号已重复!");
|
||||
@ -166,7 +167,7 @@
|
||||
function checkRemarkRepeat(){//校验紧急联系人2电话重复
|
||||
var customerType = "03";
|
||||
var remark = getItemValue(0,getRow(),"REMARK");
|
||||
var sParams = "mobile="+remark+",customerType="+customerType;
|
||||
var sParams = "mobile="+remark+",customerType="+customerType+",flowunid="+"<%=flowunid%>";
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobileRepeat",sParams);
|
||||
if(sReturnInfo=="8"){
|
||||
alert("该手机号已重复!");
|
||||
@ -175,8 +176,22 @@
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
// function checkRepeat(mobile,emergencyTel,remark){
|
||||
// var result = "";
|
||||
// var mobile = getItemValue(0,getRow(),"mobile");
|
||||
// var emergencyTel = getItemValue(0,getRow(),"EMERGENCY_CONTACT_TEL");
|
||||
// var remark = getItemValue(0,getRow(),"REMARK");
|
||||
// if(mobile!=emergencyTel && emergencyTel!=remark && mobile!=remark){
|
||||
// result = "true";
|
||||
// }else{
|
||||
// result = "false";
|
||||
// }
|
||||
// return result;
|
||||
|
||||
// }
|
||||
|
||||
$(document).ready(function(){
|
||||
checkMailingAddress();
|
||||
//当页面被加载时标红
|
||||
// var nameResult = checkName();
|
||||
// if(nameResult=="2"){
|
||||
@ -225,18 +240,7 @@
|
||||
//ValidityCheck();
|
||||
}
|
||||
//changeOtherRequired();
|
||||
|
||||
|
||||
// var marriage = getItemValue(0,0,"MARRIAGE");
|
||||
// if("02" == marriage){
|
||||
// setItemValue(0,0,"childrens_number","");
|
||||
// $("#CHILDRENS_NUMBER").attr("ReadOnly","true");
|
||||
// // hideItem(0,'family');
|
||||
// $("#A_Group_0030").attr("style","display:none;");
|
||||
// }else{
|
||||
// $("#CHILDRENS_NUMBER").removeAttr("ReadOnly");
|
||||
// $("#A_Group_0030").attr("style","display:block;");
|
||||
// }
|
||||
changeChildrensNumber();
|
||||
})
|
||||
var flag=false;//标记是否复制过客户
|
||||
function changeCertid(){
|
||||
@ -353,11 +357,25 @@
|
||||
}
|
||||
}
|
||||
|
||||
function saveRecord(leasfrom,projectSource){//УÑ鹫˾µç»°ÇøºÅ
|
||||
function saveRecord(leasfrom,projectSource){//保存
|
||||
var mobile = getItemValue(0,getRow(),"mobile");
|
||||
var emergencyTel = getItemValue(0,getRow(),"EMERGENCY_CONTACT_TEL");
|
||||
var remark = getItemValue(0,getRow(),"REMARK");
|
||||
|
||||
//校验申请人手机号和配偶手机号是否重复
|
||||
var RepeatReault = "";
|
||||
RepeatReault = frame_list.window.checkRepeat(mobile,emergencyTel,remark);
|
||||
if(RepeatReault=="false"){
|
||||
alert("手机号有重复!");
|
||||
return;
|
||||
}
|
||||
|
||||
var mobileResult = checkTel();
|
||||
if(mobileResult=="false"){
|
||||
return;
|
||||
}
|
||||
|
||||
//校验公司电话区号
|
||||
var workTel = getItemValue(0,0,"WORKTEL");
|
||||
var result = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CheckCustomerInfo","CheckWorkTelInfo","workTel="+workTel);
|
||||
if(result=="false"){
|
||||
|
||||
@ -24,6 +24,7 @@ public class CustomerInfoCheck {
|
||||
private String certResult;
|
||||
private String mobileResult;
|
||||
private String repeatResult;
|
||||
private String flowunid;
|
||||
|
||||
public String checkName(JBOTransaction tx) throws JBOException{
|
||||
if(customerType.equals("03")){//自然人
|
||||
@ -77,13 +78,14 @@ public class CustomerInfoCheck {
|
||||
|
||||
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){
|
||||
//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,"FLOWUNID=:flowunid and mobile=:mobile").setParameter("flowunid", this.flowunid).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,"flowunid=:flowunid and tel=:mobile").setParameter("flowunid", this.flowunid).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,"FLOWUNID=:flowunid and MOBILE=:mobile").setParameter("flowunid", this.flowunid).setParameter("mobile", this.mobile).getSingleResult(false);
|
||||
//if(mobileP==null && mobilePT==null && mobileF==null && mobileFT==null && mobileLU==null && mobileLUT==null){
|
||||
if(mobilePT==null && mobileFT==null && mobileLUT==null){
|
||||
this.repeatResult = "7";
|
||||
}else{
|
||||
this.repeatResult = "8";
|
||||
@ -92,6 +94,14 @@ public class CustomerInfoCheck {
|
||||
return repeatResult;
|
||||
}
|
||||
|
||||
public String getFlowunid() {
|
||||
return flowunid;
|
||||
}
|
||||
|
||||
public void setFlowunid(String flowunid) {
|
||||
this.flowunid = flowunid;
|
||||
}
|
||||
|
||||
public String getRepeatResult() {
|
||||
return repeatResult;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user