39 lines
1.4 KiB
Plaintext
39 lines
1.4 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%><%@
|
|
include
|
|
file="/Frame/resources/include/include_begin_list.jspf"%>
|
|
<%
|
|
//获得页面参数
|
|
String sRoleID = CurPage.getParameter("doname");
|
|
if(sRoleID==null) sRoleID="";
|
|
//通过显示模版产生模型对象doTemp
|
|
ASObjectModel doTemp = new ASObjectModel("APP_DO_CATALOG_LIST");
|
|
doTemp.setVisible("ACTION", true);
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
|
dwTemp.Style="1"; //设置DW风格 1:Grid 2:Freeform
|
|
dwTemp.ReadOnly = "1"; //设置是否只读 1:只读 0:可写
|
|
dwTemp.setPageSize(20);
|
|
dwTemp.genHTMLObjectWindow("");
|
|
|
|
String sButtons[][] = {
|
|
{"true","","Button","新增","新增app显示流程","newRecord()","","","",""},/*
|
|
{"true","","Button","详情","查看版本信息","viewAndEdit()","","","",""}, */
|
|
{"true","","Button","删除","删除该版本","deleteRecord()","","","",""},
|
|
};
|
|
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
|
<script type="text/javascript">
|
|
function newRecord() {
|
|
var sUrl = "/AppConfig/AppDoCatalog/AppDoCatalogInfo.jsp";
|
|
AsControl.OpenView(sUrl, '', '_self', '');
|
|
}
|
|
|
|
function deleteRecord() {
|
|
var sPara = getItemValue(0, getRow(0), 'doname');
|
|
if (typeof (sPara) == "undefined" || sPara.length == 0) {
|
|
alert("请选择一条数据!");
|
|
return;
|
|
}
|
|
if (confirm('确实要删除吗?'))
|
|
as_delete(0, '');
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |