From 5e7106fb6c7b8bca88830fba87e8446e4c68a132 Mon Sep 17 00:00:00 2001 From: liuzhao Date: Sat, 16 Mar 2019 16:42:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=BE=E6=AC=BE=E4=BF=A1=E6=81=AF=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Core/FlowInstanceTrack/PayApplyQuery.jsp | 37 ++++++++++++++++ src_tenwa/quartz/DbOptimizePenalty.java | 42 +++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 WebContent/Tenwa/Core/FlowInstanceTrack/PayApplyQuery.jsp create mode 100644 src_tenwa/quartz/DbOptimizePenalty.java diff --git a/WebContent/Tenwa/Core/FlowInstanceTrack/PayApplyQuery.jsp b/WebContent/Tenwa/Core/FlowInstanceTrack/PayApplyQuery.jsp new file mode 100644 index 000000000..230617947 --- /dev/null +++ b/WebContent/Tenwa/Core/FlowInstanceTrack/PayApplyQuery.jsp @@ -0,0 +1,37 @@ +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/Frame/resources/include/include_begin_list.jspf"%> +<%@include file="/Tenwa/Core/FlowManager/BaseFunction/BaseFlowListFunction.jspf" %> +<% + /* + Author: undefined 2018-11-14 + Content: 付款申请查询 + History Log: + */ + ASObjectModel doTemp = new ASObjectModel("VI_PAY_APPLY"); + ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); + dwTemp.Style="1"; //--设置为Grid风格-- + dwTemp.ReadOnly = "1"; //只读模式 + dwTemp.setPageSize(15); + dwTemp.genHTMLObjectWindow(""); + + //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格 + String sButtons[][] = { + + }; +%><%@include file="/Frame/resources/include/ui/include_list.jspf"%> + +<%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/src_tenwa/quartz/DbOptimizePenalty.java b/src_tenwa/quartz/DbOptimizePenalty.java new file mode 100644 index 000000000..77a8a74c0 --- /dev/null +++ b/src_tenwa/quartz/DbOptimizePenalty.java @@ -0,0 +1,42 @@ +package quartz; + +import org.quartz.Job; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.amarsoft.are.jbo.JBOException; +import com.amarsoft.are.jbo.JBOFactory; +import com.amarsoft.are.jbo.JBOTransaction; +import com.tenwa.reckon.util.Conn; + +public class DbOptimizePenalty implements Job { + + @Override + public void execute(JobExecutionContext arg0) throws JobExecutionException{ + JBOTransaction tx=null; + Conn conn=null; + try { + tx= JBOFactory.createJBOTransaction(); + conn= new Conn(tx); + + //插入数据到临时表 + String updateTemp= +"update\n" + +" lc_rent_plan lc\n" + +"left join vi_contract_penalty vi on vi.payment_number = lc.PAYMENT_NUMBER\n" + +"and lc.PLAN_LIST = vi.plan_list and lc.PLAN_DATE=vi.plan_date\n" + +"set lc.PENALTY=vi.penalty"; + conn.executeUpdate(updateTemp); + tx.commit(); + } catch (Exception e) { + try { + if(tx!=null){ + tx.rollback(); + } + } catch (JBOException e1) { + e1.printStackTrace(); + } + e.printStackTrace(); + } + } +}