/// <summary> /// 根据部门ID绑定部门负责人、部门领导和大于某职位的人(可以传空值) /// </summary> /// <param name="ddl">下拉菜单ID</param> /// <param name="strDeptID">部门ID</param> /// <param name="strPostName">职位名称</param> /// <param name="bDeptManger">是否绑定部门负责人</param> /// <param name="bDeptLeader">是否绑定部门领导</param> /// <param name="iFloorCode">层级(0自己,>0 子部门层数,-1所有)</param> public static void GetUserByDeptPost(DropDownList ddl, string strDeptID, string strPostName, bool bDeptManger, bool bDeptLeader, int iFloorCode) { OAUser.BindDropDownList(ddl, OAUser.GetUserByDeptPost(strDeptID, strPostName, bDeptManger, bDeptLeader, iFloorCode)); }
/// <summary> /// 根据部门的ID和职位名称取人支持多个职位以逗号分隔 /// </summary> /// <param name="ddl">下拉菜单ID</param> /// <param name="strDeptID">部门ID</param> /// <param name="strPostName">职位名称</param> /// <param name="iFloorCode">层级</param> public static void GetUserByPost(DropDownList ddl, string strDeptID, string strPostName, int iFloorCode) { OAUser.BindDropDownList(ddl, GetUserByPost(strDeptID, strPostName, iFloorCode)); }
/// <summary> /// 根据部门ID获取部门负责人绑定到DropdownList /// </summary> /// <param name="ddl">下拉菜单ID</param> /// <param name="strDeptID">部门ID</param> /// <param name="iFloorCode">层级(0.自己;-1.所有)</param> public static void GetDeptManagerByDeptID(DropDownList ddl, string strDeptID, int iFloorCode) { OAUser.BindDropDownList(ddl, GetDeptManager(strDeptID, iFloorCode)); }
/// <summary> /// 根据部门ID获取部门领导 /// </summary> /// <param name="ddl">下拉菜单ID</param> /// <param name="strDeptID">部门ID</param> /// <param name="iFloorCode">层级(0.自己;-1.所有)</param> public static void GetDeptLeader(DropDownList ddl, String strDeptID, int iFloorCode) { OAUser.BindDropDownList(ddl, OAUser.GetDeptLeader(strDeptID, iFloorCode)); }
/// <summary> /// 根据角色的名称获取用户信息绑定到DropDownList /// </summary> /// <param name="ddl">下拉菜单ID</param> /// <param name="strRoleName">角色名称</param> public static void GetUserByRole(DropDownList ddl, String strRoleName) { OAUser.BindDropDownList(ddl, OAUser.GetUserByRole(strRoleName)); }