Class SplitTransactionTransactionsController
Inheritance
SplitTransactionTransactionsController
Implements
Inherited Members
BaseGridRelatedCollectionController<ISplitTransaction, ITransaction>.GetNewEntityFromLookupCommand()
Namespace: LemonEdge.Client.Core.Views.Controllers
Assembly: LemonEdge.ClientEntities.dll
Syntax
public class SplitTransactionTransactionsController : SingleItemWithChildTransactionsController<ISplitTransaction>, IBaseGridController, ICollectionExportable, INewGridItemImplementor<ITransaction>, ICopyGridItemImplementor<ITransaction>, IGrid, IDeleteGridItemImplementor<ITransaction>, ISearchController, ILockableController, IModelViewController
Constructors
SplitTransactionTransactionsController(IBaseGridRelatedCollection<ISplitTransaction, ITransaction>)
Declaration
public SplitTransactionTransactionsController(IBaseGridRelatedCollection<ISplitTransaction, ITransaction> view)
Parameters
Type | Name | Description |
---|---|---|
IBaseGridRelatedCollection<ISplitTransaction, ITransaction> | view |
Properties
AllowNewCommand
Indicates that by default entities can be created by the user with the new command
Declaration
public override bool AllowNewCommand { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
CanWrite
Uses the ITransactionProcessor CanWrite and Locked to determine if a transaction can be written too
Declaration
public override bool CanWrite { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
LemonEdge.Client.Core.Views.Controllers.SingleItemWithChildTransactionsController<LemonEdge.API.Entities.FinancialServices.Transactions.ISplitTransaction>.CanWrite
Methods
GetNewItemTranInfo(ITransaction)
When creating a new transaction this provides the default status/transaction date for the transaction that should come from the SingleItem
Declaration
protected override (TransactionStatus Status, DateTimeOffset TransactionDate) GetNewItemTranInfo(ITransaction item)
Parameters
Type | Name | Description |
---|---|---|
ITransaction | item | The new transaction being created |
Returns
Type | Description |
---|---|
(TransactionStatus Status, DateTimeOffset TransactionDate) | A status and date to use for the new transaction |
Overrides
LemonEdge.Client.Core.Views.Controllers.SingleItemWithChildTransactionsController<LemonEdge.API.Entities.FinancialServices.Transactions.ISplitTransaction>.GetNewItemTranInfo(LemonEdge.API.Entities.FinancialServices.Transactions.ITransaction)