All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.frameworkset.platform.menu.OrgAdminSelectTree Maven / Gradle / Ivy

There is a newer version: 5.6.4
Show newest version
/*
 * 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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy