public JsonResult GetSystemMenu(string menuCode) { var item = ManageSystemBusiness.GetSystemMenu(menuCode); JsonDictionary.Add("Item", item); return(new JsonResult() { Data = JsonDictionary, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }
public ActionResult AddSubMenu(string id) { var model = new SystemMenu(); var menuCode = string.Empty; var pCode = string.Empty; var pCodeName = string.Empty; var layer = 0; model = ManageSystemBusiness.GetSystemMenu(id); pCode = model.MenuCode; pCodeName = model.Name; layer = model.Layer + 1; ViewBag.PCode = pCode; ViewBag.PCodeName = pCodeName; ViewBag.Layer = layer; ViewBag.Model = new SystemMenu(); ViewBag.MenuCode = menuCode; return(View("MenuDetail")); }
public ActionResult MenuDetail(string id) { var model = new SystemMenu(); var menuCode = string.Empty; var pCodeName = string.Empty; if (!string.IsNullOrEmpty(id)) { model = ManageSystemBusiness.GetSystemMenu(id); menuCode = model.MenuCode; pCodeName = model.PCodeName; } ViewBag.Model = model; ViewBag.MenuCode = menuCode; ViewBag.PCodeName = pCodeName; ViewBag.Layer = 1; ViewBag.PCode = string.Empty; return(View()); }