Show / Hide Table of Contents

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.

Inheritance
object
AggregationPluginBase
WeightedAmountAggregation
Implements
IAggregationScalarPlugin
IAggregationPlugin
Inherited Members
AggregationPluginBase.HasModifier(string)
AggregationPluginBase.FirstModifier()
AggregationPluginBase.SetModifiers(string[])
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.ArchiveLists.Aggregation
Assembly: SoDataBase.BusinessLogic.dll
Syntax
[AggregationPlugin("Weighted")]
public class WeightedAmountAggregation : AggregationPluginBase, IAggregationScalarPlugin, IAggregationPlugin

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

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

_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

Methods

AddItem(ArchiveColumnData)

Accept one item, and return its replacement (output in the detail row)

Declaration
public override ArchiveColumnData AddItem(ArchiveColumnData item)
Parameters
Type Name Description
ArchiveColumnData item
Returns
Type Description
ArchiveColumnData

This value will be output in the current detail row. It can be the incoming item unchaged, a transformation of it, or the current (running) value of the aggregate - it all depends on the precise function the aggregator

Overrides
AggregationPluginBase.AddItem(ArchiveColumnData)

AddItem(ArchiveColumnData[])

Accept an array of items, and return one field

Declaration
public override ArchiveColumnData AddItem(ArchiveColumnData[] items)
Parameters
Type Name Description
ArchiveColumnData[] items
Returns
Type Description
ArchiveColumnData

This value will be output in the current detail row. It can be one of the the incoming items unchanged, a transformation of them, or the current (running) value of the aggregate - it all depends on the precise function the aggregator

Overrides
AggregationPluginBase.AddItem(ArchiveColumnData[])

GetAggregatedValue()

Return the aggregate value (output in the footer)

Declaration
public override ArchiveColumnData GetAggregatedValue()
Returns
Type Description
ArchiveColumnData
Overrides
AggregationPluginBase.GetAggregatedValue()

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
Overrides
object.ToString()

Implements

IAggregationScalarPlugin
IAggregationPlugin

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