예제 #1
0
 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();
 }
예제 #3
0
 public CmsInstallerBase() {
     installerService = new AppInstallerService();
     appService = new UserAppService();
     menuService = new UserMenuService();
     sectionService = new ContentSectionService();
     tplService = new ContentCustomTemplateService();
     postService = new ContentPostService();
 }
예제 #4
0
        public UserHomeInstaller() {
            sectionService = new ContentSectionService();
            appService = new UserAppService();
            menuService = new UserMenuService();
            appinfoService = new AppInstallerService();

            lbl = lang.getByApp( typeof( ContentApp ) );
        }
예제 #5
0
        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();
        }
예제 #7
0
        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�Ƿ�������ͣ״̬
            }
        }
예제 #8
0
파일: AppInit.cs 프로젝트: Boshin/wojilu
        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 );
                }

            }
        }
예제 #9
0
 public DownloadInstaller()
 {
     installService = new AppInstallerService();
 }
예제 #10
0
 public AppBaseController()
 {
     appinfoService = new AppInstallerService();
 }
예제 #11
0
 public SiteConfigController()
 {
     logService = new SiteLogService();
     appService = new AppInstallerService();
 }
예제 #12
0
 public AppConfigController()
 {
     themeService = new ThemeService();
     appService = new AppInstallerService();
 }
예제 #13
0
 public SiteAppService()
 {
     menuService = new SiteMenuService();
     appInfoService = new AppInstallerService();
 }
예제 #14
0
 public ForumInstaller()
 {
     installService = new AppInstallerService();
 }