身份验证需求变更补充

This commit is contained in:
zhanglei 2018-07-12 17:20:42 +08:00
parent 1217faf11e
commit cd1129bf38
2 changed files with 42 additions and 1 deletions

View File

@ -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"%>
<script type="text/javascript">
@ -25,5 +26,16 @@
var sparam="FlowUnid="+'<%=sFlowUnid%>';
AsControl.OpenView(url,sparam,"_self","");
}
function clearRecord(){
var flowunid = "<%=sFlowUnid%>";
var result =
RunJavaMethodTrans("com.tenwa.lease.flow.project.validate.IdentityCheckRecordClear","doClearRecord","FlowUnid="+flowunid);
if(result == 'SUCCESS'){
alert('数据清空成功!');
reloadSelf();
}else{
alert('数据清空失败!');
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

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