private static long getAppInfoId(string appName) { String appType = strUtil.Append( appName, "App" ); AppInstaller appInfo = new AppInstallerService().GetByTypeName( appType ); if (appInfo != null) return appInfo.Id; return -1; }
public SiteLayoutController() { siteAppService = new SiteAppService(); siteAppService.menuService = new SiteMenuService(); appInfoService = new AppInstallerService(); menuService = new SiteMenuService(); siteSkinService = new SiteSkinService(); }
public CmsInstallerBase() { installerService = new AppInstallerService(); appService = new UserAppService(); menuService = new UserMenuService(); sectionService = new ContentSectionService(); tplService = new ContentCustomTemplateService(); postService = new ContentPostService(); }
public UserHomeInstaller() { sectionService = new ContentSectionService(); appService = new UserAppService(); menuService = new UserMenuService(); appinfoService = new AppInstallerService(); lbl = lang.getByApp( typeof( ContentApp ) ); }
public UserProfileController() { userService = new UserService(); userAppService = new UserAppService(); appinfoService = new AppInstallerService(); userTagService = new UserTagService(); currencyService = new CurrencyService(); }
public PermissionBackController() { SiteRoleService = new SiteRoleService(); appInfoService = new AppInstallerService(); appService = new SiteAppService(); appService.menuService = new SiteMenuService(); logService = new SiteLogService(); }
public void Init( MvcContext ctx ) { if (ctx.utils.isEnd()) return; initPrivate( ctx ); if (ctx.app.obj != null) { // ���app�Ƿ�ͣ�� Type appType = ctx.app.obj.GetType(); AppInstaller installer = new AppInstallerService().GetByType( appType ); if (installer == null || installer.IsInstanceClose( ctx.owner.obj.GetType() )) { ctx.utils.endMsg( "�Բ��𣬱�app�Ѿ�ͣ��", HttpStatus.NotFound_404 ); return; } InitHelperFactory.GetHelper( ctx ).IsAppRunning( ctx ); // ���app�Ƿ�������ͣ״̬ } }
public void Init( MvcContext ctx ) { if (ctx.utils.isEnd()) return; initPrivate( ctx ); if (ctx.app.obj != null) { // 检查app是否停用 Type appType = ctx.app.obj.GetType(); AppInstaller installer = new AppInstallerService().GetByType( appType ); if (installer == null || installer.IsInstanceClose( ctx.owner.obj.GetType() )) { ctx.utils.endMsg( "对不起,本app已经停用", HttpStatus.NotFound_404 ); return; } if (InitHelperFactory.GetHelper( ctx ).IsAppRunning( ctx ) == false) { // 检查app是否属于暂停状态 ctx.utils.endMsg( lang.get( "exAppNotFound" ) + ": appType=" + appType+", appId=" + ctx.app.Id, HttpStatus.NotFound_404 ); } } }
public DownloadInstaller() { installService = new AppInstallerService(); }
public AppBaseController() { appinfoService = new AppInstallerService(); }
public SiteConfigController() { logService = new SiteLogService(); appService = new AppInstallerService(); }
public AppConfigController() { themeService = new ThemeService(); appService = new AppInstallerService(); }
public SiteAppService() { menuService = new SiteMenuService(); appInfoService = new AppInstallerService(); }
public ForumInstaller() { installService = new AppInstallerService(); }