Show / Hide Table of Contents

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.

Inheritance
object
ListWithLiteralItemsBase
SaleProbability
Implements
ISoListProvider
ISoList
Inherited Members
ListWithLiteralItemsBase.GetInnerListAdditionalInfo(string)
ListWithLiteralItemsBase.ConstructAsync(string, string, int[], bool, string, bool, CancellationToken)
ListWithLiteralItemsBase.FilterBySearchValue(IEnumerable<ISoListItem>)
ListWithLiteralItemsBase.GetAllItemsAsync(CancellationToken)
ListWithLiteralItemsBase.GetHistoryItemsAsync(CancellationToken)
ListWithLiteralItemsBase.ClearHistoryItems()
ListWithLiteralItemsBase.GetRootItemsAsync(CancellationToken)
ListWithLiteralItemsBase.GetHeadingItemsAsync(CancellationToken)
ListWithLiteralItemsBase.InnerList
ListWithLiteralItemsBase.HistoryInfo
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
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
ListWithLiteralItemsBase.GetInnerListProviderName(string)
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
ListWithLiteralItemsBase.GetLeadingRootItemsAsync(List<ISoListItem>, CancellationToken)

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
ListWithLiteralItemsBase.GetTrailingRootItems(List<ISoListItem>)

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
ListWithLiteralItemsBase.ProcessHistoryItemAsync(ISoListItem, CancellationToken)

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

Overrides
ListWithLiteralItemsBase.ProcessItem(ISoListItem)

Implements

ISoListProvider
ISoList

Extension Methods

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