Business rules

Class Duration

Index

Constructor methods

Properties

Get accessors

Methods

Constructor methods

constructor(DataProvider: IVacationApprovalData): Duration

Parameters

Returns

Duration

Properties

public DataProvider: IVacationApprovalData

private MAX_DAYS_DIFF: number

Get accessors

public Data(): IDuration

Returns

IDuration

public ExcludedDays(): Array<Moment>

Return days excluded out of vacation.

Returns

Array<Moment>

public ExcludedDaysCount(): number

Return the number of days excluded out of vacation.

Returns

number

public private ExcludedDaysDatePart(): Array<Moment>

Returns

Array<Moment>

public private ExcludedWeekdays(): Array<Moment>

Returns

Array<Moment>

public private ExcludedWeekdaysCount(): number

Returns

number

public private FromDatePart(): Moment

Returns

Moment

public private FromRange(): any

Returns

any

public IsOverLimitRange(): boolean

Returns

boolean

public private MaxDiffs(): any

Returns

any

public private RangeDays(): Array<Moment>

Returns

Array<Moment>

public private RangeDaysCount(): number

Returns

number

public RangeWeekdays(): Array<Moment>

Return days of vacation.

Returns

Array<Moment>

public RangeWeekdaysCount(): number

Return the number of days of vacation.

Returns

number

public private ToDatePart(): Moment

Returns

Moment

public VacationDays(): Array<Moment>

Return days of vacation without explicitly excluded days.

Returns

Array<Moment>

public VacationDaysCount(): number

Return the number of days of vacation without explicitly excluded days.

Returns

number

Methods

public createDurationValidator(): Validation.IAbstractValidator<VacationApproval.IDuration>

Returns

Validation.IAbstractValidator<VacationApproval.IDuration>