Show / Hide Table of Contents

Class StatusDefProvider

Return list of status monitors defined in the system. Additional info query parameter = "Contact" or "project".

Inheritance
Object
AnyTableListProviderBase
StatusDefProvider
Implements
ISoListProvider
ISoList
Inherited Members
AnyTableListProviderBase.Construct(String, String, Int32[], Boolean, String, Boolean)
AnyTableListProviderBase.GetRootItems()
AnyTableListProviderBase.OnPreGetRootItems(List<ISoListItem>)
AnyTableListProviderBase.OnPostGetRootItems(List<ISoListItem>)
AnyTableListProviderBase.SetHistoryRestriction(Select)
AnyTableListProviderBase.ExecuteQuery(Select, List<ISoListItem>)
AnyTableListProviderBase.ExecuteReader(SoCommand)
AnyTableListProviderBase.ListName
AnyTableListProviderBase.AdditionalInfo
AnyTableListProviderBase.HistoryIDs
AnyTableListProviderBase.OnlyReadHistory
AnyTableListProviderBase.ExcludeHistory
AnyTableListProviderBase.SearchValue
AnyTableListProviderBase.ForceFlatList
AnyTableListProviderBase.HistoryItems
AnyTableListProviderBase.RootItems
AnyTableListProviderBase.HeadingItems
Namespace: SuperOffice.CRM.Lists
Assembly: SoDataBase.dll
Syntax
[MDOProviderPlugin("StatusDef")]
[MDOAdditionalInfoSeparator("&")]
[MDOAdditionalInfo("GetDeletedStatusDefs", "Include deleted records", true)]
[MDOAdditionalInfo("GetOwnerTable", "Name of owner table", "Project")]
public class StatusDefProvider : AnyTableListProviderBase, ISoListProvider, ISoList, IPlugin
Examples

Example of AdditionalInfo:

    GetOwnerTable=project&GetDeletedStatusDefs=true

Constructors

StatusDefProvider()

Return list of status monitors defined in the system. Additional info query parameter = "Contact" or "project".

Declaration
public StatusDefProvider()
Examples

Example of AdditionalInfo:

    GetOwnerTable=project&GetDeletedStatusDefs=true

Fields

ProviderName

Provider name

Declaration
public const string ProviderName = "StatusDef"
Field Value
Type Description
String
Examples

Example of AdditionalInfo:

    GetOwnerTable=project&GetDeletedStatusDefs=true

Properties

HistoryInfo

Return list of status monitors defined in the system. Additional info query parameter = "Contact" or "project".

Declaration
public override HistoryInfo HistoryInfo { get; }
Property Value
Type Description
HistoryInfo
Overrides
AnyTableListProviderBase.HistoryInfo
Examples

Example of AdditionalInfo:

    GetOwnerTable=project&GetDeletedStatusDefs=true

TableInfo

Main table info used in the selection query.
This table info is used for getting history items.

Declaration
protected override TableInfo TableInfo { get; }
Property Value
Type Description
TableInfo
Overrides
AnyTableListProviderBase.TableInfo
Examples

Example of AdditionalInfo:

    GetOwnerTable=project&GetDeletedStatusDefs=true

Methods

GetHistoryItems()

No history on this table

Declaration
protected override List<ISoListItem> GetHistoryItems()
Returns
Type Description
List<ISoListItem>
Overrides
AnyTableListProviderBase.GetHistoryItems()
Examples

Example of AdditionalInfo:

    GetOwnerTable=project&GetDeletedStatusDefs=true

GetMainQuery()

Obtain the main query for the selection

Declaration
protected override Select GetMainQuery()
Returns
Type Description
Select

Main query for the selection.

Overrides
AnyTableListProviderBase.GetMainQuery()
Examples

Example of AdditionalInfo:

    GetOwnerTable=project&GetDeletedStatusDefs=true

Init()

Return list of status monitors defined in the system. Additional info query parameter = "Contact" or "project".

Declaration
protected override void Init()
Overrides
AnyTableListProviderBase.Init()
Examples

Example of AdditionalInfo:

    GetOwnerTable=project&GetDeletedStatusDefs=true

OnRead(SoDataReader, Int16)

Handle reading of each item in the selection list

Declaration
protected override ISoListItem OnRead(SoDataReader reader, short lastRank)
Parameters
Type Name Description
SoDataReader reader

Reader exposing data read from the database.

Int16 lastRank

Last rank used when populating the list.

Returns
Type Description
ISoListItem

List item objects

Overrides
AnyTableListProviderBase.OnRead(SoDataReader, Int16)
Examples

Example of AdditionalInfo:

    GetOwnerTable=project&GetDeletedStatusDefs=true

SetSearchRestriction(Select, String)

Set search restriction on the selection.

Declaration
protected override void SetSearchRestriction(Select sql, string searchValue)
Parameters
Type Name Description
Select sql

Sql to modify

String searchValue

value of the search restriction.

Overrides
AnyTableListProviderBase.SetSearchRestriction(Select, String)
Examples

Example of AdditionalInfo:

    GetOwnerTable=project&GetDeletedStatusDefs=true

Implements

ISoListProvider
ISoList

Extension Methods

EnumUtil.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top