/// <summary> /// 根据部门的ID获取子部门ID字符串以","分隔 /// </summary> /// <param name="strDeptID">部门ID</param> /// <param name="iFloorCode">层级(0:自己 -1:所有 >0:层数)</param> /// <returns>String</returns> public static String GetChildDeptIDString(string strDeptID, int iFloorCode) { string strIDS = string.Empty; ViewBase vb = OADept.GetChildDept(strDeptID, iFloorCode); if (vb != null) { strIDS = vb.GetFieldVals("ID", ","); } return(strIDS); }
/// <summary> /// 根据部门的ID获取子部门 /// </summary> /// <param name="ddl" >下拉菜单ID</param > /// <param name="strDeptID">部门的ID</param> /// <param name="iFloorCode" >层级(>0 子部门层数, -1所有)</param> /// <param name="bClear" >是否清除(true:清除,false :追加)</param> /// <param name="bBlank" >是否加空行(true:加空行 false:反之)</param> public static void GetChildDept(DropDownList ddl, string strDeptID, int iFloorCode, bool bClear, bool bBlank) { OADept.BindDropDownList(ddl, OADept.GetChildDept(strDeptID, iFloorCode), bClear, bBlank); }
/// <summary> /// 根据部门的ID获取子部门 /// </summary> /// <param name="ddl" >下拉菜单ID</param > /// <param name="strDeptID">部门的ID</param> /// <param name="iFloorCode" >层级(>0 子部门层数, -1所有)</param> public static void GetChildDept(DropDownList ddl, string strDeptID, int iFloorCode) { OADept.BindDropDownList(ddl, OADept.GetChildDept(strDeptID, iFloorCode)); }