com.frameworkset.platform.menu.OrgAdminSelectTree Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pdp-system Show documentation
Show all versions of pdp-system Show documentation
bboss public development platform base on bboss.
/*
* Created on 2006-3-9
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package com.frameworkset.platform.menu;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.frameworkset.platform.config.ConfigManager;
import com.frameworkset.platform.security.AccessControl;
import com.frameworkset.platform.sysmgrcore.entity.Organization;
import com.frameworkset.platform.sysmgrcore.manager.db.OrgCacheManager;
import com.frameworkset.common.tag.tree.COMTree;
import com.frameworkset.common.tag.tree.itf.ITreeNode;
/**
* @author ok
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class OrgAdminSelectTree extends COMTree implements Serializable{
public boolean hasSon(ITreeNode father) {
String treeID = father.getId();
try {
if(ConfigManager.getInstance().getConfigValue("enableorgadminall", "parent").equals("parent")//开关,只允许当前机构和父机构的用户作为当前机构的管理员
|| ConfigManager.getInstance().getConfigValue("enableorgadminall", "current").equals("current"))//开关,只允许当前机构的用户作为当前机构的管理员
{
// 这个参数是要设置机构管理员的机构id,取出其所有父机构列表,判断属于这个列表的机构才会显示
String orgId1 = request.getParameter("orgId1");
List list1 = null;
ArrayList orgids1 = new ArrayList();
try {
list1 = OrgCacheManager.getInstance().getFatherOrganizations(orgId1);
if(list1 != null && list1.size()>0)
{
for(int k=0;k0)
{
for(int k=0;k