Class SaleProbability
MDO list provider for the probability list of the Sale dialog. This list extends the basic ProbRow list with a leading 'lost' and a trailing 'sold' item, and specialized icons. It also adds the probability as part of the text, and again in the extraInfo field.
Inherited Members
Namespace: SuperOffice.CRM.Lists
Assembly: SoDataBase.BusinessLogic.dll
Syntax
[MDOProviderPlugin("SaleProbability")]
public class SaleProbability : ListWithLiteralItemsBase, ISoListProvider, ISoList
Constructors
SaleProbability()
MDO list provider for the probability list of the Sale dialog. This list extends the basic ProbRow list with a leading 'lost' and a trailing 'sold' item, and specialized icons. It also adds the probability as part of the text, and again in the extraInfo field.
Declaration
public SaleProbability()
Methods
GetInnerListProviderName(string)
Return the name of the actual base list
Declaration
protected override string GetInnerListProviderName(string outerListname)
Parameters
| Type | Name | Description |
|---|---|---|
| string | outerListname | Outer list name, must be 'SaleProbability' |
Returns
| Type | Description |
|---|---|
| string | 'Prob' |
Overrides
Exceptions
| Type | Condition |
|---|---|
| SoException | Thrown if the outer list name is not 'SaleProbability' |
GetLeadingRootItemsAsync(List<ISoListItem>, CancellationToken)
Add the leading 'lost' item
Declaration
protected override Task GetLeadingRootItemsAsync(List<ISoListItem> leadingItems, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| List<ISoListItem> | leadingItems | Leading items list to fill |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
GetTrailingRootItems(List<ISoListItem>)
Add the trailing 'sold' item
Declaration
protected override void GetTrailingRootItems(List<ISoListItem> trailingItems)
Parameters
| Type | Name | Description |
|---|---|---|
| List<ISoListItem> | trailingItems | Trailing items list to fill |
Overrides
ProcessHistoryItemAsync(ISoListItem, CancellationToken)
Add the proper icon hint, and the probability data, to each history item
Declaration
protected override Task ProcessHistoryItemAsync(ISoListItem item, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ISoListItem | item | Item to modify |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
ProcessItem(ISoListItem)
Add the proper icon hint, and the probability data, to each item
Declaration
protected override void ProcessItem(ISoListItem item)
Parameters
| Type | Name | Description |
|---|---|---|
| ISoListItem | item | Item to modify |