Class TimeZoneProvider
Provides the timezone list.
Namespace: SuperOffice.CRM.Lists
Assembly: SoDataBase.dll
Syntax
[MDOProviderPlugin("TimeZone")]
[MDOAdditionalInfo("Get all timezones", "[all]")]
[MDOAdditionalInfo("Get all active timezones and the given location", 1234)]
[MDOAdditionalInfo("locationId", "Get the specific Timezone location", 1234)]
public class TimeZoneProvider : Object, ISoListProvider, ISoList, IPlugin
Remarks
AdditionalInfo = "[all]" returns all timezones
AdditionalInfo = "123" returns all active timezones and the specific location AdditionalInfo = "locationId=123" returns only the given location. /// AdditionalInfo = "countryFlag=true" returns an iconhint for the country's flag.Constructors
TimeZoneProvider()
Provides the timezone list.
Declaration
public TimeZoneProvider()
Remarks
AdditionalInfo = "[all]" returns all timezones
AdditionalInfo = "123" returns all active timezones and the specific location AdditionalInfo = "locationId=123" returns only the given location. /// AdditionalInfo = "countryFlag=true" returns an iconhint for the country's flag.Fields
_additionalInfo
Provides the timezone list.
Declaration
protected string _additionalInfo
Field Value
Type | Description |
---|---|
String |
Remarks
AdditionalInfo = "[all]" returns all timezones
AdditionalInfo = "123" returns all active timezones and the specific location AdditionalInfo = "locationId=123" returns only the given location. /// AdditionalInfo = "countryFlag=true" returns an iconhint for the country's flag._countryTableInfo
Provides the timezone list.
Declaration
protected CountryTableInfo _countryTableInfo
Field Value
Type | Description |
---|---|
CountryTableInfo |
Remarks
AdditionalInfo = "[all]" returns all timezones
AdditionalInfo = "123" returns all active timezones and the specific location AdditionalInfo = "locationId=123" returns only the given location. /// AdditionalInfo = "countryFlag=true" returns an iconhint for the country's flag._forceFlatList
Provides the timezone list.
Declaration
protected bool _forceFlatList
Field Value
Type | Description |
---|---|
Boolean |
Remarks
AdditionalInfo = "[all]" returns all timezones
AdditionalInfo = "123" returns all active timezones and the specific location AdditionalInfo = "locationId=123" returns only the given location. /// AdditionalInfo = "countryFlag=true" returns an iconhint for the country's flag._homeItem
Provides the timezone list.
Declaration
protected SoListItem _homeItem
Field Value
Type | Description |
---|---|
SoListItem |
Remarks
AdditionalInfo = "[all]" returns all timezones
AdditionalInfo = "123" returns all active timezones and the specific location AdditionalInfo = "locationId=123" returns only the given location. /// AdditionalInfo = "countryFlag=true" returns an iconhint for the country's flag._searchValue
Provides the timezone list.
Declaration
protected string _searchValue
Field Value
Type | Description |
---|---|
String |
Remarks
AdditionalInfo = "[all]" returns all timezones
AdditionalInfo = "123" returns all active timezones and the specific location AdditionalInfo = "locationId=123" returns only the given location. /// AdditionalInfo = "countryFlag=true" returns an iconhint for the country's flag._TZDstRuleTableInfo
Provides the timezone list.
Declaration
protected TZDstRuleTableInfo _TZDstRuleTableInfo
Field Value
Type | Description |
---|---|
TZDstRuleTableInfo |
Remarks
AdditionalInfo = "[all]" returns all timezones
AdditionalInfo = "123" returns all active timezones and the specific location AdditionalInfo = "locationId=123" returns only the given location. /// AdditionalInfo = "countryFlag=true" returns an iconhint for the country's flag._TZLocationTableInfo
Provides the timezone list.
Declaration
protected TZLocationTableInfo _TZLocationTableInfo
Field Value
Type | Description |
---|---|
TZLocationTableInfo |
Remarks
AdditionalInfo = "[all]" returns all timezones
AdditionalInfo = "123" returns all active timezones and the specific location AdditionalInfo = "locationId=123" returns only the given location. /// AdditionalInfo = "countryFlag=true" returns an iconhint for the country's flag._TZStdRuleTableInfo
Provides the timezone list.
Declaration
protected TZStdRuleTableInfo _TZStdRuleTableInfo
Field Value
Type | Description |
---|---|
TZStdRuleTableInfo |
Remarks
AdditionalInfo = "[all]" returns all timezones
AdditionalInfo = "123" returns all active timezones and the specific location AdditionalInfo = "locationId=123" returns only the given location. /// AdditionalInfo = "countryFlag=true" returns an iconhint for the country's flag.ProviderName
Provides the timezone list.
Declaration
public const string ProviderName = "TimeZone"
Field Value
Type | Description |
---|---|
String |
Remarks
AdditionalInfo = "[all]" returns all timezones
AdditionalInfo = "123" returns all active timezones and the specific location AdditionalInfo = "locationId=123" returns only the given location. /// AdditionalInfo = "countryFlag=true" returns an iconhint for the country's flag.Methods
AddItems(Boolean)
Add all the items
Declaration
protected virtual void AddItems(bool onlyReadHistory)
Parameters
Type | Name | Description |
---|---|---|
Boolean | onlyReadHistory |
Remarks
AdditionalInfo = "[all]" returns all timezones
AdditionalInfo = "123" returns all active timezones and the specific location AdditionalInfo = "locationId=123" returns only the given location. /// AdditionalInfo = "countryFlag=true" returns an iconhint for the country's flag.BaseQuery()
Provides the timezone list.
Declaration
protected virtual Select BaseQuery()
Returns
Type | Description |
---|---|
Select |
Remarks
AdditionalInfo = "[all]" returns all timezones
AdditionalInfo = "123" returns all active timezones and the specific location AdditionalInfo = "locationId=123" returns only the given location. /// AdditionalInfo = "countryFlag=true" returns an iconhint for the country's flag.GenerateName(String, Double)
Generates a string in this format: Norway(GMT+01.00)
Declaration
public static string GenerateName(string name, double bias)
Parameters
Type | Name | Description |
---|---|---|
String | name | |
Double | bias |
Returns
Type | Description |
---|---|
String |
Remarks
AdditionalInfo = "[all]" returns all timezones
AdditionalInfo = "123" returns all active timezones and the specific location AdditionalInfo = "locationId=123" returns only the given location. /// AdditionalInfo = "countryFlag=true" returns an iconhint for the country's flag.GenerateOffsetString(Double, String)
Provides the timezone list.
Declaration
public static string GenerateOffsetString(double displayBias, string separator)
Parameters
Type | Name | Description |
---|---|---|
Double | displayBias | |
String | separator |
Returns
Type | Description |
---|---|
String |
Remarks
AdditionalInfo = "[all]" returns all timezones
AdditionalInfo = "123" returns all active timezones and the specific location AdditionalInfo = "locationId=123" returns only the given location. /// AdditionalInfo = "countryFlag=true" returns an iconhint for the country's flag.GetCountryHeader(String, SoListItem, out SoListHeading)
Provides the timezone list.
Declaration
protected bool GetCountryHeader(string countryName, SoListItem item, out SoListHeading heading)
Parameters
Type | Name | Description |
---|---|---|
String | countryName | Name og heading(country) |
SoListItem | item | ExtraInfo of this item decides which header to return |
SoListHeading | heading | Heading item returned |
Returns
Type | Description |
---|---|
Boolean | Returns true if a heading is created otherwise false |
Remarks
AdditionalInfo = "[all]" returns all timezones
AdditionalInfo = "123" returns all active timezones and the specific location AdditionalInfo = "locationId=123" returns only the given location. /// AdditionalInfo = "countryFlag=true" returns an iconhint for the country's flag.IsSameCountry(SoListItem, SoListItem)
Provides the timezone list.
Declaration
protected virtual bool IsSameCountry(SoListItem itemA, SoListItem itemB)
Parameters
Type | Name | Description |
---|---|---|
SoListItem | itemA | |
SoListItem | itemB |
Returns
Type | Description |
---|---|
Boolean |
Remarks
AdditionalInfo = "[all]" returns all timezones
AdditionalInfo = "123" returns all active timezones and the specific location AdditionalInfo = "locationId=123" returns only the given location. /// AdditionalInfo = "countryFlag=true" returns an iconhint for the country's flag.OnBaseTimeItemCreated(SoListItem)
Provides the timezone list.
Declaration
protected virtual void OnBaseTimeItemCreated(SoListItem baseTimeItem)
Parameters
Type | Name | Description |
---|---|---|
SoListItem | baseTimeItem |
Remarks
AdditionalInfo = "[all]" returns all timezones
AdditionalInfo = "123" returns all active timezones and the specific location AdditionalInfo = "locationId=123" returns only the given location. /// AdditionalInfo = "countryFlag=true" returns an iconhint for the country's flag.PopulateFromReader(List<ISoListItem>, SoDataReader, Boolean, Boolean, Boolean)
Provides the timezone list.
Declaration
protected virtual void PopulateFromReader(List<ISoListItem> items, SoDataReader reader, bool includeCountryName, bool isHistoryItem = false, bool useCodeAsType = false)
Parameters
Type | Name | Description |
---|---|---|
List<ISoListItem> | items | |
SoDataReader | reader | |
Boolean | includeCountryName | |
Boolean | isHistoryItem | |
Boolean | useCodeAsType |
Remarks
AdditionalInfo = "[all]" returns all timezones
AdditionalInfo = "123" returns all active timezones and the specific location AdditionalInfo = "locationId=123" returns only the given location. /// AdditionalInfo = "countryFlag=true" returns an iconhint for the country's flag.Explicit Interface Implementations
ISoList.HeadingItems
Provides the timezone list.
Declaration
List<ISoListHeading> ISoList.HeadingItems { get; }
Returns
Type | Description |
---|---|
List<ISoListHeading> |
Remarks
AdditionalInfo = "[all]" returns all timezones
AdditionalInfo = "123" returns all active timezones and the specific location AdditionalInfo = "locationId=123" returns only the given location. /// AdditionalInfo = "countryFlag=true" returns an iconhint for the country's flag.ISoList.HistoryItems
Provides the timezone list.
Declaration
List<ISoListItem> ISoList.HistoryItems { get; }
Returns
Type | Description |
---|---|
List<ISoListItem> |
Remarks
AdditionalInfo = "[all]" returns all timezones
AdditionalInfo = "123" returns all active timezones and the specific location AdditionalInfo = "locationId=123" returns only the given location. /// AdditionalInfo = "countryFlag=true" returns an iconhint for the country's flag.ISoList.RootItems
Provides the timezone list.
Declaration
List<ISoListItem> ISoList.RootItems { get; }
Returns
Type | Description |
---|---|
List<ISoListItem> |
Remarks
AdditionalInfo = "[all]" returns all timezones
AdditionalInfo = "123" returns all active timezones and the specific location AdditionalInfo = "locationId=123" returns only the given location. /// AdditionalInfo = "countryFlag=true" returns an iconhint for the country's flag.ISoListProvider.Construct(String, String, Int32[], Boolean, String, Boolean)
Provides the timezone list.
Declaration
void ISoListProvider.Construct(string listName, string additionalInfo, int[] historyIDs, bool onlyReadHistory, string searchValue, bool forceFlatList)
Parameters
Type | Name | Description |
---|---|---|
String | listName | |
String | additionalInfo | |
Int32[] | historyIDs | |
Boolean | onlyReadHistory | |
String | searchValue | |
Boolean | forceFlatList |
Remarks
AdditionalInfo = "[all]" returns all timezones
AdditionalInfo = "123" returns all active timezones and the specific location AdditionalInfo = "locationId=123" returns only the given location. /// AdditionalInfo = "countryFlag=true" returns an iconhint for the country's flag.ISoListProvider.HistoryInfo
Provides the timezone list.
Declaration
HistoryInfo ISoListProvider.HistoryInfo { get; }
Returns
Type | Description |
---|---|
HistoryInfo |
Remarks
AdditionalInfo = "[all]" returns all timezones
AdditionalInfo = "123" returns all active timezones and the specific location AdditionalInfo = "locationId=123" returns only the given location. /// AdditionalInfo = "countryFlag=true" returns an iconhint for the country's flag.