Class ExpressReportParametersController
Inheritance
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Views.Controllers
Assembly: LemonEdge.ClientEntities.dll
Syntax
public class ExpressReportParametersController : BaseReportParametersController<IReportExpress>, IBaseGridController, ICollectionExportable, INewGridItemImplementor<ISQLTypeWrapper>, ICopyGridItemImplementor<ISQLTypeWrapper>, IGrid, IDeleteGridItemImplementor<ISQLTypeWrapper>, ISearchController, IModelViewController
Constructors
ExpressReportParametersController(IBaseGridRelatedCollection<IReportExpress, ISQLTypeWrapper>)
Declaration
public ExpressReportParametersController(IBaseGridRelatedCollection<IReportExpress, ISQLTypeWrapper> view)
Parameters
Type | Name | Description |
---|---|---|
IBaseGridRelatedCollection<IReportExpress, ISQLTypeWrapper> | view |
Methods
DisplayUI()
Initializes the grid, and creates every ControlDisplayInfo in the defined Columns() and creates them on the grid
Then loads the data for the grid accounting for all view sorting, filtering, searching and paging, and loads the results into the grid as an observable collection
Declaration
public override Task DisplayUI()
Returns
Type | Description |
---|---|
Task | A task indicating the completion of the operation |
Overrides
GetGridSourceItems()
Executes the query (GetCurrentQuery()) for the entities required in this grid, sets the total count (as it is different due to paging), and returns the results
Declaration
public override Task<IEnumerable<ISQLTypeWrapper>> GetGridSourceItems()
Returns
Type | Description |
---|---|
Task<IEnumerable<ISQLTypeWrapper>> | The result of executing the GetCurrentQuery() to return all the entities that should be displayed in this grid |
Overrides
RemoveItems(IEnumerable<ISQLTypeWrapper>)
Removes the specified set of items from the grid and if the items in the grid have a property marked as SequenceStart then it will decrement the ones above these deleted items to reflect their change in order
Declaration
public override Task RemoveItems(IEnumerable<ISQLTypeWrapper> items)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<ISQLTypeWrapper> | items | The items to be removed from the CurrentItems |
Returns
Type | Description |
---|---|
Task | A task indicating the completion of the operation |
Overrides
UpdateNewItem(ISQLTypeWrapper)
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(ISQLTypeWrapper item)
Parameters
Type | Name | Description |
---|---|---|
ISQLTypeWrapper | item | The new item created for this grid |
Returns
Type | Description |
---|---|
Task | A task indicating the completion of the operation |