예제 #1
0
 public object GetTenantExtra()
 {
     return(new
     {
         customMode = CoreContext.Configuration.CustomMode,
         opensource = TenantExtra.Opensource,
         enterprise = TenantExtra.Enterprise,
         tariff = TenantExtra.GetCurrentTariff(),
         quota = TenantExtra.GetTenantQuota(),
         notPaid = TenantStatisticsProvider.IsNotPaid(),
         licenseAccept = Web.Studio.UserControls.Management.TariffSettings.LicenseAccept,
         enableTariffPage = //TenantExtra.EnableTariffSettings - think about hide-settings for opensource
                            (!CoreContext.Configuration.Standalone || !string.IsNullOrEmpty(LicenseReader.LicensePath)) &&
                            string.IsNullOrEmpty(SetupInfo.AmiMetaUrl) &&
                            !CoreContext.Configuration.CustomMode,
         DocServerUserQuota = DocumentServiceLicense.GetLicenseQuota(),
         DocServerLicense = DocumentServiceLicense.GetLicense()
     });
 }
예제 #2
0
 public object GetTenantExtra()
 {
     return(new
     {
         customMode = CoreBaseSettings.CustomMode,
         opensource = TenantExtra.Opensource,
         enterprise = TenantExtra.Enterprise,
         tariff = TenantExtra.GetCurrentTariff(),
         quota = TenantExtra.GetTenantQuota(),
         notPaid = TenantExtra.IsNotPaid(),
         licenseAccept = SettingsManager.LoadForCurrentUser <TariffSettings>().LicenseAcceptSetting,
         enableTariffPage = //TenantExtra.EnableTarrifSettings - think about hide-settings for opensource
                            (!CoreBaseSettings.Standalone || !string.IsNullOrEmpty(LicenseReader.LicensePath)) &&
                            string.IsNullOrEmpty(SetupInfo.AmiMetaUrl) &&
                            !CoreBaseSettings.CustomMode,
         DocServerUserQuota = DocumentServiceLicense.GetLicenseQuota(),
         DocServerLicense = DocumentServiceLicense.GetLicense()
     });
 }