Class TupleExtensions
Tuple extension methods (internal usage)
Inherited Members
Namespace: PayrollEngine.Client.Scripting
Assembly: PayrollEngine.Client.Scripting.dll
Syntax
public static class TupleExtensions
Methods
View SourceTupleToCasePeriodValue(List<Tuple<DateTime, DateTime?, object>>, string)
Convert tuple values to a case value
Declaration
public static CasePayrollValue TupleToCasePeriodValue(this List<Tuple<DateTime, DateTime?, object>> values, string caseFieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| List<Tuple<DateTime, DateTime?, object>> | values | |
| string | caseFieldName | The case field name |
Returns
| Type | Description |
|---|---|
| CasePayrollValue | The case values |
TupleToCaseValue(Tuple<string, DateTime, Tuple<DateTime?, DateTime?>, object, DateTime?, List<string>, Dictionary<string, object>>)
Convert tuple values to case value
Declaration
public static CaseValue TupleToCaseValue(this Tuple<string, DateTime, Tuple<DateTime?, DateTime?>, object, DateTime?, List<string>, Dictionary<string, object>> value)
Parameters
| Type | Name | Description |
|---|---|---|
| Tuple<string, DateTime, Tuple<DateTime?, DateTime?>, object, DateTime?, List<string>, Dictionary<string, object>> | value | The tuple value |
Returns
| Type | Description |
|---|---|
| CaseValue | The case period values |
TupleToCaseValues(List<Tuple<string, DateTime, Tuple<DateTime?, DateTime?>, object, DateTime?, List<string>, Dictionary<string, object>>>)
Convert tuple values to case values
Declaration
public static List<CaseValue> TupleToCaseValues(this List<Tuple<string, DateTime, Tuple<DateTime?, DateTime?>, object, DateTime?, List<string>, Dictionary<string, object>>> values)
Parameters
| Type | Name | Description |
|---|---|---|
| List<Tuple<string, DateTime, Tuple<DateTime?, DateTime?>, object, DateTime?, List<string>, Dictionary<string, object>>> | values | The tuple values |
Returns
| Type | Description |
|---|---|
| List<CaseValue> | The case period values |
TupleToCaseValuesDictionary(Dictionary<string, List<Tuple<DateTime, DateTime?, DateTime?, object>>>)
Convert tuple values to a case value dictionary
Declaration
public static CasePayrollValueDictionary TupleToCaseValuesDictionary(this Dictionary<string, List<Tuple<DateTime, DateTime?, DateTime?, object>>> values)
Parameters
| Type | Name | Description |
|---|---|---|
| Dictionary<string, List<Tuple<DateTime, DateTime?, DateTime?, object>>> | values | The values |
Returns
| Type | Description |
|---|---|
| CasePayrollValueDictionary | The case values grouped by case field name |
TupleToCollectorCustomResults(List<Tuple<string, string, Tuple<DateTime, DateTime>, decimal, List<string>, Dictionary<string, object>>>)
Convert tuple values to a collector custom result
Declaration
public static List<CollectorCustomResult> TupleToCollectorCustomResults(this List<Tuple<string, string, Tuple<DateTime, DateTime>, decimal, List<string>, Dictionary<string, object>>> values)
Parameters
| Type | Name | Description |
|---|---|---|
| List<Tuple<string, string, Tuple<DateTime, DateTime>, decimal, List<string>, Dictionary<string, object>>> | values | The tuple values |
Returns
| Type | Description |
|---|---|
| List<CollectorCustomResult> | The collector custom results |
TupleToCollectorResults(List<Tuple<string, Tuple<DateTime, DateTime>, decimal, List<string>, Dictionary<string, object>>>)
Convert tuple values to a collector result
Declaration
public static List<CollectorResult> TupleToCollectorResults(this List<Tuple<string, Tuple<DateTime, DateTime>, decimal, List<string>, Dictionary<string, object>>> values)
Parameters
| Type | Name | Description |
|---|---|---|
| List<Tuple<string, Tuple<DateTime, DateTime>, decimal, List<string>, Dictionary<string, object>>> | values | The tuple values |
Returns
| Type | Description |
|---|---|
| List<CollectorResult> | The collector results |
TupleToLookupRangeBracketList(List<Tuple<string, string, decimal, decimal, decimal?>>)
Convert tuple values to a wage type custom result
Declaration
public static List<LookupRangeBracket> TupleToLookupRangeBracketList(List<Tuple<string, string, decimal, decimal, decimal?>> brackets)
Parameters
| Type | Name | Description |
|---|---|---|
| List<Tuple<string, string, decimal, decimal, decimal?>> | brackets | The lookup brackets |
Returns
| Type | Description |
|---|---|
| List<LookupRangeBracket> | The lookup brackets |
TupleToPeriodValues(List<Tuple<DateTime, DateTime?, object>>)
Convert tuple values to case period values
Declaration
public static List<PeriodValue> TupleToPeriodValues(this List<Tuple<DateTime, DateTime?, object>> values)
Parameters
| Type | Name | Description |
|---|---|---|
| List<Tuple<DateTime, DateTime?, object>> | values |
Returns
| Type | Description |
|---|---|
| List<PeriodValue> | The period values |
TupleToWageTypeCustomResults(List<Tuple<decimal, string, string, Tuple<DateTime, DateTime>, decimal, List<string>, Dictionary<string, object>>>)
Convert tuple values to a wage type custom result
Declaration
public static List<WageTypeCustomResult> TupleToWageTypeCustomResults(this List<Tuple<decimal, string, string, Tuple<DateTime, DateTime>, decimal, List<string>, Dictionary<string, object>>> values)
Parameters
| Type | Name | Description |
|---|---|---|
| List<Tuple<decimal, string, string, Tuple<DateTime, DateTime>, decimal, List<string>, Dictionary<string, object>>> | values | The tuple values |
Returns
| Type | Description |
|---|---|
| List<WageTypeCustomResult> | The wage type custom results |
TupleToWageTypeResults(List<Tuple<decimal, string, Tuple<DateTime, DateTime>, decimal, List<string>, Dictionary<string, object>>>)
Convert tuple values to a wage type result
Declaration
public static List<WageTypeResult> TupleToWageTypeResults(this List<Tuple<decimal, string, Tuple<DateTime, DateTime>, decimal, List<string>, Dictionary<string, object>>> values)
Parameters
| Type | Name | Description |
|---|---|---|
| List<Tuple<decimal, string, Tuple<DateTime, DateTime>, decimal, List<string>, Dictionary<string, object>>> | values | The tuple values |
Returns
| Type | Description |
|---|---|
| List<WageTypeResult> | The wage type results |