C# Класс BudgetAnalyser.Engine.Ledger.LedgerBook

Наследование: IModelValidate
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
LedgersAvailableForTransfer ( ) : IEnumerable

Lists all the Ledgers available for transfer funds to and from.

Validate ( [ validationMessages ) : bool

Validate the instance and populate any warnings and errors into the validationMessages string builder.

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

Метод Описание
AddLedger ( LedgerBucket newLedger ) : LedgerBucket
LedgerBook ( ) : System
LedgerBook ( [ reconciliationBuilder ) : System

Constructs a new instance of the LedgerBook class. The Persistence system calls this constructor, not the IoC system.

Reconcile ( System.DateTime reconciliationDate, BudgetModel budget, StatementModel statement ) : ReconciliationResult

Creates a new LedgerEntryLine for this LedgerBook.

SetLedgerAccount ( LedgerBucket ledger, Account storedInAccount ) : void

Used to allow the UI to set a ledger's account, but only if it is an instance in the Ledgers collection.

SetReconciliations ( List lines ) : void
UnlockMostRecentLine ( ) : LedgerEntryLine

Used to unlock the most recent LedgerEntryLine. Lines are locked as soon as they are saved after creation to prevent changes. Use with caution, this is intended to keep data integrity intact and prevent accidental changes. After financial records are completed for the month, they are not supposed to change.

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

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

Lists all the Ledgers available for transfer funds to and from.
public LedgersAvailableForTransfer ( ) : IEnumerable
Результат IEnumerable

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

Validate the instance and populate any warnings and errors into the validationMessages string builder.
public Validate ( [ validationMessages ) : bool
validationMessages [ A non-null string builder that will be appended to for any messages.
Результат bool