コード例 #1
0
        public DataTable GetChildrenUsers(string organizeId)
        {
            string[]            organizeIds     = null;
            BaseOrganizeManager organizeManager = new BaseOrganizeManager(this.DbHelper, this.UserInfo);

            switch (DbHelper.CurrentDbType)
            {
            case CurrentDbType.Access:
            case CurrentDbType.SqlServer:
                string organizeCode = organizeManager.GetCodeById(organizeId);
                organizeIds = organizeManager.GetChildrensIdByCode(BaseOrganizeEntity.FieldCode, organizeCode);
                break;

            case CurrentDbType.Oracle:
                organizeIds = organizeManager.GetChildrensId(BaseOrganizeEntity.FieldId, organizeId, BaseOrganizeEntity.FieldParentId);
                break;
            }
            return(this.GetDataTableByOrganizes(organizeIds));
        }