/// <summary> /// 用户导航菜单 /// </summary> /// <returns></returns> public ActionResult NavigateMenu() { if (LoginStatus.IsLogin) { ViewBag.MenuList = MemCacheSDK.GetUserMenuList(SettingHelper.Instance.GetData("SystemNo"), LoginStatus.UserName, LoginStatus.RoleID.Value, SettingHelper.Instance.GetData("GetValueUrl")); return(View()); } else { throw new Exception("未登录用户,请登录"); } }
public ActionResult Index() { if (LoginStatus.IsLogin) { List <MRolePermission> list = MemCacheSDK.GetUserMenuList(SettingHelper.Instance.GetData("SystemNo"), LoginStatus.UserName, LoginStatus.RoleID.Value, SettingHelper.Instance.GetData("GetValueUrl")); ViewBag.Modules = list; ViewBag.userName = LoginStatus.UserName; return(View()); } else { throw new Exception("未登录用户,请登录"); } }