Beispiel #1
0
 public TopNavController()
 {
     userAppService = new UserAppService();
     msgService = new MessageService();
     menuService = new SiteMenuService();
     currencyService = new CurrencyService();
 }
Beispiel #2
0
 public AppController()
     : base()
 {
     userAppService = new SiteAppService();
     menuService = new SiteMenuService();
     logService = new SiteLogService();
 }
 public SiteLayoutController()
 {
     siteAppService = new SiteAppService();
     siteAppService.menuService = new SiteMenuService();
     appInfoService = new AppInstallerService();
     menuService = new SiteMenuService();
     siteSkinService = new SiteSkinService();
 }
Beispiel #4
0
        private static String getMenuFriendUrl( String url, IMember owner )
        {
            // 检查网站菜单中的部分
            SiteMenuService menuService = new SiteMenuService();
            List<IMenu> menus = menuService.GetList( owner );
            foreach (IMenu menu in menus) {
                if (strUtil.IsNullOrEmpty( menu.RawUrl )) continue;
                if (strUtil.IsNullOrEmpty( menu.Url )) continue;
                if (menu.RawUrl.Equals( strUtil.TrimEnd( url.TrimStart( '/' ), MvcConfig.Instance.UrlExt ) )) {
                    String key = "/" + menu.Url + MvcConfig.Instance.UrlExt; // 缓存中的key是完整的网址
                    return key;
                }
            }

            return null;
        }
Beispiel #5
0
 public MenuController()
 {
     menuService = new SiteMenuService();
     logService = new SiteLogService();
 }
 public List<IMenu> GetMenus( IMember owner )
 {
     SiteMenuService menuService = new SiteMenuService();
     return menuService.GetList( owner );
 }
 public SiteAppService()
 {
     menuService = new SiteMenuService();
     appInfoService = new AppInstallerService();
 }