Exemplo n.º 1
0
        public static List<Menu> GetMenu(RequestContext _context)
        {
            UrlHelper Url = new UrlHelper(_context);
            List<Menu> menus = new List<Menu>();
            Menu m1 = new Menu("a10", null, "首页", "menu-icon fa fa-home", Url.Content("~/Home/Index"));
            Menu m2 = new Menu("a11", null, "人员列表", "menu-icon fa fa-list", Url.Content("~/Human/List"));

            Menu m4 = new Menu("a15", null, "人员信息统计", "menu-icon fa fa-bar-chart-o", "#");
            m4.AddChild("a1501", "按年龄段统计", string.Empty, Url.Action("NianLing", "TongJi"));
            m4.AddChild("a1502", "按学历统计", string.Empty, Url.Action("XueLi", "TongJi"));
            m4.AddChild("a1503", "按政治面貌统计", string.Empty, Url.Action("ZhengZhi", "TongJi"));
            m4.AddChild("a1504", "按入职时间统计", string.Empty, Url.Action("RuZhi", "TongJi"));
            m4.AddChild("a1505", "按岗位统计", string.Empty, Url.Action("GangWei", "TongJi"));
            m4.AddChild("a1506", "按职称统计", string.Empty, Url.Action("ZhiCheng", "TongJi"));
            Menu m3 = new Menu("a12", null, "系统设置", "menu-icon fa fa-pencil-square-o", "#");

            m3.AddChild("a13", "数据字典栏目", string.Empty, Url.Action("Index", "DicLan"));
            m3.AddChild("a14", "数据字典", string.Empty, Url.Action("Index", "DicLan"));

            menus.Add(m1);
            menus.Add(m2);
            menus.Add(m4);
            menus.Add(m3);

            return menus;
        }
Exemplo n.º 2
0
        //
        // GET: /Menu/
        public List<Menu> GetMenu()
        {
            List<Menu> menus = new List<Menu>();
            Menu m1 = new Menu("a10", null, "首页", "menu-icon fa fa-home", Url.Content("~/VegeParentType/Index"));

            //Menu m5 = new Menu("a16", null, "二级分类", "menu-icon fa fa-list", Url.Action("Index", "VegeType"));
            Menu m6 = new Menu("a17", null, "订单管理", "menu-icon fa fa-list", Url.Action("Index", "OrderList"));

            Menu m4 = new Menu("a15", null, "菜品管理", "menu-icon fa fa-bar-chart-o", "#");
            m4.AddChild("a1501", "一级品类", string.Empty, Url.Action("Index", "VegeParentType"));
            m4.AddChild("a1502", "二级品类", string.Empty, Url.Action("Index", "VegeType"));
            m4.AddChild("a1503", "菜品基础信息", string.Empty, Url.Action("Index", "VegeName"));
            m4.AddChild("a1504", "菜品价格维护", string.Empty, Url.Action("Index", "VegeInfo"));

            Menu m2 = new Menu("a11", null, "客户信息", "menu-icon fa fa-list", Url.Action("Index", "CustomerInfo"));

            Menu m3 = new Menu("a12", null, "系统设置", "menu-icon fa fa-pencil-square-o", "#");
            m3.AddChild("a12_00", "系统用户管理", string.Empty, Url.Action("Index", "AUser"));
            m3.AddChild("a12_02", "数据字典栏目", string.Empty, Url.Action("Index", "DicLan"));
            m3.AddChild("a12_03", "数据字典", string.Empty, Url.Action("Index", "Dic"));

            menus.Add(m1);
            menus.Add(m6);
            menus.Add(m4);
            menus.Add(m2);
            //menus.Add(m7);
            menus.Add(m3);

            return menus;
        }
Exemplo n.º 3
0
 public void AddChild(string id,string name,string icon,string url)
 {
     Menu model = new Menu();
     model.ID = id;
     model.PID = this.PID;
     model.Name = name;
     model.Icon = icon;
     model.Url = url;
     model.isChild = true;
     ChildMenu.Add(model);
 }