2018-06-25 11:54:47 +08:00

58 lines
1.9 KiB
Plaintext

<%@ page contentType="text/html; charset=GBK"%><%@
include file="/Frame/resources/include/include_begin_list.jspf"%><%
ASObjectModel doTemp = new ASObjectModel("APP_NODEINFO_LIBRARY_APP_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","新增页面","新增页面","newRecord()","","","","btn_icon_add"},
{"true","","Button","编辑页面","编辑页面","viewAndEdit()","","","","btn_icon_edit"},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function newRecord() {
var selName = "AppPageGroupList";
var GROUP_CODE = "";
var GROUP_NAME = "";
AsDialog.selectCatalogDialog(selName, "", "",
function(sReturn) {
if (typeof (sReturn) == "undefined" || sReturn.length == 0 ||sReturn=="_CANCEL_"||sReturn=="")
return;
sReturn = sReturn.split("@");
GROUP_CODE = sReturn[0];
GROUP_NAME = sReturn[1];
var param = "GROUP_CODE="+GROUP_CODE;
//alert(param);
var sUrl = "/AppFresh/AppPage/AppNodeInfo.jsp";
AsDialog.PopView(sUrl, param, "dialogWidth=800px;dialogHeight=650px;",
function(message) {
reloadSelf();
}, "新增页面");
});
}
function viewAndEdit() {
debugger;
var sUrl = "/AppFresh/AppPage/AppNodeInfo.jsp";
var id = getItemValue(0, getRow(0), 'id');
if (id == "" || typeof (id) == "undefined") {
alert("请选择一条页面配置!");
return false;
}
AsDialog.PopView(sUrl, "id=" + id,
"dialogWidth=800px;dialogHeight=650px;", function(message) {
reloadSelf();
}, "编辑页面");
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>