2018-06-03 22:26:41 +08:00

35 lines
1.7 KiB
Plaintext

<%@ page contentType="text/html; charset=GBK"%><%@
include file="/Frame/resources/include/include_begin_simplelist.jspf"%><%
ASObjectModel doTemp = new ASObjectModel("TestCustomerList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.setPageSize(20);
dwTemp.Style="1"; //设置为Grid风格
dwTemp.ReadOnly = "1";//只读模式
dwTemp.genHTMLObjectWindow("");
String sButtons[][] = {
{"true","","Button","新增","新增","add()","","","","btn_icon_add",""},
{"true","","Button","详情","详情","edit()","","","","btn_icon_detail",""},
{"true","","Button","弹出详情","弹出详情","editpop()","","","","btn_icon_detail",""},
{"true","","Button","联动菜单编辑","联动菜单编辑","editd()","","","","btn_icon_detail",""},
{"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,alert('当前页行数为:'+getRowCount(0)))","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function add(){
var sUrl = "/FrameCase/widget/ow/DemoInfoSimple.jsp";
OpenPage(sUrl,'_self','');
}
function edit(){
var sUrl = "/FrameCase/widget/ow/DemoInfoSimple.jsp";
OpenPage(sUrl+'?SerialNo=' + getItemValue(0,getRow(0),'SerialNo'),'_self','');
}
function editpop(){
var sUrl = "/FrameCase/widget/ow/DemoInfoSimple.jsp";
AsDialog.PopView(sUrl,'SerialNo=' + getItemValue(0,getRow(0),'SerialNo'),{width:900,height:600,title:"编辑事例"},function(){reloadSelf();});
}
function editd(){
var sUrl = "/FrameCase/widget/ow/DemoInfoDMenu.jsp";
OpenPage(sUrl+'?SerialNo=' + getItemValue(0,getRow(0),'SerialNo'),'_self','');
}
</script>
<%@include file="/Frame/resources/include/include_end.jspf"%>