From b0474472bbc78574d248070ac0f675afcfef3e36 Mon Sep 17 00:00:00 2001 From: zhangbb Date: Mon, 30 Mar 2020 17:24:27 +0800 Subject: [PATCH] =?UTF-8?q?1.=E7=BD=9A=E6=81=AF=E5=87=8F=E5=85=8D=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E6=98=8E=E7=BB=86=E9=87=8C=E6=97=B6=E9=97=B4=E6=94=B9?= =?UTF-8?q?=E5=8F=98=EF=BC=8C=E7=BD=9A=E6=81=AF=E9=9A=8F=E4=B9=8B=E6=94=B9?= =?UTF-8?q?=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Lease/Flow/Fund/FundCollection/GetPenalty.jsp | 15 +++++++++++++++ .../LCRentIncomeTempReductionList.jsp | 13 ++++++++++--- 2 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 WebContent/Tenwa/Lease/Flow/Fund/FundCollection/GetPenalty.jsp diff --git a/WebContent/Tenwa/Lease/Flow/Fund/FundCollection/GetPenalty.jsp b/WebContent/Tenwa/Lease/Flow/Fund/FundCollection/GetPenalty.jsp new file mode 100644 index 000000000..5c31cf036 --- /dev/null +++ b/WebContent/Tenwa/Lease/Flow/Fund/FundCollection/GetPenalty.jsp @@ -0,0 +1,15 @@ +<%@page import="jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO"%> +<%@page import="com.amarsoft.are.jbo.JBOTransaction"%> +<%@page import="com.amarsoft.are.jbo.BizObject"%> +<%@page import="com.amarsoft.are.jbo.JBOFactory"%> +<%@page import="java.math.BigDecimal"%> +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/IncludeBeginMDAJAX.jsp"%><% + String PAYMENT_NUMBER = CurPage.getParameter("PAYMENT_NUMBER"); + String PLAN_LIST = CurPage.getParameter("PLAN_LIST"); + String HIRE_DATE = CurPage.getParameter("HIRE_DATE"); + String penalty = JBOFactory.getBizObjectManager(LB_CONTRACT_INFO.CLASS_NAME) + .createQuery("select v.round(v.ifnull(v.getRentPenalty('"+PAYMENT_NUMBER+"','"+PLAN_LIST+"','"+HIRE_DATE+"'),0),2) as v.penalty from O").getSingleResult(false).getAttribute("penalty").getString(); + + out.println(penalty); +%><%@ include file="/IncludeEndAJAX.jsp"%> \ No newline at end of file diff --git a/WebContent/Tenwa/Lease/Flow/Rent/PenaltyReduction/LCRentIncomeTempReductionList.jsp b/WebContent/Tenwa/Lease/Flow/Rent/PenaltyReduction/LCRentIncomeTempReductionList.jsp index 7c990150a..7f58c5041 100644 --- a/WebContent/Tenwa/Lease/Flow/Rent/PenaltyReduction/LCRentIncomeTempReductionList.jsp +++ b/WebContent/Tenwa/Lease/Flow/Rent/PenaltyReduction/LCRentIncomeTempReductionList.jsp @@ -89,13 +89,20 @@ } } - function test(datelist){ - console.log("Ñ¡ÔñµÄÈÕÆÚ£º"+datelist); + function changePenalty(datelist){ + debugger; + var PAYMENT_NUMBER = getCurrentItemValue("PAYMENT_NUMBER"); + var PLAN_LIST = getCurrentItemValue("PLAN_LIST"); + var HIRE_DATE = datelist; + + var penalty = AsControl.RunJsp("/Tenwa/Lease/Flow/Fund/FundCollection/GetPenalty.jsp","PAYMENT_NUMBER="+PAYMENT_NUMBER+"&PLAN_LIST="+PLAN_LIST+"&HIRE_DATE="+HIRE_DATE); + alert(penalty); + setItemValue(0, getRow(0), "PENALTY_ADJUST", penalty); } $(function(){ for (var i=0;i