Class EntityTransactionsController
A standard base controller for displaying all the transactions against transactional entity. All transactions with this SingleItem as their EntityID
Inheritance
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Views
Assembly: ClientCore.dll
Syntax
public class EntityTransactionsController : BaseGridRelatedCollectionController<IObjectEntityBase, ITransaction>, IBaseGridController, IModelViewController, ICollectionExportable, INewGridItemImplementor<ITransaction>, ICopyGridItemImplementor<ITransaction>, IGrid, IDeleteGridItemImplementor<ITransaction>
Constructors
EntityTransactionsController(IBaseGridRelatedCollection<IObjectEntityBase, ITransaction>)
Creates a new EntityTransactionsController
Declaration
public EntityTransactionsController(IBaseGridRelatedCollection<IObjectEntityBase, ITransaction> view)
Parameters
Type | Name | Description |
---|---|---|
IBaseGridRelatedCollection<IObjectEntityBase, ITransaction> | view | The IBaseGridRelatedCollection view implementation using the UI components of the client application |
Properties
AllowCopyCommand
Declaration
public override bool AllowCopyCommand { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
AllowXMLImportExport
Declaration
public override bool AllowXMLImportExport { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
AutoOpenNewItemInTab
Declaration
public override bool AutoOpenNewItemInTab { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
CollectionRelationshipColumnName
Specified that the property EntityID holds the relationship from an ITransaction to the parent IObjectEntityBase SingleItem of this view
Declaration
public override string CollectionRelationshipColumnName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
DefaultSearchColumn
Declaration
protected override string DefaultSearchColumn { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
AlterQuery(QueryableExecuter<ITransaction>)
Returns all transactions ordered by Date/Reference
Declaration
protected override QueryableExecuter<ITransaction> AlterQuery(QueryableExecuter<ITransaction> query)
Parameters
Type | Name | Description |
---|---|---|
QueryableExecuter<ITransaction> | query | The transaction query |
Returns
Type | Description |
---|---|
QueryableExecuter<ITransaction> | The query to find all transactions for this grid |
Overrides
ColumnNames()
Adds the standard header columns from ColumnNames()
Declaration
protected override IEnumerable<ControlDisplayInfoLight> ColumnNames()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ControlDisplayInfoLight> | The standard header columns for a grid of header transactions |
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 |
---|---|---|
System.Collections.Generic.IList<ViewCommand> | commands | The commands for this transaction grid |
Overrides
UpdateNewItem(ITransaction)
ENsures all new transactions created in this grid have the EntityID set to the id of this parent SingleItem entity
Declaration
protected override Task UpdateNewItem(ITransaction item)
Parameters
Type | Name | Description |
---|---|---|
ITransaction | item | The new transaction |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task indicating the completion of this operation |