/// <summary> /// 获取Tree菜单 /// </summary> /// <param name="roleID"></param> /// <returns></returns> public static DHTMLXTreeModel GetMenuTree(int roleID) { List <SystemMenuInfoModel> menuInfoList = new List <SystemMenuInfoModel>(); menuInfoList = SystemRoleMenuRelationDataAccess.GetSystemMenuInfoListByRoleID(roleID); return(GetTreeMenu(menuInfoList, 0)); }
/// <summary> /// 根据角色ID获取角色对应的菜单 /// </summary> /// <param name="roleID"></param> /// <returns></returns> public static List <SystemMenuInfoModel> GetSystemMenuInfoListByRoleID(int roleID) { return(SystemRoleMenuRelationDataAccess.GetSystemMenuInfoListByRoleID(roleID)); }