Пример #1
0
 /// <summary>
 /// 根据部门ID绑定部门负责人,部门领导和大于某职位的人
 /// </summary>
 /// <param name="strDeptID">部门ID</param>
 /// <param name="strPostName">职位名称</param>
 /// <param name="bDeptManger">是否绑定部门负责人</param>
 /// <param name="bDeptLeader">是否绑定部门领导</param>
 /// <returns>返回以分号分隔的二维字符串数组</returns>
 public static string[] GetUserByDeptPostArray(string strDeptID, string strPostName, bool bDeptManger, bool bDeptLeader)
 {
     return(OAUser.GetUserArray(OAUser.GetUserByDeptPost(strDeptID, strPostName, bDeptManger, bDeptLeader, 0)));
 }
Пример #2
0
 /// <summary>
 ///  根据部门的ID和职位名称取人支持多个职位以逗号分隔
 /// </summary>
 /// <param name="strDeptID">部门名称</param>
 /// <param name="strPostName">职位名称</param>
 /// <param name="iFloorCode">层级</param>
 /// <returns>string二维数组(0:用户账号包括域名 1:用户姓名)</returns>
 public static string[] GetUserByDeptPostArray(string strDeptID, string strPostName, int iFloorCode)
 {
     return(OAUser.GetUserArray(OAUser.GetUserByPost(strDeptID, strPostName, iFloorCode)));
 }
Пример #3
0
 /// <summary>
 ///  根据部门ID获取部门负责人的账号和姓名(支持多个id的传入以逗号分隔)(0:领导账号集合的字符串,1:姓名的字符串)
 /// </summary>
 /// <param name="strDeptIDS">部门ID</param>
 /// <param name="iFloorCode">层级(0.自己;-1.所有)</param>
 /// <returns>字符串数组</returns>
 public static String[] GetDeptManagerArrays(String strDeptIDS, int iFloorCode)
 {
     return(OAUser.GetUserArray(OAUser.GetDeptManagers(strDeptIDS, iFloorCode)));
 }
Пример #4
0
 /// <summary>
 /// 根据部门ID获取部门领导账号和姓名的数组(0:领导账号集合的字符串,1:姓名的字符串)
 /// </summary>
 /// <param name="strDeptID">部门ID</param>
 /// <param name="iFloorCode">层级(0.自己;-1.所有)</param>
 /// <returns>字符串数组</returns>
 public static String[] GetDeptLeaderArray(String strDeptID, int iFloorCode)
 {
     return(OAUser.GetUserArray(OAUser.GetDeptLeader(strDeptID, iFloorCode)));
 }
Пример #5
0
 /// <summary>
 /// 根据角色取人返回一个二维数组并转化为小写(数组0:用户域账号包括域名以“;”分隔  数组1:用户姓名以“;”分隔)
 /// </summary>
 /// <param name="strRoleName">角色名称</param>
 /// <returns>字符串数组</returns>
 public static String[] GetUserByRoleName(String strRoleName)
 {
     return(OAUser.GetUserArray(OAUser.GetUserByRole(strRoleName)));
 }