更新业务申请电话号码验证
This commit is contained in:
parent
9dcc7fc150
commit
8cd13c2290
@ -112,8 +112,8 @@
|
||||
if(CheckPhoneCode(workTel)){
|
||||
return true;
|
||||
}else{
|
||||
//setErrorTips("WORKTEL","单位电话格式不正确!");
|
||||
alert("单位电话格式不正确!");
|
||||
setErrorTips("WORKTEL","单位电话格式不正确!");
|
||||
// alert("单位电话格式不正确!");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -121,7 +121,8 @@
|
||||
function checkMobileRepeat(){//校验担保人手机号重复
|
||||
var customerType = "03";
|
||||
var mobile = getItemValue(0,getRow(),"MOBILE");
|
||||
var sParams = "mobile="+mobile+",customerType="+customerType+",flowunid="+"<%=sFlowUnid%>";
|
||||
var id = getItemValue(0,getRow(),"id");
|
||||
var sParams ="certId="+id+ ",mobile="+mobile+",customerType="+customerType+",flowunid="+"<%=sFlowUnid%>";
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobileRepeat",sParams);
|
||||
if(sReturnInfo=="8"){
|
||||
/* alert("该手机号已重复!");
|
||||
@ -147,10 +148,10 @@
|
||||
if(falgs==false){
|
||||
return;
|
||||
}
|
||||
// var WorkTelResult = checkWorkTel();
|
||||
// if(WorkTelResult==false){
|
||||
// return;
|
||||
// }
|
||||
var WorkTelResult = checkWorkTel();
|
||||
if(WorkTelResult==false){
|
||||
return;
|
||||
}
|
||||
as_save(0,"goBack()");
|
||||
}
|
||||
|
||||
@ -160,6 +161,6 @@
|
||||
var sparam="FlowUnid="+getItemValue(0,0,"FLOWUNID")+"&ProjectId="+getItemValue(0,0,"project_id")+"&RightType="+'<%=RightType%>';
|
||||
AsControl.OpenView(url,sparam,"_self","");
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -107,7 +107,8 @@
|
||||
function checkTelRepeat(){//校验共同申请人手机号重复
|
||||
var customerType = "03";
|
||||
var tel = getItemValue(0,getRow(),"tel");
|
||||
var sParams = "mobile="+tel+",customerType="+customerType+",flowunid="+"<%=FlowUnid%>";
|
||||
var id = getItemValue(0,getRow(),"id");
|
||||
var sParams = "certId="+id+",mobile="+tel+",customerType="+customerType+",flowunid="+"<%=FlowUnid%>";
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobileRepeat",sParams);
|
||||
if(sReturnInfo=="8"){
|
||||
setErrorTips("tel","该手机号已重复!");
|
||||
|
||||
@ -399,12 +399,18 @@
|
||||
|
||||
//校验公司电话区号
|
||||
var workTel = getItemValue(0,0,"WORKTEL");
|
||||
if(typeof(workTel)!=undefined && mobile != ''){
|
||||
/* if(typeof(workTel)!=undefined && mobile != ''){
|
||||
var result = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CheckCustomerInfo","CheckWorkTelInfo","workTel="+workTel);
|
||||
if(result=="false"){
|
||||
alert("公司电话格式不正确!请输入区号-固定电话号!");
|
||||
return;
|
||||
}
|
||||
} */
|
||||
if(CheckPhoneCode(workTel)){
|
||||
}else{
|
||||
setErrorTips("WORKTEL","公司电话格式不正确!");
|
||||
//alert("公司电话格式不正确!");
|
||||
return;
|
||||
}
|
||||
|
||||
<%-- var idexpiry=getItemValue(0,getRow(),"IDEXPIRY");
|
||||
|
||||
@ -88,7 +88,32 @@ public class CustomerInfoCheck {
|
||||
if(mobilePT==null && mobileFT==null && mobileLUT==null){
|
||||
this.repeatResult = "7";
|
||||
}else{
|
||||
this.repeatResult = "8";
|
||||
if(certId!=null){
|
||||
boolean falg = false;
|
||||
if(mobilePT!=null){
|
||||
String id = mobilePT.getAttribute("ID").getString();
|
||||
if(id.equals(certId)){
|
||||
falg=true;
|
||||
}
|
||||
}else if(mobileFT!=null){
|
||||
String id = mobileFT.getAttribute("ID").getString();
|
||||
if(id.equals(certId)){
|
||||
falg=true;
|
||||
}
|
||||
}else if(mobileLUT!=null){
|
||||
String id = mobileLUT.getAttribute("ID").getString();
|
||||
if(id.equals(certId)){
|
||||
falg=true;
|
||||
}
|
||||
}
|
||||
if(falg){
|
||||
this.repeatResult = "7";
|
||||
}else{
|
||||
this.repeatResult = "8";
|
||||
}
|
||||
}else{
|
||||
this.repeatResult = "8";
|
||||
}
|
||||
}
|
||||
}
|
||||
return repeatResult;
|
||||
|
||||
@ -301,6 +301,9 @@ public class CustomerInfoManage {
|
||||
try{
|
||||
BizObjectManager bom = JBOFactory.getBizObjectManager(CUSTOMER_FAMILY_TEMP.CLASS_NAME,tx);
|
||||
BizObject bo = bom.createQuery("flowunid=:flowunid and customerid=:customerid and Spouse_<>'Y' ").setParameter("flowunid", flowunid).setParameter("customerid", customerid).getSingleResult(true);
|
||||
if(bo==null){
|
||||
return "ERROR";
|
||||
}
|
||||
bom.deleteObject(bo);
|
||||
}catch(Exception e){
|
||||
e.printStackTrace();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user