Search Results for

    Show / Hide Table of Contents

    Class EntityTransactionsController

    A standard base controller for displaying all the transactions against transactional entity. All transactions with this SingleItem as their EntityID

    Inheritance
    object
    ModelViewController
    BaseGridController
    BaseGridControllerAny<ITransaction>
    BaseGridController<ITransaction>
    BaseGridRelatedCollectionController<IObjectEntityBase, ITransaction>
    EntityTransactionsController
    Implements
    IBaseGridController
    ICollectionExportable
    INewGridItemImplementor<ITransaction>
    ICopyGridItemImplementor<ITransaction>
    IGrid
    IDeleteGridItemImplementor<ITransaction>
    ISearchController
    IModelViewController
    Inherited Members
    BaseGridRelatedCollectionController<IObjectEntityBase, ITransaction>.InitCommands(IList<ViewCommand>)
    BaseGridRelatedCollectionController<IObjectEntityBase, ITransaction>.GetNewEntityFromLookupCommand()
    BaseGridRelatedCollectionController<IObjectEntityBase, ITransaction>.AlterQuery(QueryableExecuter<ITransaction>)
    BaseGridRelatedCollectionController<IObjectEntityBase, ITransaction>.AddRelationshipJoin(QueryableExecuter<ITransaction>)
    BaseGridRelatedCollectionController<IObjectEntityBase, ITransaction>.UpdateNewItem(ITransaction)
    BaseGridRelatedCollectionController<IObjectEntityBase, ITransaction>.SingleItem
    BaseGridRelatedCollectionController<IObjectEntityBase, ITransaction>.AllowIDFilter
    BaseGridRelatedCollectionController<IObjectEntityBase, ITransaction>.CollectionRelationshipColumnName
    BaseGridRelatedCollectionController<IObjectEntityBase, ITransaction>.PopulateNewFromLookupColumnName
    BaseGridRelatedCollectionController<IObjectEntityBase, ITransaction>.AllowNewEntityFromLookupColumn
    BaseGridController<ITransaction>.LoadExtendedItem(Type, object)
    BaseGridController<ITransaction>.GetGridSourceItems()
    BaseGridController<ITransaction>.LoadExtendedData(IEnumerable<ITransaction>)
    BaseGridController<ITransaction>.ConvertParameterItemsFilterToItems(IEnumerable<IBaseEntity>)
    BaseGridController<ITransaction>.GetInternalDescriptor()
    BaseGridController<ITransaction>.GetCurrentQuery()
    BaseGridController<ITransaction>.GetQueryForExcelResults()
    BaseGridController<ITransaction>.GetCreationQuery()
    BaseGridController<ITransaction>.AddParameterIDFilterToQuery(QueryableExecuter<ITransaction>, IEnumerable<Guid>)
    BaseGridController<ITransaction>.AddParameterFilterToQuery(QueryableExecuter<ITransaction>, QueryableFilter)
    BaseGridController<ITransaction>.GetOpenGridCommand()
    BaseGridController<ITransaction>.GetCopyGridCommand()
    BaseGridController<ITransaction>.OnOpenRowItem(ITransaction)
    BaseGridController<ITransaction>.ProcessCustomCommandResult(object)
    BaseGridController<ITransaction>.AllowIDFilter
    BaseGridController<ITransaction>.NewItemHelper
    BaseGridController<ITransaction>.CopyItemHelper
    BaseGridController<ITransaction>.AllowOpenCommand
    BaseGridController<ITransaction>.AllowNewCommand
    BaseGridController<ITransaction>.AllowDeleteCommand
    BaseGridController<ITransaction>.OpenInSameContext
    BaseGridController<ITransaction>.HasGlobalFilter
    BaseGridControllerAny<ITransaction>.CanDelete(ITransaction)
    BaseGridControllerAny<ITransaction>.Clear()
    BaseGridControllerAny<ITransaction>.CloseController()
    BaseGridControllerAny<ITransaction>.Redisplay()
    BaseGridControllerAny<ITransaction>.GetGridController(IBaseGrid<ITransaction>)
    BaseGridControllerAny<ITransaction>.CanEditRowItem(ITransaction)
    BaseGridControllerAny<ITransaction>.CanEditRowItem(ITransaction, short)
    BaseGridControllerAny<ITransaction>.OnTrackedItemChanged(object, string)
    BaseGridControllerAny<ITransaction>.GetGridSourceItems(IEnumerable<ITransaction>, QueryableExecuterApplyType)
    BaseGridControllerAny<ITransaction>.AlterLoadedItems(IEnumerable<ITransaction>)
    BaseGridControllerAny<ITransaction>.InitDisplay()
    BaseGridControllerAny<ITransaction>.ResetColumnsAndGroups(bool)
    BaseGridControllerAny<ITransaction>.DisplayUI()
    BaseGridControllerAny<ITransaction>.GetItemToReselect(object)
    BaseGridControllerAny<ITransaction>.LoadAdditionalColumns()
    BaseGridControllerAny<ITransaction>.Columns()
    BaseGridControllerAny<ITransaction>.AddCol(short, ControlDisplayInfoLight, EntityDescriptor)
    BaseGridControllerAny<ITransaction>.PivotColumns(short)
    BaseGridControllerAny<ITransaction>.ApplyGridSettingsToFilter(QueryableExecuter)
    BaseGridControllerAny<ITransaction>.ApplyPaging(QueryableExecuter)
    BaseGridControllerAny<ITransaction>.SetTotalCount(int)
    BaseGridControllerAny<ITransaction>.SetPageIndex(int)
    BaseGridControllerAny<ITransaction>.TrackResults(IEnumerable<ITransaction>)
    BaseGridControllerAny<ITransaction>.AlterColumnInfo(ControlDisplayInfo)
    BaseGridControllerAny<ITransaction>.UpdateColumnFromName(string)
    BaseGridControllerAny<ITransaction>.GetExportableColumnInfo(IEnumerable<ColumnDescriptor>)
    BaseGridControllerAny<ITransaction>.IsZeroColumnColumnVisible(string)
    BaseGridControllerAny<ITransaction>.ToggleZeroColumns()
    BaseGridControllerAny<ITransaction>.UpdateAllZeroColumns()
    BaseGridControllerAny<ITransaction>.UpdateTransferColumnStatus()
    BaseGridControllerAny<ITransaction>.OnSelectedItemsChanged(IEnumerable<ITransaction>)
    BaseGridControllerAny<ITransaction>.GetStandardExtraColumns(string)
    BaseGridControllerAny<ITransaction>.ReApply()
    BaseGridControllerAny<ITransaction>.GetPublicToggleCommand()
    BaseGridControllerAny<ITransaction>.GetNewGridCommand()
    BaseGridControllerAny<ITransaction>.GetDeleteCommand()
    BaseGridControllerAny<ITransaction>.GetUpCommand()
    BaseGridControllerAny<ITransaction>.GetDownCommand()
    BaseGridControllerAny<ITransaction>.MoveItemSequence(object, object)
    BaseGridControllerAny<ITransaction>.GetLookupIDsForNewItems(Func<IBaseEntity, Task>)
    BaseGridControllerAny<ITransaction>.RemoveItems(IEnumerable<ITransaction>)
    BaseGridControllerAny<ITransaction>.AddItem(ITransaction)
    BaseGridControllerAny<ITransaction>.ToggleSearch(bool)
    BaseGridControllerAny<ITransaction>.CollectionType
    BaseGridControllerAny<ITransaction>.Descriptor
    BaseGridControllerAny<ITransaction>.ListenToChanges
    BaseGridControllerAny<ITransaction>.RowPreviewColumns
    BaseGridControllerAny<ITransaction>.GridView
    BaseGridControllerAny<ITransaction>.CurrentGridItems
    BaseGridControllerAny<ITransaction>.CurrentItems
    BaseGridControllerAny<ITransaction>.AutoSelectFirstRow
    BaseGridControllerAny<ITransaction>.AddStandardColumns
    BaseGridControllerAny<ITransaction>.StandardColumnsUniqueGroupKey
    BaseGridControllerAny<ITransaction>.DefaultRowCount
    BaseGridControllerAny<ITransaction>.DefaultOrOverridenRowCount
    BaseGridControllerAny<ITransaction>.UserOverridenPagingAmount
    BaseGridControllerAny<ITransaction>.PagerRequired
    BaseGridControllerAny<ITransaction>.TotalCount
    BaseGridControllerAny<ITransaction>.LimitPagesToTotal
    BaseGridControllerAny<ITransaction>.TotalPageCount
    BaseGridControllerAny<ITransaction>.Sortings
    BaseGridControllerAny<ITransaction>.Filters
    BaseGridControllerAny<ITransaction>.ShowCheckboxForMultiSelect
    BaseGridControllerAny<ITransaction>.TogglerZeroColumn
    BaseGridControllerAny<ITransaction>.TransferColToggler
    BaseGridControllerAny<ITransaction>.ItemRowColorProperty
    BaseGridControllerAny<ITransaction>.CanCreateNew
    BaseGridControllerAny<ITransaction>.SelectedItemForSubViews
    BaseGridControllerAny<ITransaction>.ItemCellDisableCell
    BaseGridControllerAny<ITransaction>.UpdateSubViewsWhenMultipleRowSelectionChanges
    BaseGridControllerAny<ITransaction>.ExcelExportCommand
    BaseGridControllerAny<ITransaction>.AllowColumnSelection
    BaseGridControllerAny<ITransaction>.AllowPublicToggleCommand
    BaseGridControllerAny<ITransaction>.AllowSearchCommand
    BaseGridControllerAny<ITransaction>.AllowPageSizeCommand
    BaseGridControllerAny<ITransaction>.AllowClearSearchSortFilter
    BaseGridControllerAny<ITransaction>.ShowGrouping
    BaseGridControllerAny<ITransaction>.ShowFrozenColumnsSplitter
    BaseGridControllerAny<ITransaction>.ShowVerticalGridLines
    BaseGridControllerAny<ITransaction>.CanUserSelect
    BaseGridControllerAny<ITransaction>.AllowMultipleSelect
    BaseGridControllerAny<ITransaction>.AllowExcelExport
    BaseGridControllerAny<ITransaction>.AllowSequencing
    BaseGridControllerAny<ITransaction>.OpenFromRelatedColumnName
    BaseGridControllerAny<ITransaction>.PopulateNewFromLookupColumnName
    BaseGridControllerAny<ITransaction>.PreventDuplicateLookupIDs
    BaseGridControllerAny<ITransaction>.PopulateNewFromLookupRelationship
    BaseGridControllerAny<ITransaction>.SearchGroups
    BaseGridControllerAny<ITransaction>.SearchElements
    BaseGridController.ClearSearchSortFilter()
    BaseGridController.AddCustomCommand(ICustomCommand)
    BaseGridController.ColumnGroups()
    BaseGridController.GetVisibleColumnNames()
    BaseGridController.AllPossibleSearchColumns()
    BaseGridController.SetOrdering(IEnumerable<QueryableSort>)
    BaseGridController.SetFilters(IEnumerable<QueryableFilter>)
    BaseGridController.SetSearch(string, IEnumerable<string>)
    BaseGridController.SetCreated(bool)
    BaseGridController.BulkUpdateMultipleSelectedItemsOnEdit
    BaseGridController.ComboItemsClear
    BaseGridController.DefaultColumnGroupIndexes
    BaseGridController.ExpandDefaultGroups
    BaseGridController.DefaultFrozenColumnCount
    BaseGridController.SearchColumns
    BaseGridController.Search
    BaseGridController.BaseGridView
    BaseGridController.Created
    BaseGridController.InternalFilter
    BaseGridController.IsSelected
    BaseGridController.ColumnSortings
    BaseGridController.ColumnFilters
    BaseGridController.CustomCommandParam
    BaseGridController.OnlyExportGrid
    BaseGridController.OnlyExportFromQuery
    BaseGridController.LoadPager
    BaseGridController.LoadOrOverridenPager
    BaseGridController.UserOverridenPagingVisible
    BaseGridController.CurrentPageIndex
    ModelViewController.DisplayItem(object)
    ModelViewController.GetCurrentDisplayedItem(object)
    ModelViewController.GetCanWrite(object)
    ModelViewController.ShouldDisplayItem(object)
    ModelViewController.RemoveHandlers(object)
    ModelViewController.AddHandlers(object)
    ModelViewController.RemoveCommand(ViewCommand)
    ModelViewController.RemoveCommands<TOfType>()
    ModelViewController.InsertCommand(ViewCommand, int)
    ModelViewController.InsertCommand(ViewCommand, ViewCommand, ViewCommand)
    ModelViewController.UpdateAllCommands()
    ModelViewController.GetNestedViews()
    ModelViewController.RootController
    ModelViewController.ServiceContext
    ModelViewController.UIContext
    ModelViewController.CanWrite
    ModelViewController.TrackChanges
    ModelViewController.CheckIsLockedForCanWrite
    ModelViewController.DisplayIfNull
    ModelViewController.CurrentDisplayedItem
    ModelViewController.View
    ModelViewController.Commands
    ModelViewController.ContextHelpURL
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.Client.Core.Views.Controllers
    Assembly: LemonEdge.ClientCore.dll
    Syntax
    public class EntityTransactionsController : BaseGridRelatedCollectionController<IObjectEntityBase, ITransaction>, IBaseGridController, ICollectionExportable, INewGridItemImplementor<ITransaction>, ICopyGridItemImplementor<ITransaction>, IGrid, IDeleteGridItemImplementor<ITransaction>, ISearchController, IModelViewController

    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

    Indicates that by default selected entities can be copied by the user with the copy command

    Declaration
    public override bool AllowCopyCommand { get; }
    Property Value
    Type Description
    bool
    Overrides
    BaseGridController<ITransaction>.AllowCopyCommand

    AllowXMLImportExport

    Indicates the command to allow the xml export of the data by the user is included in the InitCommands(IList<ViewCommand>)

    The default is true if the type ITransaction derives from ISetCopier

    Declaration
    public override bool AllowXMLImportExport { get; }
    Property Value
    Type Description
    bool
    Overrides
    BaseGridControllerAny<ITransaction>.AllowXMLImportExport

    AutoOpenNewItemInTab

    Indicates when creating a new item in the grid that it should automatically be opened in a new tab as well

    The default is true if the type ITransaction is an entity that is not a IsStandingDataEntity

    Declaration
    public override bool AutoOpenNewItemInTab { get; }
    Property Value
    Type Description
    bool
    Overrides
    BaseGridControllerAny<ITransaction>.AutoOpenNewItemInTab

    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
    string
    Overrides
    BaseGridRelatedCollectionController<IObjectEntityBase, ITransaction>.CollectionRelationshipColumnName

    DefaultSearchColumn

    The name of the column to use in the default search of text in the grid

    Declaration
    protected override string DefaultSearchColumn { get; }
    Property Value
    Type Description
    string
    Overrides
    BaseGridController.DefaultSearchColumn

    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
    BaseGridRelatedCollectionController<IObjectEntityBase, ITransaction>.AlterQuery(QueryableExecuter<ITransaction>)

    ColumnNames()

    Adds the standard header columns from ColumnNames()

    Declaration
    protected override IEnumerable<ControlDisplayInfoLight> ColumnNames()
    Returns
    Type Description
    IEnumerable<ControlDisplayInfoLight>

    The standard header columns for a grid of header transactions

    Overrides
    BaseGridControllerAny<ITransaction>.ColumnNames()

    DeleteCommandIsQuickAccess()

    Declaration
    public override bool DeleteCommandIsQuickAccess()
    Returns
    Type Description
    bool
    Overrides
    BaseGridControllerAny<ITransaction>.DeleteCommandIsQuickAccess()

    InitAsync()

    Provides the controller a chance to initialize any dependant data. Called once by the system after controller creation.

    Declaration
    public override Task InitAsync()
    Returns
    Type Description
    Task

    A task indicating the completion of the operation

    Overrides
    BaseGridController.InitAsync()

    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
    BaseGridRelatedCollectionController<IObjectEntityBase, ITransaction>.InitCommands(IList<ViewCommand>)

    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
    Task

    A task indicating the completion of this operation

    Overrides
    BaseGridRelatedCollectionController<IObjectEntityBase, ITransaction>.UpdateNewItem(ITransaction)

    Implements

    IBaseGridController
    ICollectionExportable
    INewGridItemImplementor<T>
    ICopyGridItemImplementor<T>
    IGrid
    IDeleteGridItemImplementor<T>
    ISearchController
    IModelViewController

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.