Class TransferTransactionTransactionsController
Inheritance
TransferTransactionTransactionsController
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Views.Controllers
Assembly: LemonEdge.ClientEntities.dll
Syntax
public class TransferTransactionTransactionsController : SingleItemWithChildTransactionsController<ITransfer>, IBaseGridController, ICollectionExportable, INewGridItemImplementor<ITransaction>, ICopyGridItemImplementor<ITransaction>, IGrid, IDeleteGridItemImplementor<ITransaction>, ISearchController, ILockableController, IModelViewController
Constructors
TransferTransactionTransactionsController(IBaseGridRelatedCollection<ITransfer, ITransaction>)
Declaration
public TransferTransactionTransactionsController(IBaseGridRelatedCollection<ITransfer, ITransaction> view)
Parameters
Type | Name | Description |
---|---|---|
IBaseGridRelatedCollection<ITransfer, 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.ITransfer>.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.ITransfer>.GetNewItemTranInfo(LemonEdge.API.Entities.FinancialServices.Transactions.ITransaction)
InitCommands(IList<ViewCommand>)
Adds the ViewAllocation and TransactionSettingsEdit commands to the standard grid commands
Declaration
protected override void InitCommands(IList<ViewCommand> commands)
Parameters
Type | Name | Description |
---|---|---|
IList<ViewCommand> | commands | The commands for this transaction grid |