Show / Hide Table of Contents

Class Calendar

The payroll calendar client object

Inheritance
object
ModelBase
Calendar
Implements
ICalendar
IModel
IAttributeObject
IKeyEquatable<ICalendar>
IEquatable<ICalendar>
INameObject
Inherited Members
ModelBase.ToString()
ModelBase.Id
ModelBase.IsExistingObject
ModelBase.IsNewObject
ModelBase.Status
ModelBase.Created
ModelBase.Updated
ModelBase.UpdateMode
object.GetType()
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: PayrollEngine.Client.Model
Assembly: PayrollEngine.Client.Core.dll
Syntax
public class Calendar : ModelBase, ICalendar, IModel, IAttributeObject, IKeyEquatable<ICalendar>, IEquatable<ICalendar>, INameObject

Constructors

Calendar()

Initializes a new instance

Declaration
public Calendar()

Calendar(Calendar)

Initializes a new instance from a copy

Declaration
public Calendar(Calendar copySource)
Parameters
Type Name Description
Calendar copySource

The copy source

Properties

Attributes

Declaration
[JsonPropertyOrder(117)]
public Dictionary<string, object> Attributes { get; set; }
Property Value
Type Description
Dictionary<string, object>

CycleTimeUnit

The cycle time unit (default: year)

Declaration
[Required]
[JsonPropertyOrder(102)]
public CalendarTimeUnit CycleTimeUnit { get; set; }
Property Value
Type Description
CalendarTimeUnit

FirstDayOfWeek

Override the calendar first day of week

Declaration
[JsonPropertyOrder(108)]
public DayOfWeek? FirstDayOfWeek { get; set; }
Property Value
Type Description
DayOfWeek?

FirstMonthOfYear

The first month of a year (default: january)

Declaration
[JsonPropertyOrder(105)]
public Month? FirstMonthOfYear { get; set; }
Property Value
Type Description
Month?

Name

The calendar name

Declaration
[Required]
[StringLength(128)]
[JsonPropertyOrder(100)]
public string Name { get; set; }
Property Value
Type Description
string

NameLocalizations

The localized calendar names

Declaration
[JsonPropertyOrder(101)]
public Dictionary<string, string> NameLocalizations { get; set; }
Property Value
Type Description
Dictionary<string, string>

PeriodDayCount

Override the effective period day count

Declaration
[JsonPropertyOrder(106)]
public decimal? PeriodDayCount { get; set; }
Property Value
Type Description
decimal?

PeriodTimeUnit

The period time unit (default: calendar month)

Declaration
[Required]
[JsonPropertyOrder(103)]
public CalendarTimeUnit PeriodTimeUnit { get; set; }
Property Value
Type Description
CalendarTimeUnit

TimeMap

The time map (default: period)

Declaration
[JsonPropertyOrder(104)]
public CalendarTimeMap TimeMap { get; set; }
Property Value
Type Description
CalendarTimeMap

WeekMode

The week mode (default: week)

Declaration
[JsonPropertyOrder(109)]
public CalendarWeekMode WeekMode { get; set; }
Property Value
Type Description
CalendarWeekMode

WorkFriday

Work on friday (default: true), used by WorkWeek

Declaration
[JsonPropertyOrder(114)]
public bool WorkFriday { get; set; }
Property Value
Type Description
bool

WorkMonday

Work on monday (default: true), used by WorkWeek

Declaration
[JsonPropertyOrder(110)]
public bool WorkMonday { get; set; }
Property Value
Type Description
bool

WorkSaturday

Work on saturday (default: false), used by WorkWeek

Declaration
[JsonPropertyOrder(115)]
public bool WorkSaturday { get; set; }
Property Value
Type Description
bool

WorkSunday

Work on sunday (default: false), used by WorkWeek

Declaration
[JsonPropertyOrder(116)]
public bool WorkSunday { get; set; }
Property Value
Type Description
bool

WorkThursday

Work on thursday (default: true), used by WorkWeek

Declaration
[JsonPropertyOrder(113)]
public bool WorkThursday { get; set; }
Property Value
Type Description
bool

WorkTuesday

Work on tuesday (default: true), used by WorkWeek

Declaration
[JsonPropertyOrder(111)]
public bool WorkTuesday { get; set; }
Property Value
Type Description
bool

WorkWednesday

Work on wednesday (default: true), used by WorkWeek

Declaration
[JsonPropertyOrder(112)]
public bool WorkWednesday { get; set; }
Property Value
Type Description
bool

YearWeekRule

Override the calendar year start week rule

Declaration
[JsonPropertyOrder(107)]
public CalendarWeekRule? YearWeekRule { get; set; }
Property Value
Type Description
CalendarWeekRule?

Methods

EqualKey(ICalendar)

Test for the same item key

Declaration
public virtual bool EqualKey(ICalendar compare)
Parameters
Type Name Description
ICalendar compare
Returns
Type Description
bool

Equals(ICalendar)

Declaration
public virtual bool Equals(ICalendar compare)
Parameters
Type Name Description
ICalendar compare
Returns
Type Description
bool

GetUiString()

The object UI string

Declaration
public override string GetUiString()
Returns
Type Description
string
Overrides
ModelBase.GetUiString()

Implements

ICalendar
IModel
IAttributeObject
IKeyEquatable<T>
IEquatable<T>
INameObject

Extension Methods

CalendarExtensions.GetWeekOfYear(Calendar, CultureInfo, DateTime)
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)
☀
☾
Back to top Generated by DocFX