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

69 lines
2.4 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page contentType="text/html; charset=GBK"%><%@
include file="/IncludeBeginMD.jsp"%><%
//获得页面参数
String sRightPointURL = CurPage.getParameter("RightPointURL"); //权限点URL
String sRightPointName = CurPage.getParameter("RightPointName"); //权限点名称
if (sRightPointURL == null) sRightPointURL = "";
if (sRightPointName == null) sRightPointName = "";
%>
<body leftmargin="0" topmargin="0" style="overflow: hidden;">
<table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0" >
<tr height=1 valign=top >
<td>
<table>
<tr>
<td><%=new Button("确定","保存配置信息","javascript:saveConfig()").getHtmlText()%></td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top" >
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td id="myleft" colspan='3' align=center width=100%>
<div style="positition:absolute;align:left;height:430px;overflow-y: hide;">
<iframe name="left" src="<%=sWebRootPath%>/Blank.jsp" width=100% height=100% frameborder=0 scrolling=no ></iframe>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
<script type="text/javascript">
setDialogTitle("权限点<font color=#6666cc>(<%=sRightPointName%>)</font>可见角色");
function saveConfig(){
var nodes = getCheckedTVItems(); //树图选择的节点
var roles ="";
for(var i=0;i<nodes.length;i++){
roles += nodes[i].id + "@";
}
var sReturn = RunJavaMethodTrans("com.amarsoft.app.awe.config.function.action.ManageRoleRela","manageRightRoleRela","RightPointURL=<%=sRightPointURL%>,RelaValues="+roles);
if(sReturn=="SUCCEEDED"){
alert("保存成功!");
top.close();
}
}
function startMenu(){
<%
OHTMLTreeView tviTemp = new OHTMLTreeView(CurPage, "配置可见角色","right");
tviTemp.MultiSelect = true;
tviTemp.init(JBOFactory.getBizObjectManager("jbo.awe.AWE_ROLE_INFO"), "RoleID",new String[]{"O.RoleName","(","O.RoleId",")"},"RoleID","","from O where RoleStatus ='1'");
out.println(tviTemp.generateHTMLTreeView());
List<BizObject> list = JBOFactory.createBizObjectQuery("jbo.awe.AWE_ROLE_URL", "select RoleID from O where URL=:URL")
.setParameter("URL", sRightPointURL).getResultList(false);
//取角色与URL的关联以便勾选上已选择项
for(BizObject bo : list){
%>
setCheckTVItem('<%=bo.getAttribute("RoleID").getString()%>', true);
<% } %>
}
startMenu();
expandNode('root');
</script>
<%@ include file="/IncludeEnd.jsp"%>