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"; + } +}