Search Results for

    Show / Hide Table of Contents

    Class RevertTransactionBase<T>

    A view command that will create a task to revert a API.Core.TransactionStatus.Finalized IHeaderTransactionalEntity back to API.Core.TransactionStatus.InProgress

    This will remove all gl posting entries (as they are only created at API.Core.TransactionStatus.Committed status or greater) and will revert the transaction and all child transactional entites back to inprogress

    This should only be enabled against transactions that specifically support it
    Inheritance
    object
    BaseHasChildren<EPCommandWithDescriptor>
    EPCommand
    EPCommandWithDescriptor
    ViewCommand
    TaskBase
    RevertTransactionBase<T>
    Implements
    IHasChildren<EPCommandWithDescriptor>
    IHasChildren
    IDisposable
    IEPCommandWithDescriptor
    IEPCommand
    ICommand
    ICommandDescriptor
    Inherited Members
    TaskBase.GetUserModifiedParametersFromDefault(IModelLayoutCommon, ServerTaskParameter)
    TaskBase.InternalExecuteAsync(object)
    TaskBase.ProcessExecute(ServerTaskParameter, bool)
    TaskBase.ProcessExecute(ServerTaskParameter, bool, ServerTaskOccurrence?, short?)
    TaskBase.RunOnServer
    TaskBase.IncludeInSimple
    TaskBase.Title
    TaskBase.Description
    TaskBase.Key
    TaskBase.ModifierKeys
    TaskBase.ToolTip
    TaskBase.TaskType
    TaskBase.TaskParamType
    ViewCommand.Type
    EPCommandWithDescriptor.OverlayIconID
    EPCommandWithDescriptor.Parameter
    EPCommandWithDescriptor.HelpURL
    EPCommand.OnCanExecuteChanged()
    EPCommand.LoadChildrenAsync()
    EPCommand.SetToggler(IHasToggleStatus)
    EPCommand.OnLayoutsChanged(IModelLayoutHost, LayoutChangeEventArgs)
    EPCommand.ExternalExecute(object)
    EPCommand.InternalExecute(object)
    EPCommand.ExternalCanExecute(object)
    EPCommand.InternalCanExecute(object)
    EPCommand.GetModifierText(IEPCommand)
    EPCommand.RemoveEventHandlersOnDispose()
    EPCommand.Dispose(bool)
    EPCommand.Dispose()
    EPCommand.RootController
    EPCommand.ActiveDisplayerFromOwner
    EPCommand.ReloadChildrenOnEachOpen
    EPCommand.HasChildCommands
    EPCommand.SubscribeToLayoutChange
    EPCommand.From
    EPCommand.LockExecution
    EPCommand.CustomType
    EPCommand.Owner
    EPCommand.Toggler
    EPCommand.CanExecuteChanged
    BaseHasChildren<EPCommandWithDescriptor>.AddChild(EPCommandWithDescriptor, bool)
    BaseHasChildren<EPCommandWithDescriptor>.DeleteChild(EPCommandWithDescriptor)
    BaseHasChildren<EPCommandWithDescriptor>.ClearChildren()
    BaseHasChildren<EPCommandWithDescriptor>.ClearMyParent()
    BaseHasChildren<EPCommandWithDescriptor>.AddChild(IHasChildren)
    BaseHasChildren<EPCommandWithDescriptor>.DeleteChild(IHasChildren)
    BaseHasChildren<EPCommandWithDescriptor>.Order
    BaseHasChildren<EPCommandWithDescriptor>.Children
    BaseHasChildren<EPCommandWithDescriptor>.Parent
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.Client.Core.Commands.ViewCommands
    Assembly: LemonEdge.ClientCore.dll
    Syntax
    public class RevertTransactionBase<T> : TaskBase, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IDisposable, IEPCommandWithDescriptor, IEPCommand, ICommand, ICommandDescriptor where T : IHeaderTransactionalEntity
    Type Parameters
    Name Description
    T

    The type of transaction item to revert

    Constructors

    RevertTransactionBase(IRootController, ModelViewController)

    Creates a new RevertTransactionBase command

    Declaration
    public RevertTransactionBase(IRootController root, ModelViewController controller)
    Parameters
    Type Name Description
    IRootController root

    The root controller, for service access.

    ModelViewController controller

    The controller that holds the IHeaderTransactionalEntity to revert

    Properties

    IconID

    The image to use for this command, either a ImageType or ImageID

    Declaration
    public override Guid IconID { get; }
    Property Value
    Type Description
    Guid
    Overrides
    TaskBase.IconID

    InternalExecuteWithChanges

    Can not be executed with pending changes

    Declaration
    protected override bool InternalExecuteWithChanges { get; }
    Property Value
    Type Description
    bool
    Overrides
    TaskBase.InternalExecuteWithChanges

    IsQuickAccessCommand

    Indicates this command should also be available in a quick access manner if the ui permits it to be highlighted and seperated for quick access among a group of other commands

    For instance in the desktop application view commands are accessible from a drop down menu by default, but if this is true they are also directly accessible from the view itself

    Declaration
    public override bool IsQuickAccessCommand { get; }
    Property Value
    Type Description
    bool
    Overrides
    TaskBase.IsQuickAccessCommand

    Methods

    GetParameters()

    Returns a new RevertTransactionParameter with the id (set from SetIDToReverFromController(RevertTransactionParameter)) set to the id of the transaction to revert

    Declaration
    protected override Task<ServerTaskParameter> GetParameters()
    Returns
    Type Description
    Task<ServerTaskParameter>

    A new RevertTransactionParameter with the id (set from SetIDToReverFromController(RevertTransactionParameter)) set to the id of the transaction to revert

    Overrides
    TaskBase.GetParameters()

    InternalCanExecuteAsync(object)

    Returns true if there are no pending changes in this context

    Declaration
    public override Task<bool> InternalCanExecuteAsync(object parameter)
    Parameters
    Type Name Description
    object parameter

    The command parameter

    Returns
    Type Description
    Task<bool>

    True if there are no pending changes in this context

    Overrides
    EPCommand.InternalCanExecuteAsync(object?)

    InternalExecuteUserWarning()

    Prompts the user if they are certain they want to revert the selected transaction from finalized back to inprogress

    Declaration
    protected override Task<bool> InternalExecuteUserWarning()
    Returns
    Type Description
    Task<bool>

    True if the user confirms the operation should proceed

    Overrides
    TaskBase.InternalExecuteUserWarning()

    SetIDToReverFromController(RevertTransactionParameter)

    Sets the ID and ID_Label property of the param to the IHeaderTransactionalEntity of the view for this command

    Declaration
    protected virtual void SetIDToReverFromController(RevertTransactionParameter param)
    Parameters
    Type Name Description
    RevertTransactionParameter param

    The parameter for the RevertTransactionTask

    Implements

    IHasChildren<T>
    IHasChildren
    IDisposable
    IEPCommandWithDescriptor
    IEPCommand
    ICommand
    ICommandDescriptor

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    CommandExtensions.CreateCommand(EPCommand, ICommandDescriptor, CommandButtonType, bool, CommandSize)
    CommandExtensions.UpdateCommand(EPCommand, object, ICommandDescriptor, bool, CommandSize)
    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.