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

63 lines
2.1 KiB
Plaintext

<%@ page contentType="text/html; charset=GBK"%><%@
include
file="/Frame/resources/include/include_begin_list.jspf"%>
<%
//通过显示模版产生模型对象doTemp
ASObjectModel doTemp = new ASObjectModel("MAIN_APP_CONF_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()", "", "", "", "" },
{ "true", "", "Button", "功能配置", "功能配置",
"functionConf()", "", "", "", "btn_icon_set" }
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function functionConf() {
var id = getItemValue(0,getRow(),"ID");
if (typeof(id)=="undefined" || id.length==0){
alert(getMessageText('AWEW1001'));//请选择一条信息!
return;
}
var sUrl = "/AppConfig/AppFunctionConfig/FunctionConfigList.jsp";
var sparm="fcid="+id;
AsControl.OpenView(sUrl, sparm, '_self', '');
}
function viewAndEdit(){
var id = getItemValue(0,getRow(),"ID");
if (typeof(id)=="undefined" || id.length==0){
alert(getMessageText('AWEW1001'));//请选择一条信息!
return;
}
var sUrl = "/AppConfig/AppFunctionConfig/AppFunctionConfigInfo.jsp";
var sparm="ID="+id;
AsControl.OpenView(sUrl, sparm, '_self', '');
}
function newRecord() {
var sUrl = "/AppConfig/AppFunctionConfig/AppFunctionConfigInfo.jsp";
AsControl.OpenView(sUrl,'','_self','');
}
function deleteRecord() {
var id1 = getItemValue(0, getRow(), "ID");
if (typeof (id1) == "undefined" || id1.length == 0) {
alert(getMessageText('AWEW1001'));//请选择一条信息!
return;
}
if (confirm(getMessageText("ALS70902"))) {
as_delete("myiframe0");
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>