64 lines
2.3 KiB
Plaintext
64 lines
2.3 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/Frame/resources/include/include_begin.jspf"%>
|
|
<%@ page import="com.amarsoft.app.util.ASOrgObject" %>
|
|
<%
|
|
/*
|
|
页面说明:
|
|
*/
|
|
String PG_TITLE = "角色数据权限管理"; // 浏览器窗口标题 <title> PG_TITLE </title>
|
|
String PG_CONTENT_TITLE = " 详细信息 "; //默认的内容区标题
|
|
String PG_CONTNET_TEXT = "请点击左侧列表";//默认的内容区文字
|
|
String PG_LEFT_WIDTH = "200";//默认的treeview宽度
|
|
String sOrgID = CurPage.getParameter("OrgID");
|
|
String pOrgId=CurUser.getBelongOrg().getRelativeOrgID();
|
|
ASOrgObject orgObject= new ASOrgObject(pOrgId);
|
|
//定义Treeview
|
|
OHTMLTreeView tviTemp = new OHTMLTreeView(CurPage, "角色数据权限管理","right");
|
|
String managerOrg="";
|
|
String sSqlTreeView = "";
|
|
//定义树图结构
|
|
Parser.registerFunction("concat");
|
|
String parentOrg="";
|
|
//如果是平台管理则要加载平台管理员所管理的部门
|
|
|
|
sSqlTreeView = " from O where OrgID like '8%' and orglevel<9 ";
|
|
parentOrg=pOrgId;
|
|
|
|
//参数从左至右依次为:
|
|
//ID字段(必须),Name字段(必须),Value字段,Script字段,Picture字段,From子句(必须),OrderBy子句,Sqlca
|
|
tviTemp.init(JBOFactory.getBizObjectManager("jbo.sys.ORG_INFO"), "SortNo","OrgName","OrgID","","",sSqlTreeView,"Order By SortNo");
|
|
%>
|
|
<%@ include file="/Frame/resources/include/include_main.jspf"%>
|
|
<script type="text/javascript">
|
|
function openChildComp(sCompID,sURL,sParameterString){
|
|
sParaStringTmp = "";
|
|
sLastChar=sParameterString.substring(sParameterString.length-1);
|
|
if(sLastChar=="&") sParaStringTmp=sParameterString;
|
|
else sParaStringTmp=sParameterString+"&";
|
|
|
|
sParaStringTmp += "ToInheritObj=y&OpenerFunctionName="+getCurTVItem().name;
|
|
OpenComp(sCompID,sURL,sParaStringTmp,"right");
|
|
}
|
|
|
|
function TreeViewOnClick(){
|
|
var sOrgID = getCurTVItem().value;
|
|
if(sOrgID != "null" && sOrgID!='root'){
|
|
OpenComp("UserList","/AppConfig/RoleDataManage/RoleDataManageList.jsp","ComponentName=用户管理&OrgID="+sOrgID,"right");
|
|
setTitle(getCurTVItem().name+"权限一览");
|
|
}
|
|
}
|
|
|
|
function initTreeView(){
|
|
<%=tviTemp.generateHTMLTreeView()%>
|
|
// expandNode('root');
|
|
// expandNode('2');
|
|
// expandNode('2010');
|
|
// selectItem('210010');
|
|
// selectItem('220');
|
|
// click_change(1);
|
|
<%=orgObject.getExpandNodejs(Sqlca,parentOrg)%>
|
|
}
|
|
|
|
initTreeView();
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |