168 lines
5.4 KiB
C#
168 lines
5.4 KiB
C#
using System;
|
|
using Volo.Abp.Data;
|
|
using Volo.Abp.TenantManagement;
|
|
|
|
namespace Kurs.Platform.Extensions;
|
|
|
|
public static class AbpTenantExtensions
|
|
{
|
|
//IsActive Tenant
|
|
public static void SetIsActive(this Tenant tenant, bool isActive)
|
|
{
|
|
tenant.SetProperty(PlatformConsts.Tenants.IsActive, isActive);
|
|
}
|
|
public static bool GetIsActive(this Tenant tenant)
|
|
{
|
|
return tenant.GetProperty<bool>(PlatformConsts.Tenants.IsActive);
|
|
}
|
|
|
|
public static void SetOrganizationName(this Tenant tenant, string organizationName)
|
|
{
|
|
tenant.SetProperty(PlatformConsts.Tenants.OrganizationName, organizationName);
|
|
}
|
|
public static string GetOrganizationName(this Tenant tenant)
|
|
{
|
|
return tenant.GetProperty<string>(PlatformConsts.Tenants.OrganizationName);
|
|
}
|
|
|
|
public static void SetFounder(this Tenant tenant, string founder)
|
|
{
|
|
tenant.SetProperty(PlatformConsts.Tenants.Founder, founder);
|
|
}
|
|
public static string GetFounder(this Tenant tenant)
|
|
{
|
|
return tenant.GetProperty<string>(PlatformConsts.Tenants.Founder);
|
|
}
|
|
|
|
public static void SetVknTckn(this Tenant tenant, long vknTckn)
|
|
{
|
|
tenant.SetProperty(PlatformConsts.Tenants.VknTckn, vknTckn);
|
|
}
|
|
public static long GetVknTckn(this Tenant tenant)
|
|
{
|
|
return tenant.GetProperty<long>(PlatformConsts.Tenants.VknTckn);
|
|
}
|
|
|
|
public static void SetTaxOffice(this Tenant tenant, string taxOffice)
|
|
{
|
|
tenant.SetProperty(PlatformConsts.Tenants.TaxOffice, taxOffice);
|
|
}
|
|
public static string GetTaxOffice(this Tenant tenant)
|
|
{
|
|
return tenant.GetProperty<string>(PlatformConsts.Tenants.TaxOffice);
|
|
}
|
|
|
|
public static void SetCountry(this Tenant tenant, string country)
|
|
{
|
|
tenant.SetProperty(PlatformConsts.Tenants.Country, country);
|
|
}
|
|
public static string GetCountry(this Tenant tenant)
|
|
{
|
|
return tenant.GetProperty<string>(PlatformConsts.Tenants.Country);
|
|
}
|
|
|
|
public static void SetCity(this Tenant tenant, string city)
|
|
{
|
|
tenant.SetProperty(PlatformConsts.Tenants.City, city);
|
|
}
|
|
public static string GetCity(this Tenant tenant)
|
|
{
|
|
return tenant.GetProperty<string>(PlatformConsts.Tenants.City);
|
|
}
|
|
public static void SetDistrict(this Tenant tenant, string district)
|
|
{
|
|
tenant.SetProperty(PlatformConsts.Tenants.District, district);
|
|
}
|
|
public static string GetDistrict(this Tenant tenant)
|
|
{
|
|
return tenant.GetProperty<string>(PlatformConsts.Tenants.District);
|
|
}
|
|
public static void SetStreet(this Tenant tenant, string street)
|
|
{
|
|
tenant.SetProperty(PlatformConsts.Tenants.Street, street);
|
|
}
|
|
public static string GetStreet(this Tenant tenant)
|
|
{
|
|
return tenant.GetProperty<string>(PlatformConsts.Tenants.Street);
|
|
}
|
|
|
|
public static void SetAddress1(this Tenant tenant, string address)
|
|
{
|
|
tenant.SetProperty(PlatformConsts.Tenants.Address1, address);
|
|
}
|
|
public static string GetAddress1(this Tenant tenant)
|
|
{
|
|
return tenant.GetProperty<string>(PlatformConsts.Tenants.Address1);
|
|
}
|
|
|
|
public static void SetAddress2(this Tenant tenant, string address2)
|
|
{
|
|
tenant.SetProperty(PlatformConsts.Tenants.Address2, address2);
|
|
}
|
|
public static string GetAddress2(this Tenant tenant)
|
|
{
|
|
return tenant.GetProperty<string>(PlatformConsts.Tenants.Address2);
|
|
}
|
|
public static void SetPostalCode(this Tenant tenant, string postalCode)
|
|
{
|
|
tenant.SetProperty(PlatformConsts.Tenants.PostalCode, postalCode);
|
|
}
|
|
public static string GetPostalCode(this Tenant tenant)
|
|
{
|
|
return tenant.GetProperty<string>(PlatformConsts.Tenants.PostalCode);
|
|
}
|
|
|
|
public static void SetPhone(this Tenant tenant, string phone)
|
|
{
|
|
tenant.SetProperty(PlatformConsts.Tenants.Phone, phone);
|
|
}
|
|
public static string GetPhone(this Tenant tenant)
|
|
{
|
|
return tenant.GetProperty<string>(PlatformConsts.Tenants.Phone);
|
|
}
|
|
|
|
public static void SetMobile(this Tenant tenant, string mobile)
|
|
{
|
|
tenant.SetProperty(PlatformConsts.Tenants.Mobile, mobile);
|
|
}
|
|
public static string GetMobile(this Tenant tenant)
|
|
{
|
|
return tenant.GetProperty<string>(PlatformConsts.Tenants.Mobile);
|
|
}
|
|
|
|
public static void SetFax(this Tenant tenant, string fax)
|
|
{
|
|
tenant.SetProperty(PlatformConsts.Tenants.Fax, fax);
|
|
}
|
|
public static string GetFax(this Tenant tenant)
|
|
{
|
|
return tenant.GetProperty<string>(PlatformConsts.Tenants.Fax);
|
|
}
|
|
|
|
public static void SetEmail(this Tenant tenant, string email)
|
|
{
|
|
tenant.SetProperty(PlatformConsts.Tenants.Email, email);
|
|
}
|
|
public static string GetEmail(this Tenant tenant)
|
|
{
|
|
return tenant.GetProperty<string>(PlatformConsts.Tenants.Email);
|
|
}
|
|
|
|
public static void SetWebsite(this Tenant tenant, string website)
|
|
{
|
|
tenant.SetProperty(PlatformConsts.Tenants.Website, website);
|
|
}
|
|
public static string GetWebsite(this Tenant tenant)
|
|
{
|
|
return tenant.GetProperty<string>(PlatformConsts.Tenants.Website);
|
|
}
|
|
|
|
public static void SetMenuGroup(this Tenant tenant, string menuGroup)
|
|
{
|
|
tenant.SetProperty(PlatformConsts.Tenants.MenuGroup, menuGroup);
|
|
}
|
|
public static string GetMenuGroup(this Tenant tenant)
|
|
{
|
|
return tenant.GetProperty<string>(PlatformConsts.Tenants.MenuGroup);
|
|
}
|
|
}
|