예제 #1
0
파일: OrgGroups.cs 프로젝트: kenstammjr/SPA
        public static string ParentOrgGroupIDString(int OrgGroupID)
        {
            string   OrgGroupIDString = OrgGroupID.ToString();
            OrgGroup grp      = new OrgGroup(OrgGroupID);
            int      ParentID = grp.ParentID;
            bool     Inherit  = grp.Inherit;

            while (ParentID != 0 && Inherit == true)
            {
                OrgGroupIDString = ParentID + "|" + OrgGroupIDString;
                OrgGroup newgrp = new OrgGroup(ParentID);
                ParentID = newgrp.ParentID;
                Inherit  = newgrp.Inherit;
            }
            return(OrgGroupIDString);
        }
예제 #2
0
파일: OrgGroups.cs 프로젝트: kenstammjr/SPA
        public static string[] ParentOrgGroupIDCollection(int OrgGroupID)
        {
            string   OrgGroupIDString = OrgGroupID.ToString();
            OrgGroup grp      = new OrgGroup(OrgGroupID);
            int      ParentID = grp.ParentID;
            bool     Inherit  = grp.Inherit;

            while (ParentID != 0 && Inherit == true)
            {
                OrgGroupIDString = ParentID + "|" + OrgGroupIDString;
                OrgGroup newgrp = new OrgGroup(ParentID);
                ParentID = newgrp.ParentID;
                Inherit  = newgrp.Inherit;
            }
            string[] OrgGroupIDCollection = OrgGroupIDString.Split('|');
            return(OrgGroupIDCollection);
        }