//点击组权限,初始化菜单 public JsonResult InitMenu(int UserGroupID) { string strError = ""; T_MenuInfo model = new T_MenuInfo(); List <T_MenuInfo> modelList = new List <T_MenuInfo>(); bool isSuccess = funcmenu.GetMenuListByUserGroupID(ref modelList, ref strError, UserGroupID); List <Allnodes> allnodes = GetTree(modelList); return(Json(new { state = isSuccess, obj = allnodes }, JsonRequestBehavior.AllowGet)); }
public bool GetMenuListByUserGroupID(ref List <T_MenuInfo> modelList, ref string strError, int UserGroupID, bool IncludNoCheck = true) { T_MENU_Func tfunc = new T_MENU_Func(); return(tfunc.GetMenuListByUserGroupID(ref modelList, ref strError, UserGroupID, IncludNoCheck)); }