apzl_leasing/WebContent/AppFresh/AppFlow/AppFlowCatalogList.jsp
2018-06-28 11:30:01 +08:00

56 lines
2.0 KiB
Plaintext

<%@ page contentType="text/html; charset=GBK"%><%@
include file="/Frame/resources/include/include_begin_list.jspf"%><%
ASObjectModel doTemp = new ASObjectModel("APP_FLOW_LIST");
doTemp.setLockCount(2); //锁定两列
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //设置为Grid风格
dwTemp.ReadOnly = "1";//编辑模式
dwTemp.setPageSize(10);
dwTemp.ConvertCode2Title = "1";
dwTemp.genHTMLObjectWindow("");
String sButtons[][] = {
{"true","","Button","导入新流程","导入新流程","importNewFlow()","","","","btn_icon_add"},
{"true","","Button","取消流程","取消流程","delFlow()","","","","btn_icon_delete"},
{"true","","Button","流程配置","流程配置","configureFlow()","","","","btn_icon_workflow"},
};
%>
<%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function importNewFlow() {
AsDialog.selectCatalogDialog("SelectFlow", "", "", function(sReturn) {
if (typeof (sReturn) == "undefined" || sReturn.length == 0||sReturn=="_CANCEL_"||sReturn=="")
return;
sReturn = sReturn.split("@");
var FlowNo = sReturn[0];
var sResult = AsControl.RunJavaMethodTrans("com.amarsoft.app.check.AppFlow","checkFlowByFlowNo","flowNo="+FlowNo);
alert(sResult);
reloadSelf();
});
}
function delFlow() {
var flowno = getItemValue(0, getRow(), "flowno");
if (typeof (flowno) == "undefined" || flowno.length == 0) {
alert("请选择一条流程记录");
return;
}
var sResult = AsControl.RunJavaMethodTrans("com.amarsoft.app.check.AppFlow",
"DelFlowByFlowNo","flowNo="+flowno);
alert(sResult);
reloadSelf();
}
function configureFlow() {
var flowno = getItemValue(0, getRow(), "flowno");
if (typeof (flowno) == "undefined" || flowno.length == 0) {
alert("请选择一条流程记录");
return;
}
var sUrl = "/AppFresh/AppFlow/CatalogList.jsp";
AsControl.OpenTab(sUrl,"flowNo="+flowno,{title:"手机流程阶段配置"});
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>