校验申请人手机号已申请过标红
This commit is contained in:
parent
56dd1c51bc
commit
3ad93dfea8
@ -13,6 +13,8 @@
|
||||
String ProjectId= CurPage.getParameter("ProjectId");
|
||||
String Action= CurPage.getParameter("Action");
|
||||
String id = CurPage.getParameter("ID");
|
||||
String sPhaseNo=CurPage.getParameter("sPhaseNo");
|
||||
String IsHistory = CurPage.getParameter("IsHistory");
|
||||
System.out.print(id);
|
||||
String userOrgId = CurUser.getOrgID();
|
||||
String userId = CurUser.getUserID();
|
||||
@ -247,5 +249,20 @@
|
||||
}
|
||||
return true;
|
||||
}
|
||||
$(function(){
|
||||
if("0030"=="<%=sPhaseNo%>" ||"0040"=="<%=sPhaseNo%>"||"0050"=="<%=sPhaseNo%>"||"0060"=="<%=sPhaseNo%>"|| ("0070"=="<%=sPhaseNo%>" && "false"=="<%=IsHistory%>")){//经销商阶段看不见标红,初审、复审、信审可以标红
|
||||
var mobile = getItemValue(0,getRow(),"MOBILE");
|
||||
var mobileResult = checkMobileAll(mobile);
|
||||
if(mobileResult=="6"){
|
||||
$("#MOBILE").css("color","red");
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
function checkMobileAll(mobile){//检验所有手机号
|
||||
var sParams = "mobile="+mobile;
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkTel",sParams);
|
||||
return sReturnInfo;
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -10,6 +10,7 @@
|
||||
String action= CurPage.getParameter("action");
|
||||
String contractid = CurPage.getParameter("ContractId");
|
||||
String showtype = CurPage.getParameter("ShowType");
|
||||
String PhaseNo = CurPage.getParameter("PhaseNo");
|
||||
if("queryContract".equals(action)){
|
||||
RightType = "ReadOnly";
|
||||
}
|
||||
@ -78,7 +79,7 @@
|
||||
return;
|
||||
}
|
||||
var sUrl = "Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp";
|
||||
var sparam = 'ID='+ID+"&FlowUnid="+"<%=sFlowUnid%>";
|
||||
var sparam = 'ID='+ID+"&FlowUnid="+"<%=sFlowUnid%>"+"&sPhaseNo="+"<%=PhaseNo%>";
|
||||
AsControl.OpenView(sUrl,sparam,"_self","");
|
||||
}
|
||||
function viewAndEdit2(){
|
||||
@ -88,7 +89,7 @@
|
||||
return;
|
||||
};
|
||||
var sUrl = "Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp";
|
||||
var sparam ='ID='+ID+"&FlowUnid="+"<%=sFlowUnid%>"+'&RightType=ReadOnly';
|
||||
var sparam ='ID='+ID+"&FlowUnid="+"<%=sFlowUnid%>"+'&RightType=ReadOnly'+"&sPhaseNo="+"<%=PhaseNo%>";
|
||||
AsControl.OpenView(sUrl,sparam,"_self","");
|
||||
}
|
||||
function do_delete(){
|
||||
|
||||
@ -8,6 +8,8 @@
|
||||
String sPrevUrl = CurPage.getParameter("PrevUrl");
|
||||
String projectId = CurPage.getParameter("ProjectId");
|
||||
String flowunid = CurPage.getParameter("FlowUnid");
|
||||
String sPhaseNo=CurPage.getParameter("sPhaseNo");
|
||||
String IsHistory = CurPage.getParameter("IsHistory");
|
||||
String customerid = Sqlca.getString("select customer_id from lb_union_lessee_temp where flowunid='"+flowunid+"'");
|
||||
String marriage = Sqlca.getString("select MARRIAGE from CUSTOMER_PERSON_TEMP where flowunid='"+flowunid+"'");
|
||||
if(sPrevUrl == null) sPrevUrl = "";
|
||||
@ -38,11 +40,14 @@
|
||||
//$("#A_Group_0030").css("display","none");
|
||||
//$("#A_Group_0030").hide();
|
||||
}
|
||||
|
||||
var remarkResult = checkTel();
|
||||
if(remarkResult=="6"){
|
||||
//$("#FULLNAME").attr("style","color:red;");
|
||||
$("#TEL").css("color","red");
|
||||
if("0030"=="<%=sPhaseNo%>" ||"0040"=="<%=sPhaseNo%>"||"0050"=="<%=sPhaseNo%>"||"0060"=="<%=sPhaseNo%>"|| ("0070"=="<%=sPhaseNo%>" && "false"=="<%=IsHistory%>")){//经销商阶段看不见标红,初审、复审、信审可以标红
|
||||
// var remarkResult = checkTel();
|
||||
var mobile = getItemValue(0,getRow(),"TEL");
|
||||
var remarkResult = checkMobileAll(mobile);
|
||||
if(remarkResult=="6"){
|
||||
//$("#FULLNAME").attr("style","color:red;");
|
||||
$("#TEL").css("color","red");
|
||||
}
|
||||
}
|
||||
var certResult = checkCertId();
|
||||
if(certResult=="4"){
|
||||
@ -351,5 +356,11 @@
|
||||
setErrorTips("CERTID","");
|
||||
return true;
|
||||
}
|
||||
|
||||
function checkMobileAll(mobile){//检验所有手机号
|
||||
var sParams = "mobile="+mobile;
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkTel",sParams);
|
||||
return sReturnInfo;
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -58,7 +58,7 @@
|
||||
String compClientID = request.getParameter("CompClientID");
|
||||
//自然人标识
|
||||
String person = "person";
|
||||
dwTemp.replaceColumn("family", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"200px\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp?CompClientID="+compClientID+"&customerid="+customerid+"\"></iframe>", CurPage.getObjectWindowOutput());
|
||||
dwTemp.replaceColumn("family", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"200px\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp?CompClientID="+compClientID+"&customerid="+customerid+"&sPhaseNo="+sPhaseNo+"&IsHistory="+IsHistory+"\"></iframe>", CurPage.getObjectWindowOutput());
|
||||
|
||||
String sButtons[][] = {
|
||||
//{"true","","Button","身份校验","身份校验","identityVerification()","","","","btn_icon_check",""}
|
||||
@ -226,18 +226,34 @@
|
||||
// $("#FULLNAME").css("color","red");
|
||||
// }
|
||||
|
||||
if("0030"=="<%=sPhaseNo%>" || ("0040"=="<%=sPhaseNo%>" && "false"=="<%=IsHistory%>")){//经销商阶段看不见标红,初审、复审、信审可以标红
|
||||
if("0030"=="<%=sPhaseNo%>" ||"0040"=="<%=sPhaseNo%>"||"0050"=="<%=sPhaseNo%>"||"0060"=="<%=sPhaseNo%>"|| ("0070"=="<%=sPhaseNo%>" && "false"=="<%=IsHistory%>")){//经销商阶段看不见标红,初审、复审、信审可以标红
|
||||
|
||||
var certResult = checkCertId();
|
||||
if(certResult=="4"){
|
||||
//$("#FULLNAME").attr("style","color:red;");
|
||||
$("#CERTID").css("color","red");
|
||||
}
|
||||
var mobileResult = checkMobile();
|
||||
// var mobileResult = checkMobile();
|
||||
var mobile = getItemValue(0,getRow(),"mobile");
|
||||
var mobileResult = checkMobileAll(mobile);
|
||||
if(mobileResult=="6"){
|
||||
//$("#FULLNAME").attr("style","color:red;");
|
||||
$("#MOBILE").css("color","red");
|
||||
}
|
||||
//校验紧急联系人1
|
||||
var mobileOne = getItemValue(0,getRow(),"EMERGENCY_CONTACT_TEL");
|
||||
var mobileResultOne = checkMobileAll(mobileOne);
|
||||
if(mobileResultOne=="6"){
|
||||
//$("#FULLNAME").attr("style","color:red;");
|
||||
$("#EMERGENCY_CONTACT_TEL").css("color","red");
|
||||
}
|
||||
//校验紧急联系人2
|
||||
var mobileTwo = getItemValue(0,getRow(),"REMARK");
|
||||
var mobileResultTwo = checkMobileAll(mobileTwo);
|
||||
if(mobileResultTwo=="6"){
|
||||
//$("#FULLNAME").attr("style","color:red;");
|
||||
$("#REMARK").css("color","red");
|
||||
}
|
||||
var EmergencyResult = checkEmergencyContactTel();
|
||||
if(EmergencyResult=="6"){
|
||||
//$("#FULLNAME").attr("style","color:red;");
|
||||
@ -849,5 +865,11 @@
|
||||
document.getElementById("NETCERTNAME").value = '';
|
||||
}
|
||||
}
|
||||
|
||||
function checkMobileAll(mobile){//检验所有手机号
|
||||
var sParams = "mobile="+mobile;
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkTel",sParams);
|
||||
return sReturnInfo;
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
|
||||
@ -405,4 +405,18 @@ public class CustomerInfoCheck {
|
||||
}
|
||||
return "success";
|
||||
}
|
||||
//检验所有手机号是否重复
|
||||
public String checkTel(JBOTransaction tx) throws JBOException{//校验手机是否存在
|
||||
String msg = "";
|
||||
//校验承租人,紧急联系人1和2
|
||||
BizObject mobile=JBOFactory.createBizObjectQuery(CUSTOMER_PERSON.CLASS_NAME,"mobile=:mobile or EMERGENCY_CONTACT_TEL=:mobileOne or REMARK=:mobileTwo").setParameter("mobile", this.mobile).setParameter("mobileOne", this.mobile).setParameter("mobileTwo", this.mobile).getSingleResult(false);
|
||||
BizObject family=JBOFactory.createBizObjectQuery(CUSTOMER_FAMILY.CLASS_NAME,"TEL=:mobile ").setParameter("mobile", this.mobile).getSingleResult(false);
|
||||
BizObject guarantee=JBOFactory.createBizObjectQuery(LB_GUARANTEE_UNIT.CLASS_NAME,"MOBILE=:mobile ").setParameter("mobile", this.mobile).getSingleResult(false);
|
||||
if(mobile==null&&family==null&&guarantee==null){
|
||||
msg = "5";
|
||||
}else{
|
||||
msg = "6";
|
||||
}
|
||||
return msg;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user