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