C# Класс PaulStovell.TrialBalance.DomainModel.Period

This class represents a single period in the accounting cycle.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CalculatePeriodForDate ( System.DateTime date, System.DateTime periodStartDate, PeriodLength periodLength ) : Period

Gets the accounting period for a given date.

GetNext ( ) : Period

Gets the next accounting period after this one.

GetPrevious ( ) : Period

Gets the accounting period that came before this one.

IncludesDate ( System.DateTime date ) : bool

Приватные методы

Метод Описание
Period ( ) : System

Constructor.

Описание методов

CalculatePeriodForDate() публичный статический Метод

Gets the accounting period for a given date.
public static CalculatePeriodForDate ( System.DateTime date, System.DateTime periodStartDate, PeriodLength periodLength ) : Period
date System.DateTime The date to find the accounting period for.
periodStartDate System.DateTime A date that an account period starts on.
periodLength PeriodLength The length of accounting periods.
Результат Period

GetNext() публичный Метод

Gets the next accounting period after this one.
public GetNext ( ) : Period
Результат Period

GetPrevious() публичный Метод

Gets the accounting period that came before this one.
public GetPrevious ( ) : Period
Результат Period

IncludesDate() публичный Метод

public IncludesDate ( System.DateTime date ) : bool
date System.DateTime
Результат bool