From 9bcfa53d2787c8aadad3229d18dd42d89a9f1bd3 Mon Sep 17 00:00:00 2001 From: liuzhao Date: Wed, 18 Jul 2018 11:46:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E9=99=A9=E6=B8=85=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../InsuranceInfo/InsuranceInfoDetail.jsp | 4 ++++ .../BussinessOperation/InsuranceInfo/InsuranceInfoList.jsp | 4 +++- .../InsuranceInfo/LBInsuranceInfoList.jsp | 6 +++++- WebContent/WEB-INF/etc/jbo/jbo_lease.xml | 7 +++++++ .../cardispose/LCCarDisposeInitToTempBusiness.java | 3 +++ 5 files changed, 22 insertions(+), 2 deletions(-) diff --git a/WebContent/Tenwa/Lease/App/BussinessOperation/InsuranceInfo/InsuranceInfoDetail.jsp b/WebContent/Tenwa/Lease/App/BussinessOperation/InsuranceInfo/InsuranceInfoDetail.jsp index b1ade5657..11b645a0a 100644 --- a/WebContent/Tenwa/Lease/App/BussinessOperation/InsuranceInfo/InsuranceInfoDetail.jsp +++ b/WebContent/Tenwa/Lease/App/BussinessOperation/InsuranceInfo/InsuranceInfoDetail.jsp @@ -7,11 +7,15 @@ */ String contract_number = CurPage.getParameter("contract_number"); String contractId = CurPage.getParameter("contractId"); + String customerName = CurPage.getParameter("customerName"); + String leas_form = CurPage.getParameter("leas_form"); // if(sPrevUrl == null) sPrevUrl = ""; String sTempletNo = "LBInsuranceInfoDetail";//--ģ-- ASObjectModel doTemp = new ASObjectModel(sTempletNo); doTemp.setDefaultValue("Contract_Id", contractId); doTemp.setDefaultValue("Contract_number", contract_number); + doTemp.setDefaultValue("CUSTOMER_NAME", customerName); + doTemp.setDefaultValue("LEAS_FORM", leas_form); ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request); dwTemp.Style = "2";//freeform diff --git a/WebContent/Tenwa/Lease/App/BussinessOperation/InsuranceInfo/InsuranceInfoList.jsp b/WebContent/Tenwa/Lease/App/BussinessOperation/InsuranceInfo/InsuranceInfoList.jsp index 4ef42eb3b..371e6f666 100644 --- a/WebContent/Tenwa/Lease/App/BussinessOperation/InsuranceInfo/InsuranceInfoList.jsp +++ b/WebContent/Tenwa/Lease/App/BussinessOperation/InsuranceInfo/InsuranceInfoList.jsp @@ -25,8 +25,10 @@ function showNext(){ var param = getItemValue(0,getRow(0),'CONTRACT_NUMBER'); var id = getItemValue(0,getRow(0),'id'); + var customerName = getItemValue(0,getRow(0),'CUSTOMER_NAME'); + var leas_form = getItemValue(0,getRow(0),'LEAS_FORM'); var SUrl = "/Tenwa/Lease/App/BussinessOperation/InsuranceInfo/LBInsuranceInfoList.jsp"; - AsControl.OpenView(SUrl,'contract_number=' +param +'&contractId='+id,'_self',''); + AsControl.OpenView(SUrl,'contract_number=' +param +'&contractId='+id+'&customerName='+customerName+'&leas_form='+leas_form,'_self',''); } function afterSearch(){ for(var i=0;i + + + + + + + diff --git a/src_tenwa/com/tenwa/lease/flow/carmanage/cardispose/LCCarDisposeInitToTempBusiness.java b/src_tenwa/com/tenwa/lease/flow/carmanage/cardispose/LCCarDisposeInitToTempBusiness.java index 709a6a9d5..acd2dd149 100644 --- a/src_tenwa/com/tenwa/lease/flow/carmanage/cardispose/LCCarDisposeInitToTempBusiness.java +++ b/src_tenwa/com/tenwa/lease/flow/carmanage/cardispose/LCCarDisposeInitToTempBusiness.java @@ -23,14 +23,17 @@ public class LCCarDisposeInitToTempBusiness extends BaseBussiness { List boList=JBOFactory.createBizObjectQuery(VI_RENT_PLAN.CLASS_NAME,sql).setParameter("contract_id", this.getAttribute("ContractId").toString()).getResultList(false); BizObject boVI=null; int sum=0; + int interestOver=0; if(boList.size()>0){ for (int i = 0; i < boList.size();i+=1) { boVI=boList.get(i); sum+=boVI.getAttribute("CORPUS_OVER").getDouble(); + interestOver+=boVI.getAttribute("interest_over").getDouble(); } } BizObject bo = bm.newObject(); bo.setAttributeValue("remain_principal", sum); + bo.setAttributeValue("remain_interest", interestOver); bo.setAttributeValue("flowunid", this.getAttribute("FlowUnid").toString()); bo.setAttributeValue("FRAME_NUMBER", this.getAttribute("ProjectName").toString().split("-")[0]); bo.setAttributeValue("contract_no", this.getAttribute("FlowKey").toString());