2.证件号变红
4.复审提交时校验当前复审风险敞口对应的复审级别
This commit is contained in:
parent
09f2f58882
commit
2be464f3b6
@ -63,6 +63,8 @@
|
||||
if(ReaderId.equals("")){
|
||||
if (StringUtils.isEmpty(delTabs)) {
|
||||
out.write(new Button("关闭流程", "关闭流程", "closePage()", "", "btn_icon_close").getHtmlText());
|
||||
}else{
|
||||
flag = true;
|
||||
}
|
||||
}else{
|
||||
rightType = "ReadOnly";
|
||||
|
||||
@ -1,13 +1,11 @@
|
||||
<%@page import="java.lang.Integer"%>
|
||||
<%@page import="java.lang.Double"%>
|
||||
<%@page import="com.tenwa.reckon.product.ASObjectWindowCalc"%>
|
||||
<%@ page import="jbo.oti.RC_SCORE_RESULT" %>
|
||||
<%@page import="jbo.oti.RC_SCORE_RESULT"%>
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
||||
/*
|
||||
Author: undefined 2017-07-12
|
||||
Content: 示例详情页面
|
||||
History Log:
|
||||
History Log:
|
||||
*/
|
||||
|
||||
String ishistory=CurPage.getParameter("IsHistory");
|
||||
@ -29,7 +27,7 @@
|
||||
}
|
||||
double money = Double.parseDouble(clean_lease_money);
|
||||
CurPage.getCurComp().setAttribute("RightType", null);
|
||||
|
||||
|
||||
String sTempletNo = "VI_PROJECTINFO_APPROVAL";//--模板号--
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
if("01".equals(customerType)){
|
||||
@ -73,7 +71,7 @@
|
||||
}else {
|
||||
dwTemp.getDataObject().setVisible("subjectname", false);
|
||||
}
|
||||
|
||||
|
||||
if("0010".equals(phaseNo)){//经销商
|
||||
dwTemp.setGroupHidden("0020,0030,0040,0050");
|
||||
}else if("0030".equals(phaseNo)){//初审
|
||||
@ -195,10 +193,11 @@
|
||||
dwTemp.setGroupHidden("0030,0040,0050");
|
||||
}
|
||||
}
|
||||
dwTemp.setGroupHidden("0040");//去除信审审批
|
||||
dwTemp.genHTMLObjectWindow(flowunid);
|
||||
|
||||
|
||||
String sButtons[][] = {
|
||||
{"0010,0020".indexOf(phaseNo)>-1?"false":"true","","Button","保存","保存所有修改","save()","","","",""}
|
||||
{"0010,0020".indexOf(phaseNo)>-1?"false":"true","","Button","保存","保存所有修改","save()","","","",""}
|
||||
};
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
@ -241,7 +240,7 @@
|
||||
$("#A_div_1170").attr("style","display:none;");
|
||||
$("#A_div_1180").attr("style","display:none;");
|
||||
$("#A_div_1250").attr("style","display:none;");
|
||||
}
|
||||
}
|
||||
_user_validator[0]['rules']['FIRSTCHOICE']['required0'] = true;
|
||||
_user_validator[0]['messages']['FIRSTCHOICE']['required0'] = '请输入初审意见';
|
||||
_user_validator[0]['rules']['FIRSTOPINION']['required0'] = true;
|
||||
@ -252,7 +251,7 @@
|
||||
proposal ='SECONDCHOICE';
|
||||
$("#A_div_1250").attr("style","display:none;");
|
||||
$("#A_div_1260").attr("style","display:none;");
|
||||
|
||||
|
||||
$("#FIRSTCHOICE").attr("disabled","disabled");//初审意见
|
||||
$("#FIRSTOPINION").attr("disabled","disabled");//审批意见
|
||||
// $("#INTEROPINION1").attr("disabled","disabled");//初审内部意见
|
||||
@ -273,13 +272,13 @@
|
||||
$("#A_div_1250").attr("style","display:none;");
|
||||
$("#A_Group_0020").attr("style","display:none;");
|
||||
if("13"==<%=projectstatus%>){//添加业务二部风管领导审批,意见0070显示
|
||||
html='<tr id="contractsign" class="test"><td>业务审批结果: 通过</td></tr>';
|
||||
html='<tr id="contractsign" class="test"><td>业务审批结果: 通过</td></tr>';
|
||||
}else{
|
||||
var firstopinionText= $("#FIRSTOPINION").find("option:selected").text();
|
||||
html='<tr id="contractsign" class="test"><td>业务审批结果: 未通过('+firstopinionText+')</td></tr>';
|
||||
}
|
||||
$("#A_Group_0010").append(html);
|
||||
}
|
||||
}
|
||||
_user_validator[0]['rules']['SECONDCHOICE']['required0'] = true;
|
||||
_user_validator[0]['messages']['SECONDCHOICE']['required0'] = '请输入复审意见';
|
||||
_user_validator[0]['rules']['SECONDOPINION']['required0'] = true;
|
||||
@ -290,7 +289,7 @@
|
||||
proposal ='SECONDCHOICE';
|
||||
$("#A_div_1250").attr("style","display:none;");
|
||||
$("#A_div_1260").attr("style","display:none;");
|
||||
|
||||
|
||||
$("#FIRSTCHOICE").attr("disabled","disabled");//初审意见
|
||||
$("#FIRSTOPINION").attr("disabled","disabled");//审批意见
|
||||
// $("#INTEROPINION1").attr("disabled","disabled");//初审内部意见
|
||||
@ -310,8 +309,8 @@
|
||||
$("#A_div_1180").attr("style","display:none;");
|
||||
$("#A_div_1250").attr("style","display:none;");
|
||||
$("#A_Group_0020").attr("style","display:none;");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
_user_validator[0]['rules']['SECONDCHOICE']['required0'] = true;
|
||||
_user_validator[0]['messages']['SECONDCHOICE']['required0'] = '请输入复审意见';
|
||||
_user_validator[0]['rules']['SECONDOPINION']['required0'] = true;
|
||||
@ -340,13 +339,13 @@
|
||||
$("#A_div_1250").attr("style","display:none;");
|
||||
$("#A_Group_0020").attr("style","display:none;");
|
||||
if("13"==<%=projectstatus%>){
|
||||
html='<tr id="contractsign" class="test"><td>业务审批结果: 通过</td></tr>';
|
||||
html='<tr id="contractsign" class="test"><td>业务审批结果: 通过</td></tr>';
|
||||
}else{
|
||||
var firstopinionText= $("#FIRSTOPINION").find("option:selected").text();
|
||||
html='<tr id="contractsign" class="test"><td>业务审批结果: 未通过('+firstopinionText+')</td></tr>';
|
||||
}
|
||||
$("#A_Group_0010").append(html);
|
||||
}
|
||||
}
|
||||
_user_validator[0]['rules']['THIRDCHOICE']['required0'] = true;
|
||||
_user_validator[0]['messages']['THIRDCHOICE']['required0'] = '请输入部门负责人意见';
|
||||
_user_validator[0]['rules']['THIRDOPINION']['required0'] = true;
|
||||
@ -359,7 +358,7 @@
|
||||
$("#A_div_1240").attr("style","display:none;");
|
||||
$("#A_div_1250").attr("style","display:none;");
|
||||
$("#A_div_1260").attr("style","display:none;");
|
||||
|
||||
|
||||
$("#FIRSTCHOICE").attr("disabled","disabled");//初审意见
|
||||
$("#FIRSTOPINION").attr("disabled","disabled");//审批意见
|
||||
// $("#INTEROPINION1").attr("disabled","disabled");//初审内部意见
|
||||
@ -383,7 +382,7 @@
|
||||
$("#A_div_1170").attr("style","display:none;");
|
||||
$("#A_div_1180").attr("style","display:none;");
|
||||
$("#A_div_1250").attr("style","display:none;");
|
||||
}
|
||||
}
|
||||
_user_validator[0]['rules']['FOURCHOICE']['required0'] = true;
|
||||
_user_validator[0]['messages']['FOURCHOICE']['required0'] = '请输入总经理意见';
|
||||
_user_validator[0]['rules']['FOUROPINION']['required0'] = true;
|
||||
@ -393,7 +392,7 @@
|
||||
if("true"=="<%=ishistory%>"&&<%=CurUser.hasRole("401")%>){
|
||||
$("#A_Group_0020").attr("style","display:none;");
|
||||
if("13"==<%=projectstatus%>){
|
||||
html='<tr id="contractsign" class="test"><td>业务审批结果: 通过</td></tr>';
|
||||
html='<tr id="contractsign" class="test"><td>业务审批结果: 通过</td></tr>';
|
||||
}else{
|
||||
var firstopinionText= $("#FIRSTOPINION").find("option:selected").text();
|
||||
html='<tr id="contractsign" class="test"><td>业务审批结果: 未通过('+firstopinionText+')</td></tr>';
|
||||
@ -402,9 +401,9 @@
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
var certResult = checkCertId();
|
||||
if(certResult=="4" && "false"=="<%=ishistory%>"){
|
||||
if(certResult=="true" && "false"=="<%=ishistory%>"){
|
||||
//$("#FULLNAME").attr("style","color:red;");
|
||||
$("#CERTID").css("color","red");
|
||||
}
|
||||
@ -422,13 +421,13 @@
|
||||
$("#FIRSTOPINION").attr("disabled","");
|
||||
$("#SECONDOPINION").attr("disabled","");
|
||||
$("#THIRDOPINION").attr("disabled",""); */
|
||||
var obj=document.getElementById(selectOpinion);
|
||||
var obj=document.getElementById(selectOpinion);
|
||||
if(obj!=null&&""!=obj&&"null"!=obj){
|
||||
for(var i=0;i<7;i++){
|
||||
obj.options[i].style.display = "block";
|
||||
obj.options[i].style.display = "block";
|
||||
}
|
||||
obj.options[7].style.display = "none";
|
||||
obj.options[8].style.display = "none";
|
||||
obj.options[7].style.display = "none";
|
||||
obj.options[8].style.display = "none";
|
||||
}
|
||||
attribute1="1";
|
||||
}
|
||||
@ -438,11 +437,11 @@
|
||||
var obj=document.getElementById(selectOpinion);
|
||||
if(obj!=null&&""!=obj&&"null"!=obj){
|
||||
for(var i=0;i<7;i++){
|
||||
obj.options[i].style.display = "none";
|
||||
obj.options[i].style.display = "none";
|
||||
}
|
||||
obj.options[0].style.display = "block";
|
||||
obj.options[7].style.display = "block";
|
||||
obj.options[8].style.display = "none";
|
||||
obj.options[0].style.display = "block";
|
||||
obj.options[7].style.display = "block";
|
||||
obj.options[8].style.display = "none";
|
||||
}
|
||||
attribute1="2";
|
||||
}
|
||||
@ -455,9 +454,9 @@
|
||||
if(obj!=null&&""!=obj&&"null"!=obj){
|
||||
var obj=document.getElementById(selectOpinion);
|
||||
for(var i=0;i<8;i++){
|
||||
obj.options[i].style.display = "none";
|
||||
obj.options[i].style.display = "none";
|
||||
}
|
||||
obj.options[0].style.display = "block";
|
||||
obj.options[0].style.display = "block";
|
||||
}
|
||||
attribute1="3";
|
||||
}
|
||||
@ -566,14 +565,12 @@
|
||||
}
|
||||
function checkCertId(){//校验证件号
|
||||
var customerType = "03";
|
||||
//var customerName = getItemValue(0,getRow(),"CustomerName");
|
||||
var certId = getItemValue(0,getRow(),"CERTID");
|
||||
//var sParams = "CustomerName="+customerName+",certId="+certId+",customerType="+customerType;
|
||||
var sParams = "certId="+certId+",customerType="+customerType;
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkCertId",sParams);
|
||||
var sParams = "certId="+certId+",customerType="+customerType+",flowunid="+"<%=flowunid%>";
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkExistsByCertid",sParams);
|
||||
return sReturnInfo;
|
||||
}
|
||||
|
||||
|
||||
function changeFirstChoice(){//根据初审意见,遍历相应的下拉选项
|
||||
setItemValue(0,0,"firstopinion","");
|
||||
var firstchoice = getItemValue(0,0,"firstchoice");
|
||||
@ -589,9 +586,9 @@
|
||||
// setItemRequired(0,"DistriOpinion1",false);
|
||||
setItemRequired(0,"FIRSTOPINION",true);
|
||||
$("#FIRSTOPINION").removeAttr("disabled");
|
||||
/* var obj=document.getElementById('FIRSTOPINION');
|
||||
/* var obj=document.getElementById('FIRSTOPINION');
|
||||
for(var i=0;i<7;i++){
|
||||
obj.options[i].style.display = "block";
|
||||
obj.options[i].style.display = "block";
|
||||
}
|
||||
obj.options[7].style.display = "none"; */
|
||||
attribute1="1";
|
||||
@ -603,7 +600,7 @@
|
||||
$("#FIRSTOPINION").removeAttr("disabled");
|
||||
/* var obj=document.getElementById('FIRSTOPINION');
|
||||
for(var i=0;i<7;i++){
|
||||
obj.options[i].style.display = "none";
|
||||
obj.options[i].style.display = "none";
|
||||
}
|
||||
obj.options[7].style.display = "block"; */
|
||||
attribute1="2";
|
||||
@ -634,7 +631,7 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function changeSecondChoice(){//根据复审意见,遍历相应的下拉选项
|
||||
setItemValue(0,0,"secondopinion","");
|
||||
var secondchoice = getItemValue(0,0,"secondchoice");
|
||||
@ -652,7 +649,7 @@
|
||||
$("#SECONDOPINION").removeAttr("disabled");//复审-信审意见
|
||||
var obj=document.getElementById('SECONDOPINION');//复审-信审意见
|
||||
/* for(var i=0;i<7;i++){
|
||||
obj.options[i].style.display = "none";
|
||||
obj.options[i].style.display = "none";
|
||||
}
|
||||
obj.options[7].style.display = "block"; */
|
||||
attribute1="2";
|
||||
@ -665,7 +662,7 @@
|
||||
$("#SECONDOPINION").removeAttr("disabled");//复审-信审意见
|
||||
var obj=document.getElementById('SECONDOPINION'); //复审-信审意见
|
||||
/* for(var i=0;i<7;i++){
|
||||
obj.options[i].style.display = "block";
|
||||
obj.options[i].style.display = "block";
|
||||
}
|
||||
obj.options[7].style.display = "none"; */
|
||||
attribute1="1";
|
||||
@ -708,7 +705,7 @@
|
||||
setItemValue(0, 0, "VETO", "");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function changeThirdChoice(){//根据信审意见,遍历相应的下拉选项
|
||||
setItemValue(0,0,"thirdopinion","");
|
||||
var thirdchoice = getItemValue(0,0,"thirdchoice");
|
||||
@ -723,9 +720,9 @@
|
||||
setItemRequired(0,"InterOpinion3",false);
|
||||
//setItemRequired(0,"DistriOpinion3",true);
|
||||
$("#THIRDOPINION").removeAttr("disabled");
|
||||
var obj=document.getElementById('THIRDOPINION');
|
||||
var obj=document.getElementById('THIRDOPINION');
|
||||
/* for(var i=0;i<7;i++){
|
||||
obj.options[i].style.display = "block";
|
||||
obj.options[i].style.display = "block";
|
||||
}
|
||||
obj.options[7].style.display = "none"; */
|
||||
attribute1="1";
|
||||
@ -736,7 +733,7 @@
|
||||
$("#THIRDOPINION").removeAttr("disabled");
|
||||
var obj=document.getElementById('THIRDOPINION');
|
||||
/* for(var i=0;i<7;i++){
|
||||
obj.options[i].style.display = "none";
|
||||
obj.options[i].style.display = "none";
|
||||
}
|
||||
obj.options[7].style.display = "block"; */
|
||||
attribute1="2";
|
||||
@ -910,50 +907,50 @@
|
||||
resetDWDialog("保存失败!",false);
|
||||
}
|
||||
}
|
||||
|
||||
//index,要删除选项的序号,这里取当前选中选项的序号
|
||||
|
||||
//index,要删除选项的序号,这里取当前选中选项的序号
|
||||
function chosefirstchoice(){
|
||||
var obj=document.getElementById('FIRSTOPINION');
|
||||
var obj=document.getElementById('FIRSTOPINION');
|
||||
for(var i=0;i<8;i++){
|
||||
obj.options[i].style.display = "block";
|
||||
obj.options[i].style.display = "block";
|
||||
}
|
||||
var firstchoice=getItemValue(0, 0, "firstchoice");
|
||||
if(firstchoice=="disagree"){
|
||||
obj.options[7].style.display = "none";
|
||||
}else{
|
||||
for(var i=0;i<7;i++){
|
||||
obj.options[i].style.display = "none";
|
||||
obj.options[i].style.display = "none";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function chosesecondchoice(){
|
||||
var obj=document.getElementById('SECONDOPINION');
|
||||
var obj=document.getElementById('SECONDOPINION');
|
||||
for(var i=0;i<8;i++){
|
||||
obj.options[i].style.display = "block";
|
||||
obj.options[i].style.display = "block";
|
||||
}
|
||||
var firstchoice=getItemValue(0, 0, "secondchoice");
|
||||
if(firstchoice=="disagree"){
|
||||
obj.options[7].style.display = "none";
|
||||
}else{
|
||||
for(var i=0;i<7;i++){
|
||||
obj.options[i].style.display = "none";
|
||||
obj.options[i].style.display = "none";
|
||||
}
|
||||
}
|
||||
}
|
||||
function chosethirdchoice(){
|
||||
var obj=document.getElementById('THIRDOPINION');
|
||||
var obj=document.getElementById('THIRDOPINION');
|
||||
for(var i=0;i<8;i++){
|
||||
obj.options[i].style.display = "block";
|
||||
obj.options[i].style.display = "block";
|
||||
}
|
||||
var firstchoice=getItemValue(0, 0, "thirdchoice");
|
||||
if(firstchoice=="disagree"){
|
||||
obj.options[7].style.display = "none";
|
||||
}else{
|
||||
for(var i=0;i<7;i++){
|
||||
obj.options[i].style.display = "none";
|
||||
obj.options[i].style.display = "none";
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
|
||||
@ -281,10 +281,10 @@
|
||||
// $("#FULLNAME").css("color","red");
|
||||
// }
|
||||
|
||||
if("0030"=="<%=sPhaseNo%>" ||"0040"=="<%=sPhaseNo%>"||"0050"=="<%=sPhaseNo%>"||"0060"=="<%=sPhaseNo%>"|| ("0070"=="<%=sPhaseNo%>" && "false"=="<%=IsHistory%>")){//经销商阶段看不见标红,初审、复审、信审可以标红
|
||||
if("0030"=="<%=sPhaseNo%>" ||"0040"=="<%=sPhaseNo%>"||/5/.test("<%=sPhaseNo%>")||"0060"=="<%=sPhaseNo%>"|| ("0070"=="<%=sPhaseNo%>" && "false"=="<%=IsHistory%>")){//经销商阶段看不见标红,初审、复审、信审可以标红
|
||||
|
||||
var certResult = checkCertIdAll();
|
||||
if(certResult=="4"){
|
||||
if(certResult=='true'){
|
||||
//$("#FULLNAME").attr("style","color:red;");
|
||||
$("#CERTID").css("color","red");
|
||||
}
|
||||
@ -989,7 +989,7 @@
|
||||
function checkCertIdAll(){//УÑéÖ¤¼þºÅ
|
||||
var certId = getItemValue(0,getRow(),"CERTID");
|
||||
var sParams = "certId="+certId+",flowunid="+"<%=flowunid%>";
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkCertIdAll",sParams);
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkExistsByCertid",sParams);
|
||||
return sReturnInfo;
|
||||
}
|
||||
function getIdentity(){
|
||||
|
||||
@ -1,35 +1,20 @@
|
||||
package com.tenwa.lease.flow.project.businessapply;
|
||||
|
||||
import com.amarsoft.are.jbo.*;
|
||||
import com.amarsoft.awe.util.ASResultSet;
|
||||
import com.amarsoft.awe.util.SqlObject;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.tenwa.reckon.util.Conn;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_COMPANY;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_COMPANY_TEMP;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_FAMILY;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_FAMILY_TEMP;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_PERSON;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP;
|
||||
import jbo.app.tenwa.customer.DISTRIBUTOR_INFO;
|
||||
import jbo.app.tenwa.customer.*;
|
||||
import jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT;
|
||||
import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT;
|
||||
import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT_TEMP;
|
||||
import jbo.com.tenwa.lease.comm.LB_MANY_SUBJECT;
|
||||
import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO;
|
||||
import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO_TEMP;
|
||||
import jbo.sys.CODE_LIBRARY;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.awe.util.ASResultSet;
|
||||
import com.amarsoft.awe.util.SqlObject;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
|
||||
public class CustomerInfoCheck {
|
||||
|
||||
private String CustomerName;
|
||||
@ -48,7 +33,7 @@ public class CustomerInfoCheck {
|
||||
private String projectNo;
|
||||
private String FULLNAME;
|
||||
private String SubjectId;
|
||||
|
||||
|
||||
public String getFULLNAME() {
|
||||
return FULLNAME;
|
||||
}
|
||||
@ -138,7 +123,7 @@ public class CustomerInfoCheck {
|
||||
}
|
||||
return mobileResult;
|
||||
}
|
||||
|
||||
|
||||
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);
|
||||
@ -217,12 +202,12 @@ public class CustomerInfoCheck {
|
||||
// return "手机号跟配偶人手机号重复!";
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return "SUCCESS";
|
||||
}
|
||||
|
||||
|
||||
public String checkDebitCardMobile(JBOTransaction tx) throws JBOException{//校验扣款卡手机号
|
||||
if(customerType.equals("03")){//自然人校验共同人和担保人
|
||||
BizObject mobilePT=JBOFactory.createBizObjectQuery(CUSTOMER_PERSON_TEMP.CLASS_NAME,"FLOWUNID=:flowunid and mobile=:mobile").setParameter("flowunid", this.flowunid).setParameter("mobile", this.mobile).getSingleResult(false);
|
||||
@ -243,7 +228,7 @@ public class CustomerInfoCheck {
|
||||
}
|
||||
return mobileResult;
|
||||
}
|
||||
|
||||
|
||||
public String checkSex(JBOTransaction tx) throws Exception{
|
||||
BizObjectManager cptMange = JBOFactory.getBizObjectManager(CUSTOMER_PERSON_TEMP.CLASS_NAME, tx);
|
||||
BizObject cpt = cptMange.createQuery("flowunid =:flowunid").setParameter("flowunid", flowunid).getSingleResult(false);
|
||||
@ -257,7 +242,7 @@ public class CustomerInfoCheck {
|
||||
}
|
||||
return "error";
|
||||
}
|
||||
|
||||
|
||||
public String checkNameAndCertId(JBOTransaction tx)throws Exception{
|
||||
String CustomerId="";
|
||||
Transaction Sqlca=null;
|
||||
@ -323,7 +308,7 @@ public class CustomerInfoCheck {
|
||||
BizObject cptP = cptManage.createQuery("flowunid=:flowunid").setParameter("flowunid", flowunid).getSingleResult(false);
|
||||
String MARRIAGE = cptP.getAttribute("MARRIAGE").getString();
|
||||
String name1 = cft.getAttribute("name").getString();
|
||||
|
||||
|
||||
if("01".equals(MARRIAGE) && name1.equals(FULLNAME)){
|
||||
return "success";
|
||||
}else{
|
||||
@ -353,7 +338,7 @@ public class CustomerInfoCheck {
|
||||
}
|
||||
return returns;
|
||||
}*/
|
||||
|
||||
|
||||
public String getFlowunid() {
|
||||
return flowunid;
|
||||
}
|
||||
@ -432,7 +417,7 @@ public class CustomerInfoCheck {
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public String getProjectNo() {
|
||||
return projectNo;
|
||||
}
|
||||
@ -457,7 +442,7 @@ public class CustomerInfoCheck {
|
||||
}
|
||||
return mas;
|
||||
}
|
||||
|
||||
|
||||
public String checkProjectNo(JBOTransaction tx) throws JBOException{//校验姓名是否存在LB_PROJECT_INFO_TEMP
|
||||
BizObjectManager lpitManage = JBOFactory.getBizObjectManager(LB_PROJECT_INFO_TEMP.CLASS_NAME, tx);
|
||||
BizObjectManager lpiManage = JBOFactory.getBizObjectManager(LB_PROJECT_INFO.CLASS_NAME, tx);
|
||||
@ -473,7 +458,7 @@ public class CustomerInfoCheck {
|
||||
}else{
|
||||
return "error";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
return "success";
|
||||
}
|
||||
@ -506,6 +491,30 @@ public class CustomerInfoCheck {
|
||||
}
|
||||
return msg;
|
||||
}
|
||||
|
||||
/**
|
||||
* 校验当前证件号是否在本系统参与业务制作(走过业务信审就算,不包含当前单)
|
||||
* @param tx
|
||||
* @return
|
||||
* @throws JBOException
|
||||
*/
|
||||
public String checkExistsByCertid(JBOTransaction tx) throws Exception {
|
||||
Transaction Sqlca = Transaction.createTransaction(tx);
|
||||
StringBuilder querySqlSb = new StringBuilder();
|
||||
querySqlSb.append("select count(1) as num from lb_project_info_temp lpi")
|
||||
.append(" left join lc_calc_condition_temp lpc on lpc.FLOWUNID = lpi.FLOWUNID")
|
||||
.append(" left join lb_union_lessee_temp lul on lul.FLOWUNID = lpi.FLOWUNID and IS_MAIN = 'Y'")
|
||||
.append(" left join customer_info_temp ci on ci.customerid = lul.CUSTOMER_ID")
|
||||
.append(" left join customer_family_temp cf on cf.flowunid = lpi.FLOWUNID and cf.Partner_ = 'Y'")
|
||||
.append(" left join lb_guarantee_unit_temp lgu on lgu.FLOWUNID = lpi.FLOWUNID")
|
||||
.append(" left join flow_task ft on lpi.FLOWUNID = ft.objectno and ft.phaseno = '0030'")
|
||||
.append(" where lpi.FLOWUNID <> '" + flowunid + "' and ft.flowno = 'BusinessApplyFlow' ")
|
||||
.append(" and (ci.certid in ('" + certId + "') or cf.certid in ('" + certId + "') or lgu.CERTID in ('" + certId + "')) ");
|
||||
ASResultSet asResultSet = Sqlca.getASResultSet(new SqlObject(querySqlSb.toString()));
|
||||
if (asResultSet.next() && asResultSet.getInt("num") > 0) return "true";
|
||||
return "false";
|
||||
}
|
||||
|
||||
//如果是北汽的产品修改FLOW_BUSSINESS_OBJECT中的flow_key
|
||||
public String changFlowKey(JBOTransaction tx) throws Exception{
|
||||
BizObjectManager fboManage = JBOFactory.getBizObjectManager(FLOW_BUSSINESS_OBJECT.CLASS_NAME, tx);
|
||||
|
||||
@ -111,7 +111,8 @@ public class LBBusinessPrimary extends BaseBussiness {
|
||||
}
|
||||
}
|
||||
//流程中金额获取(当前流程)
|
||||
String InFlowSql = "select CLEAN_LEASE_MONEY-ifnull(CAUTION_MONEY,0) as inFlowMoney from lc_calc_condition_temp where FLOWUNID = '"+flowUnid+"'";
|
||||
String InFlowSql = "select CLEAN_LEASE_MONEY-ifnull(CAUTION_MONEY,0) as inFlowMoney from lc_calc_condition_temp lcct " +
|
||||
" left join flow_object fo on lcct.FLOWUNID = fo.objectno where lcct.FLOWUNID = '"+flowUnid+"' and fo.phaseno not in ('1000')";
|
||||
ASResultSet rsIn = Sqlca.getASResultSet(new SqlObject(InFlowSql));
|
||||
BigDecimal inFlowMoney = BigDecimal.valueOf(0);
|
||||
if (rsIn.next()) {
|
||||
|
||||
@ -0,0 +1,40 @@
|
||||
package com.tenwa.lease.flow.project.commcheck;
|
||||
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.tenwa.lease.flow.project.businessapply.LBBusinessPrimary;
|
||||
import com.tenwa.template.check.DefaultBussinessCheck;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 业务申请-复审敞口校验
|
||||
*/
|
||||
public class ReviewExposureCheck extends DefaultBussinessCheck {
|
||||
@Override
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
String flowunid = this.getAttribute("ObjectNo").toString();
|
||||
String phaseNo = this.getAttribute("PhaseNo").toString();
|
||||
String custType = Sqlca.getString("select cit.customertype from lb_union_lessee_temp lult join customer_info_temp cit on lult.FLOWUNID = cit.flowunid where lult.FLOWUNID = '" + flowunid + "' and lult.IS_MAIN = 'Y' ");
|
||||
if (StringUtils.isEmpty(custType)) throw new RuntimeException("客户类型不存在,请联系管理员");
|
||||
BigDecimal compareMoney = BigDecimal.ZERO;
|
||||
if ("0040".equals(phaseNo)) {//个人小于等于60万,法人小于等于100万 信审复审初级
|
||||
compareMoney = "03".equals(custType) ? BigDecimal.valueOf(600000) : BigDecimal.valueOf(1000000);
|
||||
} else if ("0050".equals(phaseNo)) {//个人小于等于100万,法人小于等于200万 信审复审中级
|
||||
compareMoney = "03".equals(custType) ? BigDecimal.valueOf(1000000) : BigDecimal.valueOf(2000000);
|
||||
} else if ("0051".equals(phaseNo)) {//个人小于等于200万,法人小于等于300万 信审复审高级
|
||||
compareMoney = "03".equals(custType) ? BigDecimal.valueOf(2000000) : BigDecimal.valueOf(3000000);
|
||||
} else if ("0052".equals(phaseNo)) {//个人小于等于300万,法人小于等于500万 信审复审资深
|
||||
compareMoney = "03".equals(custType) ? BigDecimal.valueOf(3000000) : BigDecimal.valueOf(5000000);
|
||||
} else if ("0053".equals(phaseNo)) {//个人大于300万,法人大于500万 信审会和贷审会
|
||||
setPass(true);
|
||||
}
|
||||
BigDecimal exposureMoney = LBBusinessPrimary.obtainExposureMoney(Sqlca, flowunid);
|
||||
if (exposureMoney.compareTo(compareMoney) > -1) {
|
||||
setPass(false);
|
||||
} else {
|
||||
setPass(true);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user