70 lines
2.4 KiB
Plaintext
70 lines
2.4 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%><%@
|
|
include
|
|
file="/Frame/resources/include/include_begin_list.jspf"%>
|
|
<%
|
|
//获得页面参数
|
|
String sRoleID = CurPage.getParameter("fcid");
|
|
if(sRoleID==null) sRoleID="";
|
|
//通过显示模版产生模型对象doTemp
|
|
|
|
ASObjectModel doTemp = new ASObjectModel("MAIN_APP_FUNCTIONAL_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(sRoleID);
|
|
|
|
String sButtons[][] = {
|
|
{ "true", "", "Button", "新增", "添加功能组件",
|
|
"newRecord()", "", "", "", "" },
|
|
{ "true", "", "Button", "详情", "查看组件信息",
|
|
"viewAndEdit()", "", "", "", "" },
|
|
{ "true", "", "Button", "删除", "删除该组件",
|
|
"deleteRecord()", "", "", "", "" },
|
|
{ "true", "", "Button", "返回", "返回主配置页面",
|
|
"goBack()", "", "", "", "btn_icon_return"},
|
|
{ "true", "", "Button", "上传文件", "进入上传文件页面",
|
|
"upload()", "", "", "", "btn_icon_down"},
|
|
{ "true", "", "Button", "添加接口", "进入添加接口页面",
|
|
"addInterface()", "", "", "", "btn_icon_add"}
|
|
|
|
};
|
|
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
|
<script type="text/javascript">
|
|
function goBack(){
|
|
var PrevUrl="/AppConfig/AppFunctionConfig/AppFunctionConfigList.jsp";
|
|
AsControl.OpenView(PrevUrl,"","_self","");
|
|
}
|
|
|
|
function viewAndEdit(){
|
|
var id = getItemValue(0,getRow(),"ID");
|
|
var id1 = "<%=sRoleID%>";
|
|
if (typeof(id)=="undefined" || id.length==0){
|
|
alert(getMessageText('AWEW1001'));//请选择一条信息!
|
|
return;
|
|
}
|
|
var sUrl = "/AppConfig/AppFunctionConfig/FunctionConfigInfo.jsp";
|
|
var sparm="ID="+id+"&APP_CONF_ID="+id1;
|
|
AsControl.OpenView(sUrl, sparm, '_self', '');
|
|
}
|
|
|
|
function newRecord() {
|
|
var id1 = "<%=sRoleID%>";
|
|
var sUrl = "/AppConfig/AppFunctionConfig/FunctionConfigInfo.jsp";
|
|
var parm="APP_CONF_ID="+id1;
|
|
AsControl.OpenView(sUrl, parm,'_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"%> |