Class LookupSetExtensions
Extension methods for lookup sets
Inherited Members
Namespace: PayrollEngine.Client.Model
Assembly: PayrollEngine.Client.Core.dll
Syntax
public static class LookupSetExtensions
Remarks
Code duplicated in PayrollEngine.Domain.Model
Methods
ApplyRangeValue(ILookupSet, decimal, string)
Apply range value
Declaration
public static decimal ApplyRangeValue(this ILookupSet lookup, decimal rangeValue, string valueFieldName = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ILookupSet | lookup | The lookup |
| decimal | rangeValue | The range value |
| string | valueFieldName | Value field name |
Returns
| Type | Description |
|---|---|
| decimal | Lookup range value |
ApplyThresholdRangeValue(ILookupSet, decimal, string)
Apply progressive factor value
Declaration
public static decimal ApplyThresholdRangeValue(this ILookupSet lookup, decimal rangeValue, string valueFieldName = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ILookupSet | lookup | The lookup |
| decimal | rangeValue | The range value |
| string | valueFieldName | Value field name |
Returns
| Type | Description |
|---|---|
| decimal | Summary of all lookup ranges |
Remarks
The first lookup range value must be zero.