Class StatusDefProvider
Return list of status monitors defined in the system. Additional info query parameter = "Contact" or "project".
Inherited Members
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
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 |
Properties
HistoryInfo
History information for the supported list
Declaration
public override HistoryInfo HistoryInfo { get; }
Property Value
Type | Description |
---|---|
HistoryInfo |
Overrides
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
Methods
GetHistoryItems()
No history on this table
Declaration
protected override List<ISoListItem> GetHistoryItems()
Returns
Type | Description |
---|---|
List<ISoListItem> |
Overrides
GetMainQuery()
Obtain the main query for the selection
Declaration
protected override Select GetMainQuery()
Returns
Type | Description |
---|---|
Select | Main query for the selection. |
Overrides
Init()
Initiate the provider after the Construct(string, string, int[], bool, string, bool) method is called.
Declaration
protected override void Init()
Overrides
OnRead(SoDataReader, short)
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. |
short | lastRank | Last rank used when populating the list. |
Returns
Type | Description |
---|---|
ISoListItem | List item objects |
Overrides
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. |