问题表180, 担保人信息可以与配偶重复
This commit is contained in:
parent
7054d3f9f9
commit
c1eec7ae7e
@ -132,7 +132,9 @@
|
||||
if(phone.test(mobile)){
|
||||
var customerType = "03";
|
||||
var id = getItemValue(0,getRow(),"id");
|
||||
var sParams = "certId="+id+",mobile="+mobile+",customerType="+customerType+",flowunid="+"<%=sFlowUnid%>";
|
||||
var FULLNAME = getItemValue(0,getRow(),"FULLNAME");
|
||||
var certid = getItemValue(0,getRow(),"CERTID");
|
||||
var sParams = "certId="+id+",certid="+certid+",FULLNAME="+FULLNAME+",mobile="+mobile+",customerType="+customerType+",flowunid="+"<%=sFlowUnid%>";
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobileRepeat",sParams);
|
||||
if("SUCCESS"!=sReturnInfo){
|
||||
//setErrorTips("tel","该手机号已重复!");
|
||||
@ -178,8 +180,10 @@
|
||||
function checkMobileRepeat(){//校验担保人手机号重复
|
||||
var customerType = "03";
|
||||
var mobile = getItemValue(0,getRow(),"MOBILE");
|
||||
var FULLNAME = getItemValue(0,getRow(),"FULLNAME");
|
||||
var certid = getItemValue(0,getRow(),"CERTID");
|
||||
var id = getItemValue(0,getRow(),"id");
|
||||
var sParams ="certId="+id+ ",mobile="+mobile+",customerType="+customerType+",flowunid="+"<%=sFlowUnid%>";
|
||||
var sParams ="certid="+certid+",FULLNAME="+FULLNAME+",certId="+id+ ",mobile="+mobile+",customerType="+customerType+",flowunid="+"<%=sFlowUnid%>";
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobileRepeat",sParams);
|
||||
if(sReturnInfo=="8"){
|
||||
/* alert("该手机号已重复!");
|
||||
@ -244,7 +248,8 @@
|
||||
if("Ind01"==certtype){
|
||||
var id = getItemValue(0,getRow(),"ID");
|
||||
var certId = getItemValue(0,getRow(),"CERTID");
|
||||
var sParams ="id="+id+",certid="+certId+",flowunid=<%=sFlowUnid%>";
|
||||
var FULLNAME = getItemValue(0,getRow(),"FULLNAME");
|
||||
var sParams ="id="+id+",FULLNAME="+FULLNAME+",certid="+certId+",flowunid=<%=sFlowUnid%>";
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkCertidRepeat",sParams);
|
||||
if("success"!=sReturnInfo){
|
||||
setErrorTips("CERTID",sReturnInfo);
|
||||
|
||||
@ -256,6 +256,7 @@
|
||||
|
||||
if(name.length > 0){
|
||||
if(certid.length > 0){
|
||||
// 因港澳台居民通行证, 临时去除配偶身份证校验
|
||||
/* if(certid.length!=18){
|
||||
// parent.parent.openDWDialog();
|
||||
setErrorTips("certid","身份证必须是18位!");
|
||||
|
||||
@ -38,7 +38,16 @@ public class CustomerInfoCheck {
|
||||
private String certid;
|
||||
private String id;
|
||||
private String projectNo;
|
||||
private String FULLNAME;
|
||||
|
||||
public String getFULLNAME() {
|
||||
return FULLNAME;
|
||||
}
|
||||
|
||||
public void setFULLNAME(String fULLNAME) {
|
||||
FULLNAME = fULLNAME;
|
||||
}
|
||||
|
||||
public String getCerttype() {
|
||||
return certtype;
|
||||
}
|
||||
@ -183,15 +192,19 @@ public class CustomerInfoCheck {
|
||||
}
|
||||
if(mobileFTSpouse!=null){
|
||||
String id = mobileFTSpouse.getAttribute("ID").getString();
|
||||
if(!id.equals(certId)){
|
||||
//return "手机号跟配偶人手机号重复!";
|
||||
String certid1 = mobileFTSpouse.getAttribute("certid").getString();// 配偶身份证号
|
||||
String name = mobileFTSpouse.getAttribute("name").getString();// 配偶名称
|
||||
|
||||
// 判断担保人名称和身份证是否与配偶相同, 相同则过滤, 不同则提示
|
||||
if(certid1.equals(certid) && name.equals(FULLNAME)){
|
||||
return "SUCCESS";
|
||||
}else{
|
||||
return "手机号跟配偶人手机号重复!";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//
|
||||
return "SUCCESS";
|
||||
}
|
||||
|
||||
@ -266,9 +279,13 @@ public class CustomerInfoCheck {
|
||||
return "success";
|
||||
}else if("Y".equals(cft.getAttribute("Spouse_").getString())){
|
||||
BizObject cptP = cptManage.createQuery("flowunid=:flowunid").setParameter("flowunid", flowunid).getSingleResult(false);
|
||||
if(cptP.getAttribute("MARRIAGE").getString().equals("01")){
|
||||
//return "该身份证已跟配偶身份证重复";
|
||||
String MARRIAGE = cptP.getAttribute("MARRIAGE").getString();
|
||||
String name1 = cft.getAttribute("name").getString();
|
||||
|
||||
if("01".equals(MARRIAGE) && name1.equals(FULLNAME)){
|
||||
return "success";
|
||||
}else{
|
||||
return "该身份证已跟配偶身份证重复";
|
||||
}
|
||||
}else{
|
||||
return "该身份证已跟共同申请人身份证重复";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user