Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            LoginInfo login = new ParentPage().GetLoginInfo();

            //加载菜单
            MenuHelper helper = new MenuHelper();

            if (login.LoginUserID.ToLower() != "admin")
            {
                helper.Powers = login.Powers;
            }
            List <MenuInfo> menus = helper.GetMenuInfos();

            menus = menus.Where(p => p.MenuID != "HD").ToList();

            OutLookMenu menu = new OutLookMenu();

            this.Menu.Text = menu.GetMenuHtml(menus);
        }