Class WeightedAmountAggregation
Calculate a weighted amount, accepting a first numeric parameter, and currently the second parameter needs to be a string with a percentage amount (between 0 and 100), for instance sale probPercent. Any percentage character is stripped from the input string.
Inherited Members
Namespace: SuperOffice.CRM.ArchiveLists.Aggregation
Assembly: SoDataBase.dll
Syntax
[AggregationPlugin("Weighted")]
public class WeightedAmountAggregation : AggregationPluginBase, IAggregationScalarPlugin, IAggregationPlugin, IPlugin
Constructors
WeightedAmountAggregation()
Calculate a weighted amount, accepting a first numeric parameter, and currently the second parameter needs to be a string with a percentage amount (between 0 and 100), for instance sale probPercent. Any percentage character is stripped from the input string.
Declaration
public WeightedAmountAggregation()
Fields
_lastItem
Calculate a weighted amount, accepting a first numeric parameter, and currently the second parameter needs to be a string with a percentage amount (between 0 and 100), for instance sale probPercent. Any percentage character is stripped from the input string.
Declaration
public ArchiveColumnData _lastItem
Field Value
Type | Description |
---|---|
ArchiveColumnData |
PluginName
Calculate a weighted amount, accepting a first numeric parameter, and currently the second parameter needs to be a string with a percentage amount (between 0 and 100), for instance sale probPercent. Any percentage character is stripped from the input string.
Declaration
public const string PluginName = "Weighted"
Field Value
Type | Description |
---|---|
String |
Methods
AddItem(ArchiveColumnData)
Calculate a weighted amount, accepting a first numeric parameter, and currently the second parameter needs to be a string with a percentage amount (between 0 and 100), for instance sale probPercent. Any percentage character is stripped from the input string.
Declaration
public override ArchiveColumnData AddItem(ArchiveColumnData item)
Parameters
Type | Name | Description |
---|---|---|
ArchiveColumnData | item |
Returns
Type | Description |
---|---|
ArchiveColumnData |
Overrides
AddItem(ArchiveColumnData[])
Calculate a weighted amount, accepting a first numeric parameter, and currently the second parameter needs to be a string with a percentage amount (between 0 and 100), for instance sale probPercent. Any percentage character is stripped from the input string.
Declaration
public override ArchiveColumnData AddItem(ArchiveColumnData[] items)
Parameters
Type | Name | Description |
---|---|---|
ArchiveColumnData[] | items |
Returns
Type | Description |
---|---|
ArchiveColumnData |
Overrides
GetAggregatedValue()
Calculate a weighted amount, accepting a first numeric parameter, and currently the second parameter needs to be a string with a percentage amount (between 0 and 100), for instance sale probPercent. Any percentage character is stripped from the input string.
Declaration
public override ArchiveColumnData GetAggregatedValue()
Returns
Type | Description |
---|---|
ArchiveColumnData |
Overrides
ToString()
Calculate a weighted amount, accepting a first numeric parameter, and currently the second parameter needs to be a string with a percentage amount (between 0 and 100), for instance sale probPercent. Any percentage character is stripped from the input string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |