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

This commit is contained in:
apzl 2023-08-28 01:24:07 +08:00
parent eb279c4a2c
commit a7a8b5685c
3 changed files with 57 additions and 130 deletions

View File

@ -20,7 +20,7 @@
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=";
userll= "/Tenwa/Lease/Flow/Project/BusinessApplication/RCScoreResultDetail.jsp";
String sTempletNo = "queryScoreResult";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
ASObjectWindowCalc dwTemp = new ASObjectWindowCalc(CurPage, doTemp,request);
@ -39,13 +39,18 @@
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
$(function() {
alert(222);
$("#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%");
//去除项目审批信息难看样式
})
});
function queryScoreResult(){
alert(111);
self.location.reload();
}
</script>

View File

@ -1,79 +1,55 @@
<%@ page import="jbo.oti.RC_SCORE_RESULT_DETAIL" %>
<%@ page import="org.apache.commons.collections.CollectionUtils" %>
<%@ 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);
<%@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();
//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"%>
%>
<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">
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,"@");
$(document).ready(function (){
})
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"%>
<script type="text/javascript">
</script>
<%@include file="/IncludeEnd.jsp"%>

View File

@ -1,54 +0,0 @@
<%@ 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"%>