From cd1129bf38dc5869d60688051c929d98e4f89f01 Mon Sep 17 00:00:00 2001 From: zhanglei Date: Thu, 12 Jul 2018 17:20:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E9=AA=8C=E8=AF=81=E9=9C=80?= =?UTF-8?q?=E6=B1=82=E5=8F=98=E6=9B=B4=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LBIdentityCheckResultTemp.jsp | 14 ++++++++- .../validate/IdentityCheckRecordClear.java | 29 +++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 src_tenwa/com/tenwa/lease/flow/project/validate/IdentityCheckRecordClear.java diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBIdentityCheck/LBIdentityCheckResultTemp.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBIdentityCheck/LBIdentityCheckResultTemp.jsp index 7b6e5cfe5..ecdf1e1f0 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBIdentityCheck/LBIdentityCheckResultTemp.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBIdentityCheck/LBIdentityCheckResultTemp.jsp @@ -15,7 +15,8 @@ //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格 String sButtons[][] = { - {"true","","Button","返回","返回","goBack()","","","","btn_icon_back",""} + {"true","","Button","返回","返回","goBack()","","","","btn_icon_back",""}, + {"true","","Button","清空","清空","clearRecord()","","","","btn_icon_detail",""}, }; %><%@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/com/tenwa/lease/flow/project/validate/IdentityCheckRecordClear.java b/src_tenwa/com/tenwa/lease/flow/project/validate/IdentityCheckRecordClear.java new file mode 100644 index 000000000..9da590207 --- /dev/null +++ b/src_tenwa/com/tenwa/lease/flow/project/validate/IdentityCheckRecordClear.java @@ -0,0 +1,29 @@ +package com.tenwa.lease.flow.project.validate; + +import jbo.com.tenwa.lease.comm.LC_IDENTITY_CHECK_RESULT_TEMP; +import com.amarsoft.are.jbo.BizObjectManager; +import com.amarsoft.are.jbo.JBOFactory; +import com.amarsoft.are.jbo.JBOTransaction; + +public class IdentityCheckRecordClear { + private String FlowUnid; + + public String getFlowUnid() { + return FlowUnid; + } + + public void setFlowUnid(String flowUnid) { + FlowUnid = flowUnid; + } + + public String doClearRecord(JBOTransaction tx){ + try { + BizObjectManager lcrtManager = JBOFactory.getBizObjectManager(LC_IDENTITY_CHECK_RESULT_TEMP.CLASS_NAME, tx); + lcrtManager.createQuery("delete from O where flowunid=:FLOWUNID").setParameter("FLOWUNID",FlowUnid).executeUpdate(); + } catch (Exception e) { + e.printStackTrace(); + return "ERROR"; + } + return "SUCCESS"; + } +}