public ViewResult Add(string pid) { Menu_S model = new Menu_S(); if (pid == PID) { model = new Menu_S() { PerMenuID = PID, PerMenuName = "", MenuLevel = 2 }; } else { var perMenu = _MenuFacade.Value.GetByID <Menu_S>(pid); model = new Menu_S() { PerMenuID = pid, PerMenuName = perMenu.MenuName, MenuLevel = perMenu.MenuLevel + 1 }; } ViewBag.ActionUrl = "_Add"; ViewBag.OperType = "Add"; //model.Extend3 = "SView"; ViewBag.PrivilegeType = DictionaryshipFactory.Instance.GetDictSelectList(DictParam.SysPrivilegeType, true); ViewBag.FunType = DictionaryshipFactory.Instance.GetDictSelectList(DictParam.FunType, true); return(View(model)); }
/// <summary> /// 【视图】菜单列表 /// </summary> /// <returns></returns> public ViewResult Selecter(int MenuType) { var model = new Menu_S(); model.MenuType = MenuType; return(View(model)); }