73 lines
2.4 KiB
Plaintext
73 lines
2.4 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
|
||
<%
|
||
/*
|
||
Author: jyshen 2017-05-15
|
||
Tester:
|
||
Content: 节点阶段的list页面
|
||
Input Param:
|
||
Output param:
|
||
History Log:
|
||
*/
|
||
ASObjectModel doTemp = new ASObjectModel("FlowBusinessCodeManageList");
|
||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||
dwTemp.Style="1"; //--设置为Grid风格--
|
||
dwTemp.ReadOnly = "1"; //只读模式
|
||
dwTemp.setPageSize(10);
|
||
dwTemp.genHTMLObjectWindow("");
|
||
|
||
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",""},
|
||
/* {"true","","Button","返回","返回","goback()","","","","btn_icon_return",""}, */
|
||
};
|
||
%>
|
||
<%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||
<script type="text/javascript">
|
||
<%/*新增按钮*/%>
|
||
function add(){
|
||
AsDialog.PopView("/ProductManage/FlowBusinessConfig/FlowBusinessCodeManageInfo.jsp","","dialogWidth=800px;dialogHeight=450px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;","","流程业务审批详情页面");
|
||
}
|
||
|
||
<%/*删除*/%>
|
||
function cancel(){
|
||
if(confirm('确实要删除吗?'))
|
||
as_delete(0,'alert(getRowCount(0))');
|
||
reloadSelf();
|
||
}
|
||
|
||
<%/*详情*/%>
|
||
function edit(){
|
||
var sCodeNo = getItemValue(0,getRow(),"CodeNo");
|
||
if(typeof(sCodeNo)=="undefined" || sCodeNo=="" || sCodeNo=="_CANCEL_"){
|
||
alert(getHtmlMessage('1'));//请选择一条信息!
|
||
return;
|
||
}
|
||
AsDialog.PopView("/ProductManage/FlowBusinessConfig/FlowBusinessCodeManageInfo.jsp","CodeNo="+sCodeNo,"dialogWidth=800px;dialogHeight=450px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;","","流程业务审批详情页面");
|
||
}
|
||
|
||
|
||
<%/*返回*/%>
|
||
function goback(){
|
||
AsDialog.ClosePage();
|
||
reloadSelf();
|
||
}
|
||
|
||
<%/*记录被选中时触发事件*/%>
|
||
function mySelectRow(){
|
||
var sCodeNo = getItemValue(0,getRow(),"CodeNo");
|
||
if(!sCodeNo) return;
|
||
parent.OpenInfo(sCodeNo);
|
||
}
|
||
|
||
$(document).ready(function(){
|
||
AsOne.AsInit();
|
||
init();
|
||
bHighlightFirst = true;
|
||
my_load(2,0,'myiframe0');
|
||
mySelectRow();
|
||
});
|
||
</script>
|
||
<%@ include file="/Frame/resources/include/include_end.jspf"%> |