Class EntityPeriodClosingsControllerBase<T>
A standard base view that displays a list of IEntityPeriodClosing against an object entity that inherits IObjectEntityBase and has HasGL set to true
Inheritance
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Views
Assembly: ClientCore.dll
Syntax
public abstract class EntityPeriodClosingsControllerBase<T> : BaseGridRelatedCollectionController<T, IEntityPeriodClosing>, IBaseGridController, IModelViewController, ICollectionExportable, INewGridItemImplementor<IEntityPeriodClosing>, ICopyGridItemImplementor<IEntityPeriodClosing>, IGrid, IDeleteGridItemImplementor<IEntityPeriodClosing> where T : IObjectEntityBase
Type Parameters
Name | Description |
---|---|
T | An object entity that inherits IObjectEntityBase |
Constructors
EntityPeriodClosingsControllerBase(IBaseGridRelatedCollection<T, IEntityPeriodClosing>)
Creates a new EntityPeriodClosingsControllerBase
Declaration
public EntityPeriodClosingsControllerBase(IBaseGridRelatedCollection<T, IEntityPeriodClosing> view)
Parameters
Type | Name | Description |
---|---|---|
IBaseGridRelatedCollection<T, IEntityPeriodClosing> | view | The IBaseGridRelatedCollection view implementation using the UI components of the client application |
Properties
AllowOpenCommand
Declaration
public override bool AllowOpenCommand { 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 IEntityPeriodClosing 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<IEntityPeriodClosing>)
Orders the query results by the PeriodClosedDate
Declaration
protected override QueryableExecuter<IEntityPeriodClosing> AlterQuery(QueryableExecuter<IEntityPeriodClosing> query)
Parameters
Type | Name | Description |
---|---|---|
QueryableExecuter<IEntityPeriodClosing> | query | The query for all the period closings for this entity |
Returns
Type | Description |
---|---|
QueryableExecuter<IEntityPeriodClosing> | The altered query that returns all period end closings for this entity |
Overrides
ColumnNames()
Adds the EntityID, and PeriodClosedDate columns to the grid
Declaration
protected override IEnumerable<ControlDisplayInfoLight> ColumnNames()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ControlDisplayInfoLight> | The columns to be added to this grid |
Overrides
UpdateNewItem(IEntityPeriodClosing)
Sets the default period close date to today
Declaration
protected override Task UpdateNewItem(IEntityPeriodClosing item)
Parameters
Type | Name | Description |
---|---|---|
IEntityPeriodClosing | item | The new period end closing created by the user |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task indicating the completion of this operation |