C# 클래스 PaulStovell.TrialBalance.DomainModel.Period

This class represents a single period in the accounting cycle.
파일 보기 프로젝트 열기: PaulStovell/trial-balance 1 사용 예제들

공개 메소드들

메소드 설명
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