From 3ad93dfea8db4fdda0a8f9c6eae721da9f8cd7e6 Mon Sep 17 00:00:00 2001
From: tangft <32189@DESKTOP-M6TAG3K>
Date: Mon, 10 Dec 2018 20:47:18 +0800
Subject: [PATCH] =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E7=94=B3=E8=AF=B7=E4=BA=BA?=
=?UTF-8?q?=E6=89=8B=E6=9C=BA=E5=8F=B7=E5=B7=B2=E7=94=B3=E8=AF=B7=E8=BF=87?=
=?UTF-8?q?=E6=A0=87=E7=BA=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../LBGuaranteePerUnitInfo.jsp | 17 +++++++++++
.../LBGuaranteePerUnitList.jsp | 5 ++--
.../CustomerFamilyTempInfo.jsp | 21 ++++++++++----
.../BusinessApplication/CustomerInfo.jsp | 28 +++++++++++++++++--
.../businessapply/CustomerInfoCheck.java | 14 ++++++++++
5 files changed, 75 insertions(+), 10 deletions(-)
diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp
index 6aef99cd8..595dfe8b7 100644
--- a/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp
@@ -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;
+ }
<%@ include file="/Frame/resources/include/include_end.jspf"%>
\ No newline at end of file
diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitList.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitList.jsp
index 0c6f954eb..b8bfefc80 100644
--- a/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitList.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitList.jsp
@@ -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(){
diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp
index a59f34f4f..b99b485bc 100644
--- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp
@@ -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;
+ }
<%@ include file="/Frame/resources/include/include_end.jspf"%>
\ No newline at end of file
diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp
index b5e24f00a..3ad4db40f 100644
--- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp
@@ -58,7 +58,7 @@
String compClientID = request.getParameter("CompClientID");
//自然人标识
String person = "person";
- dwTemp.replaceColumn("family", "", CurPage.getObjectWindowOutput());
+ dwTemp.replaceColumn("family", "", 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;
+ }
<%@ include file="/Frame/resources/include/include_end.jspf"%>
diff --git a/src_tenwa/com/tenwa/lease/flow/project/businessapply/CustomerInfoCheck.java b/src_tenwa/com/tenwa/lease/flow/project/businessapply/CustomerInfoCheck.java
index e287ea21b..b6a21d672 100644
--- a/src_tenwa/com/tenwa/lease/flow/project/businessapply/CustomerInfoCheck.java
+++ b/src_tenwa/com/tenwa/lease/flow/project/businessapply/CustomerInfoCheck.java
@@ -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;
+ }
}