bklLiudl
2024-07-23 277bbae216debe7e6c04e8cc6ee6e1ba9763e14b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using BLL;
using Common;
using Lib;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
 
namespace wms.Areas.SyetemSet.Controllers
{
    public class ResMenuController : MasterPage
    {
        // GET: SyetemSet/ResMenu
        [LoginFilter]
        public ActionResult Index()
        {
            ViewBag.Title = "菜单管理";
            ViewBag.ParentName = LocalHelper.GetResMenuListTo(string.Empty);
            return View();
        }
 
        [LoginFilter]
        public ActionResult AddResMenu()
        {
            string ResNum = Request.QueryString.Get("ResNum");
            if (ResNum.IsEmpty())
            {
                ViewBag.ResParentMenu = LocalHelper.GetResMenuList(string.Empty);
                ViewBag.ResMenu = new ResMenu();
 
            }
            else
            {
                IDALResMenu provider = new DALResMenu();
                ResMenu entity = provider.GetModel(ResNum);
                entity = entity == null ? new ResMenu() : entity;
                ViewBag.ResParentMenu = LocalHelper.GetResMenuList(entity.ParentName);
                ViewBag.ResMenu = entity;
 
            }
            return View();
        }
    }
}