Class StepChangeTransactionTransactionsController
Inheritance
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Views.Controllers
Assembly: LemonEdge.ClientEntities.dll
Syntax
public class StepChangeTransactionTransactionsController : SingleItemWithChildTransactionsController<IStepChange>, IBaseGridController, ICollectionExportable, INewGridItemImplementor<ITransaction>, ICopyGridItemImplementor<ITransaction>, IGrid, IDeleteGridItemImplementor<ITransaction>, ISearchController, ILockableController, IModelViewController
Constructors
StepChangeTransactionTransactionsController(IBaseGridRelatedCollection<IStepChange, ITransaction>)
Declaration
public StepChangeTransactionTransactionsController(IBaseGridRelatedCollection<IStepChange, ITransaction> view)
Parameters
Type | Name | Description |
---|---|---|
IBaseGridRelatedCollection<IStepChange, 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
Methods
ColumnNames()
Adds the header information for a transaction along with net total func, local and reporting amounts as columns
Declaration
protected override IEnumerable<ControlDisplayInfoLight> ColumnNames()
Returns
Type | Description |
---|---|
IEnumerable<ControlDisplayInfoLight> | The columns to be dislayed against this grid |
Overrides
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
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 |
Overrides
UpdateNewItem(ITransaction)
Updates any new item created in this grid to also have the CollectionRelationshipColumnName property hold the value of the SingleItem ID
Declaration
protected override Task UpdateNewItem(ITransaction item)
Parameters
Type | Name | Description |
---|---|---|
ITransaction | item | The new item created for this grid |
Returns
Type | Description |
---|---|
Task | A task indicating the completion of the operation |