Class CasePayrollValue
Payroll value for a date period
Inheritance
CasePayrollValue
Assembly: PayrollEngine.Client.Scripting.dll
Syntax
public class CasePayrollValue : PayrollValue, IEnumerable<PeriodValue>, IEnumerable
Constructors
View Source
CasePayrollValue(string)
Declaration
public CasePayrollValue(string caseFieldName)
Parameters
| Type |
Name |
Description |
| string |
caseFieldName |
Name of the case field
|
View Source
CasePayrollValue(string, IEnumerable<PeriodValue>)
Declaration
public CasePayrollValue(string caseFieldName, IEnumerable<PeriodValue> periodValues)
Parameters
Properties
View Source
CaseFieldName
Declaration
public string CaseFieldName { get; }
Property Value
View Source
CurrentValue
Declaration
protected override object CurrentValue { get; }
Property Value
Overrides
View Source
HasPeriods
Declaration
[JsonIgnore]
public bool HasPeriods { get; }
Property Value
View Source
HasValue
Test if the payroll value is defined
Declaration
[JsonIgnore]
public override bool HasValue { get; }
Property Value
Overrides
View Source
PeriodValues
Declaration
public ReadOnlyCollection<PeriodValue> PeriodValues { get; }
Property Value
Methods
View Source
GetEnumerator()
Returns an enumerator that iterates through the collection
Declaration
public IEnumerator<PeriodValue> GetEnumerator()
Returns
View Source
ToKey()
Declaration
Returns
| Type |
Description |
| Key |
Case value key
|
View Source
ToString()
Returns a string that represents this instance
Declaration
public override string ToString()
Returns
| Type |
Description |
| string |
A string that represents this instance
|
Overrides
View Source
TotalValue()
Total payroll value, summary of period values
Declaration
public PayrollValue TotalValue()
Returns
Operators
View Source
operator +(CasePayrollValue, CasePayrollValue)
Addition of two case values
Declaration
public static PayrollValue operator +(CasePayrollValue left, CasePayrollValue right)
Parameters
Returns
View Source
operator +(CasePayrollValue, PayrollValue)
Addition of a case value with a payroll value
Declaration
public static PayrollValue operator +(CasePayrollValue left, PayrollValue right)
Parameters
Returns
View Source
operator +(CasePayrollValue, PeriodValue)
Addition of a case value with a period value
Declaration
public static PayrollValue operator +(CasePayrollValue left, PeriodValue right)
Parameters
Returns
View Source
operator /(CasePayrollValue, CasePayrollValue)
Division of two case values
Declaration
public static PayrollValue operator /(CasePayrollValue left, CasePayrollValue right)
Parameters
Returns
View Source
operator /(CasePayrollValue, PayrollValue)
Division of a case value with a payroll value
Declaration
public static PayrollValue operator /(CasePayrollValue left, PayrollValue right)
Parameters
Returns
View Source
operator /(CasePayrollValue, PeriodValue)
Division of a case value with a period value
Declaration
public static PayrollValue operator /(CasePayrollValue left, PeriodValue right)
Parameters
Returns
View Source
implicit operator DateTime(CasePayrollValue)
Convert case value to DateTime
Declaration
public static implicit operator DateTime(CasePayrollValue payrollValue)
Parameters
Returns
View Source
implicit operator decimal(CasePayrollValue)
Convert case value to decimal
Declaration
public static implicit operator decimal(CasePayrollValue payrollValue)
Parameters
Returns
View Source
implicit operator int(CasePayrollValue)
Convert case value to int/>
Declaration
public static implicit operator int(CasePayrollValue payrollValue)
Parameters
Returns
View Source
implicit operator DateTime?(CasePayrollValue)
Convert case value to nullable DateTime
Declaration
public static implicit operator DateTime?(CasePayrollValue payrollValue)
Parameters
Returns
View Source
implicit operator decimal?(CasePayrollValue)
Convert case value to nullable decimal
Declaration
public static implicit operator decimal?(CasePayrollValue payrollValue)
Parameters
Returns
View Source
implicit operator int?(CasePayrollValue)
Convert case value to nullable int
Declaration
public static implicit operator int?(CasePayrollValue payrollValue)
Parameters
Returns
View Source
implicit operator string(CasePayrollValue)
Convert case value to string/>
Declaration
public static implicit operator string(CasePayrollValue payrollValue)
Parameters
Returns
View Source
operator %(CasePayrollValue, CasePayrollValue)
Remainder of two case values
Declaration
public static PayrollValue operator %(CasePayrollValue left, CasePayrollValue right)
Parameters
Returns
View Source
operator %(CasePayrollValue, PayrollValue)
Remainder of a case value with a payroll value
Declaration
public static PayrollValue operator %(CasePayrollValue left, PayrollValue right)
Parameters
Returns
View Source
operator %(CasePayrollValue, PeriodValue)
Remainder of a case value with a period value
Declaration
public static PayrollValue operator %(CasePayrollValue left, PeriodValue right)
Parameters
Returns
View Source
operator *(CasePayrollValue, CasePayrollValue)
Multiplication of two case values
Declaration
public static PayrollValue operator *(CasePayrollValue left, CasePayrollValue right)
Parameters
Returns
View Source
operator *(CasePayrollValue, PayrollValue)
Multiplication of a case value with a payroll value
Declaration
public static PayrollValue operator *(CasePayrollValue left, PayrollValue right)
Parameters
Returns
View Source
operator *(CasePayrollValue, PeriodValue)
Multiplication of a case value with a period value
Declaration
public static PayrollValue operator *(CasePayrollValue left, PeriodValue right)
Parameters
Returns
View Source
operator -(CasePayrollValue, CasePayrollValue)
Subtraction of two case values
Declaration
public static PayrollValue operator -(CasePayrollValue left, CasePayrollValue right)
Parameters
Returns
View Source
operator -(CasePayrollValue, PayrollValue)
Subtraction of a case value with a payroll value
Declaration
public static PayrollValue operator -(CasePayrollValue left, PayrollValue right)
Parameters
Returns
View Source
operator -(CasePayrollValue, PeriodValue)
Subtraction of a case value with a period value
Declaration
public static PayrollValue operator -(CasePayrollValue left, PeriodValue right)
Parameters
Returns
Implements
Extension Methods