Show / Hide Table of Contents

Class PeriodValue

Payroll value for a date period

Inheritance
object
PayrollValue
PeriodValue
Inherited Members
PayrollValue.Empty
PayrollValue.Round(int, MidpointRounding)
PayrollValue.RoundUp(decimal)
PayrollValue.RoundDown(decimal)
PayrollValue.Truncate(int)
PayrollValue.Equals(object)
PayrollValue.GetHashCode()
PayrollValue.Value
PayrollValue.CurrentValue
PayrollValue.HasValue
PayrollValue.IsNumeric
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: PayrollEngine.Client.Scripting
Assembly: PayrollEngine.Client.Scripting.dll
Syntax
public class PeriodValue : PayrollValue

Constructors

View Source

PeriodValue()

New period payroll value instance

Declaration
protected PeriodValue()
View Source

PeriodValue(DatePeriod, object)

New period payroll value instance

Declaration
public PeriodValue(DatePeriod period, object value)
Parameters
Type Name Description
DatePeriod period
object value
View Source

PeriodValue(DateTime?, DateTime?, object)

New period payroll value instance

Declaration
public PeriodValue(DateTime? start, DateTime? end, object value)
Parameters
Type Name Description
DateTime? start
DateTime? end
object value
Remarks

Fixed: Period is always set, including open-ended periods (null end → Date.MaxValue).

Properties

View Source

End

The period end

Declaration
public DateTime? End { get; }
Property Value
Type Description
DateTime?
View Source

Period

The period

Declaration
public DatePeriod Period { get; }
Property Value
Type Description
DatePeriod
View Source

Start

The period start

Declaration
public DateTime? Start { get; }
Property Value
Type Description
DateTime?

Methods

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

Operators

View Source

implicit operator DateTime(PeriodValue)

Convert case value to DateTime

Declaration
public static implicit operator DateTime(PeriodValue value)
Parameters
Type Name Description
PeriodValue value
Returns
Type Description
DateTime
View Source

implicit operator decimal(PeriodValue)

Convert case value to decimal

Declaration
public static implicit operator decimal(PeriodValue value)
Parameters
Type Name Description
PeriodValue value
Returns
Type Description
decimal
View Source

implicit operator int(PeriodValue)

Convert case value to int/>

Declaration
public static implicit operator int(PeriodValue value)
Parameters
Type Name Description
PeriodValue value
Returns
Type Description
int
View Source

implicit operator DateTime?(PeriodValue)

Convert case value to nullable DateTime

Declaration
public static implicit operator DateTime?(PeriodValue value)
Parameters
Type Name Description
PeriodValue value
Returns
Type Description
DateTime?
View Source

implicit operator decimal?(PeriodValue)

Convert case value to nullable decimal

Declaration
public static implicit operator decimal?(PeriodValue value)
Parameters
Type Name Description
PeriodValue value
Returns
Type Description
decimal?
View Source

implicit operator int?(PeriodValue)

Convert case value to nullable int

Declaration
public static implicit operator int?(PeriodValue value)
Parameters
Type Name Description
PeriodValue value
Returns
Type Description
int?
View Source

implicit operator string(PeriodValue)

Convert case value to string/>

Declaration
public static implicit operator string(PeriodValue value)
Parameters
Type Name Description
PeriodValue value
Returns
Type Description
string

Extension Methods

PayrollValueExtensions.Convert(PayrollValue, Type, object)
PayrollValueExtensions.ToBoolean(PayrollValue)
PayrollValueExtensions.ToDateTime(PayrollValue)
PayrollValueExtensions.ToDecimal(PayrollValue)
PayrollValueExtensions.ToDecimal(PayrollValue, DecimalRounding)
PayrollValueExtensions.ToInt(PayrollValue)
PayrollValueExtensions.ToNullableBoolean(PayrollValue)
PayrollValueExtensions.ToNullableDateTime(PayrollValue)
PayrollValueExtensions.ToNullableDecimal(PayrollValue)
PayrollValueExtensions.ToNullableDecimal(PayrollValue, DecimalRounding)
PayrollValueExtensions.ToNullableInt(PayrollValue)
PayrollValueExtensions.ToString(PayrollValue)
PayrollValueExtensions.ValueAs<T>(PayrollValue, T)
PeriodValueExtensions.ToDateTime(PeriodValue)
PeriodValueExtensions.ToDecimal(PeriodValue)
PeriodValueExtensions.ToDecimal(PeriodValue, DecimalRounding)
PeriodValueExtensions.ToInt(PeriodValue)
PeriodValueExtensions.ToNullableDateTime(PeriodValue)
PeriodValueExtensions.ToNullableDecimal(PeriodValue)
PeriodValueExtensions.ToNullableDecimal(PeriodValue, DecimalRounding)
PeriodValueExtensions.ToNullableInt(PeriodValue)
PeriodValueExtensions.ToString(PeriodValue)
PeriodValueExtensions.ValueAs(PeriodValue, Type)
PeriodValueExtensions.ValueAs<T>(PeriodValue, T)
ConsoleExtensions.WriteProperties(object, bool)
ValueTypeExtensions.GetValueType(object)
ObjectInfo.GetPropertyValue(object, string)
ObjectInfo.GetPropertyValue<T>(object, string, T)
ObjectInfo.ResolvePropertyValue(object, string)
ObjectInfo.SetPropertyValue(object, string, object)
  • View Source
☀
☾
Back to top Generated by DocFX