This commit is contained in:
lilei 2018-11-21 09:29:07 +08:00
commit 412b7f571f
9 changed files with 119 additions and 21 deletions

View File

@ -206,13 +206,16 @@
}
//根据身份证号判断性别
function ValidityCheck(){
var certType = getItemValue(0,getRow(0),"CERTTYPE");
var certID = getItemValue(0,getRow(),"CERTID");
sex = certID.substring(16,17);
var sex = certID.substring(16,17);
sex = parseInt(sex);
if(sex%2==0){//ÆæÄÐżŮ
setItemValue(0,getRow(),"SEX","2");
}else{
setItemValue(0,getRow(),"SEX","1");
if(certType=="Ind01"||certType=="Ind08"){
if(sex%2==0){//ÆæÄÐżŮ
setItemValue(0,getRow(),"SEX","2");
}else if(sex%2==1){
setItemValue(0,getRow(),"SEX","1");
}
}
checkCertidRepeat();
}

View File

@ -0,0 +1,38 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2018-11-19
Content:
History Log:
*/
String contractid = CurPage.getParameter("ContractId");
ASObjectModel doTemp = new ASObjectModel("GuarantorQueryListForContract");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow(contractid);
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
// {"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
// {"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
// {"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function newRecord(){
var sUrl = "";
AsControl.OpenView(sUrl,'','_self','');
}
function viewAndEdit(){
var sUrl = "";
var sPara = getItemValue(0,getRow(0),'SerialNo');
if(typeof(sPara)=="undefined" || sPara.length==0 ){
alert("参数不能为空!");
return ;
}
AsControl.OpenView(sUrl,'SerialNo=' +sPara ,'_self','');
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -12,6 +12,7 @@
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、风格
@ -24,20 +25,43 @@
function creditVerification(){
var sFlowUnid = "<%=sFlowUnid%>";
var PhaseNo = "<%=PhaseNo%>"
var certids=getItemValueArray(0,"certid").toString().replace(/,/g,"@");
if(certids.length==0){
alert("请先选择数据!!!");
return;
}
var result =
RunJavaMethodTrans("com.tenwa.comm.credit.CreditBodyGuardAction","doCreditVerification","flowunid="+sFlowUnid+",phaseno="+PhaseNo);
RunJavaMethodTrans("com.tenwa.comm.credit.CreditBodyGuardAction","doCreditVerification","flowunid="+sFlowUnid+",phaseno="+PhaseNo+",certids="+certids);
if(result == 'ERROR'){
alert("调用数据失败");
reloadSelf();
}else if(result == 'SUCCESS'){
reloadSelf();
}else{
alert(result);
reloadSelf();
}
}
function viewAndEdit(){
var sUrl = "/Tenwa/Lease/Flow/Comm/LBPreLoanAntiFraud/LBCarCreditRiskShow.jsp";
var certid = getItemValue(0,getRow(0),"CERTID");
var sparam="FlowUnid="+"<%=sFlowUnid%>"+"&CertId="+certid;
//var certid = getItemValue(0,getRow(0),"CERTID");
var certids=getItemValueArray(0,"certid");
var ids=getItemValueArray(0,"ID").toString();
if(certids.length==0){
alert("请先选择数据!!!");
return;
}else if(certids.length>1){
alert("每次只能查询一条数据,请重新选择!");
reloadSelf();
return;
}else{
if(ids.length<=0){
alert("该数据没有进行信贷检验,请重新选择!");
reloadSelf();
return;
}
}
var sparam="FlowUnid="+"<%=sFlowUnid%>"+"&CertId="+certids[0];
AsControl.OpenView(sUrl,sparam,"_self","");
}
</script>

View File

@ -7,6 +7,7 @@
*/
String ishistory = CurPage.getParameter("IsHistory");
String flowunid = CurPage.getParameter("FlowUnid");
String phaseNo = CurPage.getParameter("PhaseNo");
ASObjectModel doTemp = new ASObjectModel("LCFundPaymentTempInfo");
/* if(null!=ishistory&&ishistory.equals("true")){
doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataInfoHistory");
@ -27,6 +28,12 @@ $(function(){
if(relines<0){
$("#RELINES").css("color","red");
}
var phaseNo="<%=phaseNo%>";
if(phaseNo=='0010'){
setItemReadOnly(0, 0, "LENDING_TYPE", true);
}else{
setItemReadOnly(0, 0, "LENDING_TYPE", false);
}
lendingType();
});
function lendingType(){

View File

@ -92,6 +92,8 @@
var isnew = getItemValue(0,getRow(),"isnew");//是否最新
var addtype = getItemValue(0,getRow(),"addtype");//地址类型
var id = getItemValue(0,getRow(),"id");
var dressdetail = getItemValue(0,0,"dressdetail");
setItemValue(0,0,"dressdetail",dressdetail);
setItemValue(0,0,"fulladdress",getItemValue(0,0,"provincename")+getItemValue(0,0,"dressdetail"));
setItemValue(0,0,"flowunid","<%=flowunid%>");
if(flag == "edit"){

View File

@ -539,7 +539,7 @@
var fulladdress = getItemValue(0,getRow(0),'fulladdress');
var country = getItemValue(0,getRow(0),'country');
var province = getItemValue(0,getRow(0),'province');
var dressdetail = getItemValue(0,getRow(0),'dressdetail');
var dressdetail = getItemValue(0,getRow(0),'dressdetail').replace(/[\r\n]/g,"");
var zipcode = getItemValue(0,getRow(0),'zipcode');
var provincename = getItemValue(0,getRow(0),'provincename');
var flag = "edit";

View File

@ -8,6 +8,7 @@
String ishistory = CurPage.getParameter("IsHistory");
String flowunid = CurPage.getParameter("FlowUnid");
String contractId = CurPage.getParameter("ContractId");
String compClientID = CurPage.getParameter("CompClientID");
String productid = Sqlca.getString("select PRODUCT_ID from LB_CONTRACT_INFO_TEMP where flowunid = '"+flowunid+"'");
String sTempletNo = "LB_CONTRACT_INFO_PAY";//--Ä£°åºÅ--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
@ -18,7 +19,8 @@
dwTemp.Style = "2";
dwTemp.ReadOnly = "1";
dwTemp.genHTMLObjectWindow(contractId);
String url="/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitListForContract.jsp?CompClientID=";
dwTemp.replaceColumn("GUARANTEE_LIST", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"500px\" frameborder=\"0\" src=\""+sWebRootPath+url+compClientID+"&ContractId="+contractId+"&RightType=ReadOnly\"></iframe>", CurPage.getObjectWindowOutput());
String sButtons[][] = {
};
sButtonPosition = "south";
@ -26,6 +28,7 @@
<script type="text/javascript">
window.onload = function(){
setItemValue(0,0,"CERTTYPE_CF","Ind01");
debugger;
var type = getItemValue(0,0,"customertype");
if(type=="03"||type==""||type==null){
hideItem(0,"CERTTYPE_CC");

View File

@ -1823,6 +1823,7 @@
<attribute name="CONTACT_WAY" label="联系方式" type="STRING" length="200"/>
<attribute name="CREATOR_" label="登记人" type="STRING" length="32"/>
<attribute name="MODIFICATOR_" label="更新人" type="STRING" length="32"/>
<attribute name="other_fee" label="其他费用" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>

View File

@ -27,6 +27,7 @@ public class CreditBodyGuardAction {
private String flowunid;
private String phaseno;
private String certids;
public String getFlowunid() {
return flowunid;
@ -43,13 +44,31 @@ public class CreditBodyGuardAction {
public void setPhaseno(String phaseno) {
this.phaseno = phaseno;
}
public String getCertids() {
return certids;
}
public void setCertids(String certids) {
this.certids = certids;
}
public String doCreditVerification(JBOTransaction tx) throws JBOException{
try {
BizObjectManager bom1 = JBOFactory.getBizObjectManager(VI_LB_CAR_CREDIT_INVESTIGATION.CLASS_NAME, tx);
BizObjectManager bom2 = JBOFactory.getBizObjectManager(LB_CAR_CREDIT_RISKITEM_TEMP.CLASS_NAME, tx);
BizObjectManager bom3 = JBOFactory.getBizObjectManager(LB_CAR_CREDIT_PERSONAL_INFO_TEMP.CLASS_NAME,tx);
//查询借款人
String newCertids = certids.replaceAll("@", "','");
@SuppressWarnings("unchecked")
List<BizObject> guarantorResultList = bom1.createQuery("SELECT "+
"fullName,"+
"phoneNumber,"+
"certId,"+
"relation "+
"FROM "+
"O WHERE flowunid=:FLOWUNID "+
" AND O.certId in ('"+newCertids+" ') ").setParameter("FLOWUNID",flowunid).getResultList(false);
/*//查询借款人
BizObject borrowerResult = bom1.createQuery("SELECT "+
"fullName,"+
"phoneNumber,"+
@ -76,17 +95,17 @@ public class CreditBodyGuardAction {
"relation "+
"FROM "+
"O WHERE flowunid=:FLOWUNID "
+ "AND O.relation = '共同申请人'").setParameter("FLOWUNID", flowunid).getSingleResult(false);
+ "AND O.relation = '共同申请人'").setParameter("FLOWUNID", flowunid).getSingleResult(false);*/
BodyGuardApiInvoker bodyGuardApiInvoker = new BodyGuardApiInvoker();
String personArr = "";
//获取到的所有人员信息对象存入personList中
List<BizObject> personList = new ArrayList<>();
if(borrowerResult != null){
/*if(borrowerResult != null){
personList.add(borrowerResult);
}
if(coborrowerResult != null){
personList.add(coborrowerResult);
}
}*/
if(guarantorResultList.size()>0){
for(BizObject biz : guarantorResultList){
personList.add(biz);
@ -114,8 +133,9 @@ public class CreditBodyGuardAction {
}
}
//判断alreadypersonList的大小,若和personList相同则说明全部执行过信贷校验否则重新执行
if(alreadypersonList.size() == personList.size()){
return "征信校验已执行过,不可重复执行";
//if(alreadypersonList.size() == personList.size()){
if(alreadypersonList.size()>0){
return "已选数据中有征信校验已执行过,请重新选择数据!";
//否则为没有执行过的执行信贷校验
}else{
//遍历failedpersonList并查询Info表,二次校验查看在此次流程阶段是否已经执行信贷校验
@ -599,20 +619,20 @@ public class CreditBodyGuardAction {
personArr = "'"+personArr.replaceAll(",", "','")+"'";
@SuppressWarnings("unchecked")
List<BizObject> resultList = bom3.createQuery("select CERTID,MOBILE from O where O.CERTID not in ("+personArr+") AND flowunid=:FLOWUNID").setParameter("FLOWUNID",flowunid).getResultList(false);
if(resultList.size()>0){
/* if(resultList.size()>0){
//组装成一个字符串
String afterPersonArr = "";
for(int q = 0;q<resultList.size();q++){
if("".equals(afterPersonArr)){
afterPersonArr += resultList.get(q).getAttribute("certId").getString();
}else{
afterPersonArr += ","+resultList.get(q).getAttribute("certId").getString();
afterPersonArr += "','"+resultList.get(q).getAttribute("certId").getString();
}
}
//删除已经不在的记录
bom3.createQuery("delete from O where certid in ("+afterPersonArr+") AND flowunid=:FLOWUNID").setParameter("FLOWUNID",flowunid).executeUpdate();
bom2.createQuery("delete from O where certid in ("+afterPersonArr+") AND flowunid=:FLOWUNID").setParameter("FLOWUNID",flowunid).executeUpdate();
}
bom3.createQuery("delete from O where certid in ('"+afterPersonArr+"') AND flowunid=:FLOWUNID").setParameter("FLOWUNID",flowunid).executeUpdate();
bom2.createQuery("delete from O where certid in ('"+afterPersonArr+"') AND flowunid=:FLOWUNID").setParameter("FLOWUNID",flowunid).executeUpdate();
} */
} catch (Exception e) {
tx.rollback();
e.printStackTrace();