/// <summary> /// 根据部门ID获取部门负责人(支持多个id的传入以逗号分隔) /// </summary> /// <param name="strDeptIDS">部门ID</param> /// <param name="iFloorCode">层级(0.自己;-1.所有)</param> /// <returns> 泛型ViewBase</returns> private static List <ViewBase> GetDeptManagers(String strDeptIDS, int iFloorCode) { List <ViewBase> listVB = new List <ViewBase>(); if (String.IsNullOrEmpty(strDeptIDS) == false) { strDeptIDS = strDeptIDS.Replace(';', ','); String[] strIDS = strDeptIDS.Split(','); if (strIDS.Length > 0) { foreach (String IDS in strIDS) { listVB.Add(OAUser.GetDeptManager(IDS, iFloorCode)); } } } return(listVB); }
/// <summary> /// 根据部门ID获取部门负责人的账号和姓名(0:领导账号集合的字符串,1:姓名的字符串) /// </summary> /// <param name="strDeptID">部门ID</param> /// <param name="iFloorCode">层级(0.自己;-1.所有)</param> /// <returns>字符串数组</returns> public static String[] GetDeptManagerArray(String strDeptID, int iFloorCode) { return(OAUser.GetUserArray(OAUser.GetDeptManager(strDeptID, iFloorCode))); }