Search Results for

    Show / Hide Table of Contents

    Class ObjectEntityController<T>

    An optional base object entity controller used for displaying any single entity that inherits from IObjectEntityBase ina consistent manner

    Inheritance
    object
    ModelViewController
    BaseDefaultSingleViewController<T>
    ObjectEntityController<T>
    CompanyController
    PersonController
    Implements
    IModelViewController
    Inherited Members
    BaseDefaultSingleViewController<T>.InitCommands(IList<ViewCommand>)
    BaseDefaultSingleViewController<T>.ProcessCustomCommandResult(object)
    BaseDefaultSingleViewController<T>.GetSingleViewController(IBaseDefaultSingleView<T>, string)
    BaseDefaultSingleViewController<T>.InitAsync()
    BaseDefaultSingleViewController<T>.LoadSingleItem()
    BaseDefaultSingleViewController<T>.LoadExtendedItem(Type)
    BaseDefaultSingleViewController<T>.SetAndLoadSingleItem()
    BaseDefaultSingleViewController<T>.LoadControls()
    BaseDefaultSingleViewController<T>.IncrementControlCheck(int)
    BaseDefaultSingleViewController<T>.DecrementControlCheck()
    BaseDefaultSingleViewController<T>.DisplayUI()
    BaseDefaultSingleViewController<T>.DisplayControlItem(ControlDisplayInfo, T)
    BaseDefaultSingleViewController<T>.DisplayFormulaItem(ControlDisplayInfo, T)
    BaseDefaultSingleViewController<T>.Controls()
    BaseDefaultSingleViewController<T>.GetControls()
    BaseDefaultSingleViewController<T>.AlterControlInfo(ControlDisplayInfo)
    BaseDefaultSingleViewController<T>.GetControlDescriptor(EntityDescriptor, string)
    BaseDefaultSingleViewController<T>.GetControlEntityDescriptor(string)
    BaseDefaultSingleViewController<T>.SingleItem
    BaseDefaultSingleViewController<T>.SelectedItemForSubViews
    BaseDefaultSingleViewController<T>.SingleView
    BaseDefaultSingleViewController<T>.Descriptor
    BaseDefaultSingleViewController<T>.ViewDisplayType
    BaseDefaultSingleViewController<T>.ViewMaxWidth
    BaseDefaultSingleViewController<T>.ViewMaxHeight
    BaseDefaultSingleViewController<T>.ViewRowCount
    BaseDefaultSingleViewController<T>.ViewColumnCount
    BaseDefaultSingleViewController<T>.HasParentToAnyRelationship
    ModelViewController.DisplayItem(object)
    ModelViewController.GetCurrentDisplayedItem(object)
    ModelViewController.Redisplay()
    ModelViewController.Clear()
    ModelViewController.CloseController()
    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 abstract class ObjectEntityController<T> : BaseDefaultSingleViewController<T>, IModelViewController where T : IObjectEntityBase
    Type Parameters
    Name Description
    T

    The entity type that inherits from IObjectEntityBase

    Constructors

    ObjectEntityController(IBaseDefaultSingleView<T>)

    Creates a new ObjectEntityController

    Declaration
    public ObjectEntityController(IBaseDefaultSingleView<T> view)
    Parameters
    Type Name Description
    IBaseDefaultSingleView<T> view

    The IBaseDefaultSingleView view implementation using the UI components of the client application

    Properties

    AllowCanBeCounterparty

    Indicates the CanBeCounterparty control should also be included in the ControlNames() for this view

    Declaration
    protected virtual bool AllowCanBeCounterparty { get; }
    Property Value
    Type Description
    bool

    AllowCanOwnInstruments

    Indicates the IObjectEntityBase.AllowCanOwnInstruments control should also be included in the ControlNames() for this view

    Declaration
    protected virtual bool AllowCanOwnInstruments { get; }
    Property Value
    Type Description
    bool

    AllowGL

    Indicates the HasGL control should also be included in the ControlNames() for this view

    Declaration
    protected virtual bool AllowGL { get; }
    Property Value
    Type Description
    bool

    AllowIncludeInAllocations

    Indicates the AllowRuleAllocations control should also be included in the ControlNames() for this view

    Declaration
    protected virtual bool AllowIncludeInAllocations { get; }
    Property Value
    Type Description
    bool

    AllowYearEnd

    Indicates the optional year end control should be visible

    Declaration
    protected virtual bool AllowYearEnd { get; }
    Property Value
    Type Description
    bool

    ListenToChanges

    We check changes if HasParentToAnyRelationship is true

    Declaration
    public override bool ListenToChanges { get; }
    Property Value
    Type Description
    bool
    Overrides
    BaseDefaultSingleViewController<T>.ListenToChanges

    Methods

    ControlNames()

    Adds the Name, Code, LegalName, and CurrencyID as controls to the view

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

    The controls to be displayed against this view

    Overrides
    BaseDefaultSingleViewController<T>.ControlNames()

    OnTrackedItemChanged(object, string)

    If HasParentToAnyRelationship is true then it will update the control holding that relationship value to keep changes in sync in the views to the user

    Declaration
    protected override void OnTrackedItemChanged(object item, string propName)
    Parameters
    Type Name Description
    object item

    The item that had a property changed

    string propName

    The name of the changed property

    Overrides
    BaseDefaultSingleViewController<T>.OnTrackedItemChanged(object, string)

    Implements

    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.