风控中台-添加评分结果页面

This commit is contained in:
apzl 2023-08-28 01:05:28 +08:00
parent 461facb2bd
commit eb279c4a2c
5 changed files with 190 additions and 0 deletions

View File

@ -170,6 +170,7 @@
,"CAREER_TYPE"
,"MAJOR_MONTHLY_INCOME"
,"MONTHLY_EXPENSES"
,"START_IDEXPIRY"
];
if(certType=="Ent02"){
showItemRequired(0, "LEGAL_REPRESENTATIVE");

View File

@ -0,0 +1,52 @@
<%@page import="com.sun.org.apache.xalan.internal.xsltc.compiler.sym"%>
<%@page import="com.tenwa.reckon.product.ASObjectWindowCalc"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2017-07-10
Content: 示例详情页面
History Log:
*/
String userId= CurUser.getUserID();
String userName = CurUser.getUserName();
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
String projectNo=CurPage.getParameter("ProjectNo");//项目编号
String sPrevUrl = CurPage.getParameter("PrevUrl");
String operationType = CurPage.getParameter("operationType");//获取产品类型
String sPhaseNo=CurPage.getParameter("PhaseNo");//阶段号
String compClientID = CurPage.getParameter("CompClientID");
String rightType = CurPage.getParameter("RightType");
String custype = CurPage.getParameter("CustomerType");
String customertype = CurPage.getParameter("customertype");
String userll=null;
// userll="/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp?CompClientID=";
userll="/Tenwa/Lease/Flow/Project/BusinessApplication/RCScoreResultDetail2.jsp?CompClientID=";
String sTempletNo = "queryScoreResult";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
ASObjectWindowCalc dwTemp = new ASObjectWindowCalc(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.genHTMLObjectWindow(CurPage.getParameter("FlowUnid"));
dwTemp.replaceColumn("customer_info", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"1200px\" frameborder=\"0\" " +
"src=\""
+sWebRootPath+userll+compClientID+"&flowId="+sFlowUnid+"&projectNo="+projectNo+"\"></iframe>", CurPage.getObjectWindowOutput());
String sButtons[][] = {
{"true","","Button","反欺诈","反欺诈","save()","","","","btn_icon_saveNew",""},
{"true","","Button","评分请求","评分请求","save()","","","","btn_icon_saveNew",""},
{"true","","Button","查询评分结果","查询评分结果","queryScoreResult()","","","","btn_icon_saveNew",""},
{"true","","Button","资料清单","资料清单","openFileList()","","","","btn_icon_saveNew",""}
};
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
$(function() {
$("#PROJECT_NO").parent().find(".info_span").remove();
$("#PRODUCT_NAME").parent().find(".info_span").remove();
$("#LEAS_FORM").parent().find(".info_span").remove();
$(".info_td_left").css("width","150px");
$(".info_mid_line").css("width","50%");
//去除项目审批信息难看样式
})
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,79 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2018-07-12
Content:
History Log:
*/
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
String SubjectId = CurPage.getParameter("SubjectId");//主体编号
String flowNo = CurPage.getParameter("FlowNo");//主体编号
String custTypeParam = "CustomerType";
if ("BusinessChangeFlow".equals(flowNo)) {
custTypeParam = "customertype";
}
String customertype = CurPage.getParameter(custTypeParam);
String SubjectIdtemp = Sqlca.getString("select SubjectId from lb_project_info_temp where flowunid='"+sFlowUnid+"'");
if(SubjectId ==null ){
SubjectId = SubjectIdtemp;
}
String orgName = CurUser.getOrgName();
String userName = CurUser.getUserName();
ASObjectModel doTemp = new ASObjectModel("VI_LB_IDENTITY_CHECK");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.MultiSelect = true; //添加多选框
dwTemp.genHTMLObjectWindow(sFlowUnid);
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
{"true","","Button","身份校验","身份校验","identitycheck()","","","","btn_icon_detail",""}
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function identitycheck(){
var flowunid = "<%=sFlowUnid%>";
var username = "<%=userName%>";
var orgname = "<%=orgName%>";
var customertype = "<%=customertype%>";
var relations=getItemValueArray(0,"relation").toString().replace(/,/g,"@");
var fullNames=getItemValueArray(0,"fullName").toString().replace(/,/g,"@");
var certIds=getItemValueArray(0,"certId").toString().replace(/,/g,"@");
if(relations.length==0){
alert("请先选择数据!!!");
return;
}
var result = RunJavaMethodTrans("com.tenwa.lease.flow.project.validate.alpha.identity.IdentityAlphaVerification","doIdentityVerification","FlowUnid="+flowunid+",UserName="+username+",OrgName="+orgname+",relations="+relations+",fullNames="+fullNames+",certIds="+certIds+",customertype="+customertype+",SubjectId=<%=SubjectId%>");
if(result == 'ERROR'){
alert("调用数据失败");
reloadSelf();
}else if(result == 'SUCCESS'){
alert('校验成功,请点击详情查看!');
reloadSelf();
}else{
alert(result);
reloadSelf();
}
}
function viewAndEdit(){
var sUrl = "/Tenwa/Lease/Flow/Comm/LBIdentityCheck/LBIdentityCheckResultTemp.jsp";
var certids=getItemValueArray(0,"certId");
var fullNames=getItemValueArray(0,"fullName");
var certids=getItemValueArray(0,"certId");
if(certids.length==0){
alert("请先选择数据!!!");
return;
}else if(certids.length>1){
alert("每次只能查询一条数据,请重新选择!");
reloadSelf();
return;
}
var sparam="FlowUnid="+'<%=sFlowUnid%>'+"&fullName="+fullNames[0]+"&CertId="+certids[0];
AsControl.OpenView(sUrl,sparam,"_self","");
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,54 @@
<%@ page import="jbo.oti.RC_SCORE_RESULT_DETAIL" %>
<%@ page import="org.apache.commons.collections.CollectionUtils" %>
<%@ page contentType="text/html; charset=GBK"%>
<%@include file="/IncludeBegin.jsp"%><%
String flowId = CurPage.getParameter("flowId");//流程编号
System.out.println("flowId=" + flowId);
String projectNo = CurPage.getParameter("projectNo");//业务编号
System.out.println("projectNo=" + projectNo);
BizObjectManager rcScoreResultDetail = JBOFactory.getBizObjectManager(RC_SCORE_RESULT_DETAIL.CLASS_NAME);
List<BizObject> rcScoreResultDetailBizObjectList = rcScoreResultDetail.createQuery("project_no=:project_no").setParameter("project_no", projectNo).getResultList(false);
if(CollectionUtils.isNotEmpty(rcScoreResultDetailBizObjectList)){
%>
<table cellspacing="1" cellpadding="2" width="700" align="center" style="border: 1px solid black;">
<tr>
<th align="center" style="line-height: 30px; ">用户类型</th>
<th align="center" style="line-height: 30px; ">用户名称</th>
<th align="center" style="line-height: 30px; ">三方报告</th>
<th align="center" style="line-height: 30px; ">征信报告</th>
<th align="center" style="line-height: 30px; ">更新时间</th>
</tr>
<%
for(BizObject rcScoreResultDetailBizObject : rcScoreResultDetailBizObjectList){
String person_type = rcScoreResultDetailBizObject.getAttribute("person_type").toString();
String person_name = rcScoreResultDetailBizObject.getAttribute("person_name").toString();
String third_result_url = rcScoreResultDetailBizObject.getAttribute("third_result_url").toString();
String pboc_result_url = rcScoreResultDetailBizObject.getAttribute("pboc_result_url").toString();
String update_time = rcScoreResultDetailBizObject.getAttribute("update_time").toString();
%>
<tr>
<td align="center" style="line-height: 30px; "><%=person_type%></td>
<td align="center" style="line-height: 30px; "><%=person_name%></td>
<td align="center" style="line-height: 30px; "><a target="_blank" href="<%=third_result_url%>">三方报告</a></td>
<td align="center" style="line-height: 30px; "><a target="_blank" href="<%=pboc_result_url%>">征信报告</a></td>
<td align="center" style="line-height: 30px; "><%=update_time%></td>
</tr>
<%
}
}else {
%>
<div>当前结果明细为空,请先执行评分请求或查询评分结果</div>
<%
}
%>
<script type="text/javascript" src="<%=sWebRootPath %>/Frame/page/js/as_debug_message.js"></script>
<script type="text/javascript">
$(document).ready(function (){
})
</script>
<script type="text/javascript">
</script>
<%@include file="/IncludeEnd.jsp"%>

View File

@ -0,0 +1,4 @@
package com.ample.esb.web;
public class RCScoreResultController {
}