コード例 #1
0
 public DataTable GetChildrenUsers(string organizeId)
 {
     string[] organizeIds = null;
     BaseOrganizeManager organizeManager = new BaseOrganizeManager(this.DbHelper, this.UserInfo);
     switch (DbHelper.CurrentDbType)
     {
         case DbTypes.Access:
         case DbTypes.SqlServer:
             string organizeCode = organizeManager.GetCodeById(organizeId);
             organizeIds = organizeManager.GetChildrensIdByCode(BaseOrganizeEntity.FieldCode, organizeCode);
             break;
         case DbTypes.Oracle:
             organizeIds = organizeManager.GetChildrensId(BaseOrganizeEntity.FieldId, organizeId, BaseOrganizeEntity.FieldParentId);
             break;
     }
     return this.GetDataTableByOrganizes(organizeIds);
 }
コード例 #2
0
 public DataTable GetParentChildrenStaffs(string organizeId)
 {
     string[] organizeIds = null;
     BaseOrganizeManager organizeManager = new BaseOrganizeManager(this.DbHelper, this.UserInfo);
     string organizeCode = organizeManager.GetCodeById(organizeId);
     organizeIds = organizeManager.GetChildrensIdByCode(BaseOrganizeEntity.FieldCode, organizeCode);
     return this.GetDataTableByOrganizes(organizeIds);
 }