60 lines
2.3 KiB
Plaintext
60 lines
2.3 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
|
||
<%
|
||
/*
|
||
Author: jyshen 2017-05-16
|
||
Tester:
|
||
Content: 流程业务树图列表
|
||
Input Param:
|
||
Output param:
|
||
History Log:
|
||
*/
|
||
String sCodeNo = CurPage.getAttribute("CodeNo");
|
||
if(sCodeNo == null) sCodeNo = "ProjectApproval0010";
|
||
|
||
ASObjectModel doTemp = new ASObjectModel("FlowBusinessTreeManagerList");
|
||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||
dwTemp.Style="1"; //--设置为Grid风格--
|
||
dwTemp.ReadOnly = "1"; //只读模式
|
||
dwTemp.setPageSize(10);
|
||
dwTemp.genHTMLObjectWindow(sCodeNo);
|
||
|
||
String sButtons[][] = {
|
||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||
{"true","All","Button","新增","新增","add()","","","","btn_icon_add",""},
|
||
{"true","","Button","详情","详情","edit()","","","","btn_icon_detail",""},
|
||
{"true","","Button","删除","删除","cancel()","","","","btn_icon_delete",""},
|
||
};
|
||
%>
|
||
<%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||
<script type="text/javascript">
|
||
function add(){
|
||
AsDialog.PopView("/ProductManage/FlowBusinessConfig/FlowBusinessTreeManagerInfo.jsp","CodeNo=<%=sCodeNo%>","dialogWidth=800px;dialogHeight=500px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;","","流程业务左树图详情页面");
|
||
reloadSelf();
|
||
}
|
||
|
||
function edit(){
|
||
var sCodeNo = getItemValue(0,getRow(),"CodeNo");
|
||
var sItemNo = getItemValue(0,getRow(),"ItemNo");
|
||
if(typeof(sItemNo)=="undefined" || sItemNo=="" || sItemNo=="_CANCEL_"){
|
||
alert(getHtmlMessage('1'));//请选择一条信息!
|
||
return;
|
||
}
|
||
AsDialog.PopView("/ProductManage/FlowBusinessConfig/FlowBusinessTreeManagerInfo.jsp","CodeNo="+sCodeNo+"&ItemNo="+sItemNo,"dialogWidth=800px;dialogHeight=500px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;","","流程业务审批详情页面");
|
||
reloadSelf();
|
||
}
|
||
|
||
function cancel(){
|
||
var sCodeNo = getItemValue(0,getRow(),"CodeNo");
|
||
var sItemNo = getItemValue(0,getRow(),"ItemNo");
|
||
if(typeof(sItemNo)=="undefined" || sItemNo=="" || sItemNo=="_CANCEL_"){
|
||
alert(getHtmlMessage('1'));//请选择一条信息!
|
||
return;
|
||
}
|
||
if(confirm('确实要删除吗?')){
|
||
as_delete(0);
|
||
}
|
||
reloadSelf();
|
||
}
|
||
</script>
|
||
<%@ include file="/Frame/resources/include/include_end.jspf"%> |