Search Results for

    Show / Hide Table of Contents

    Class RevertTransactionBase<T>

    A view command that will create a task to revert a Finalized IHeaderTransactionalEntity back to InProgress

    This will remove all gl posting entries (as they are only created at 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
    System.Object
    BaseHasChildren<EPCommandWithDescriptor>
    EPCommand
    EPCommandWithDescriptor
    ViewCommand
    TaskBase
    RevertTransactionBase<T>
    Implements
    IHasChildren<EPCommandWithDescriptor>
    IHasChildren
    System.IDisposable
    IEPCommandWithDescriptor
    IEPCommand
    System.Windows.Input.ICommand
    ICommandDescriptor
    Inherited Members
    TaskBase.IncludeInSimple
    TaskBase.Title
    TaskBase.Description
    TaskBase.Key
    TaskBase.ModifierKeys
    TaskBase.ToolTip
    TaskBase.TaskType
    TaskBase.TaskParamType
    TaskBase.GetUserModifiedParametersFromDefault(IModelLayoutCommon, ServerTaskParameter)
    TaskBase.InternalExecuteAsync(Object)
    TaskBase.ProcessExecute(ServerTaskParameter, Boolean)
    ViewCommand.Type
    EPCommandWithDescriptor.ICommandDescriptor.Title
    EPCommandWithDescriptor.OverlayIconID
    EPCommandWithDescriptor.Parameter
    EPCommandWithDescriptor.HelpURL
    EPCommand.ActiveDisplayerFromOwner
    EPCommand.LoadChildrenAsync()
    EPCommand.ReloadChildrenOnEachOpen
    EPCommand.HasChildCommands
    EPCommand.SetToggler(IHasToggleStatus)
    EPCommand.Seperator
    EPCommand.Owner
    EPCommand.CanExecuteChanged
    EPCommand.OnCanExecuteChanged()
    EPCommand.SubscribeToLayoutChange
    EPCommand.OnLayoutsChanged(IModelLayouHost, LayoutChangeEventArgs)
    EPCommand.ICommand.Execute(Object)
    EPCommand.ExternalExecute(Object)
    EPCommand.InternalExecute(Object)
    EPCommand.LockExecution
    EPCommand.ICommand.CanExecute(Object)
    EPCommand.ExternalCanExecute(Object)
    EPCommand.InternalCanExecuteAsync(Object)
    EPCommand.Toggler
    EPCommand.CustomType
    EPCommand.GetModifierText(IEPCommand)
    EPCommand.RemoveEventHandlersOnDispose()
    EPCommand.Dispose(Boolean)
    EPCommand.Dispose()
    BaseHasChildren<EPCommandWithDescriptor>.Order
    BaseHasChildren<EPCommandWithDescriptor>.Children
    BaseHasChildren<EPCommandWithDescriptor>.AddChild(EPCommandWithDescriptor)
    BaseHasChildren<EPCommandWithDescriptor>.DeleteChild(EPCommandWithDescriptor)
    BaseHasChildren<EPCommandWithDescriptor>.ClearChildren()
    BaseHasChildren<EPCommandWithDescriptor>.Parent
    BaseHasChildren<EPCommandWithDescriptor>.AddChild(IHasChildren)
    BaseHasChildren<EPCommandWithDescriptor>.DeleteChild(IHasChildren)
    BaseHasChildren<EPCommandWithDescriptor>.IHasChildren.Children
    BaseHasChildren<EPCommandWithDescriptor>.IHasChildren.Parent
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: LemonEdge.Client.Core.Commands.ViewCommands
    Assembly: 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(ModelViewController)

    Creates a new RevertTransactionBase command

    Declaration
    public RevertTransactionBase(ModelViewController controller)
    Parameters
    Type Name Description
    ModelViewController controller

    The controller that holds the IHeaderTransactionalEntity to revert

    Properties

    IconID

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

    InternalExecuteWithChanges

    Can not be executed with pending changes

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

    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
    System.Threading.Tasks.Task<ServerTaskParameter>

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

    Overrides
    TaskBase.GetParameters()

    InternalCanExecute(Object)

    Returns true if there are no pending changes in this context

    Declaration
    public override bool InternalCanExecute(object parameter)
    Parameters
    Type Name Description
    System.Object parameter

    The command parameter

    Returns
    Type Description
    System.Boolean

    True if there are no pending changes in this context

    Overrides
    EPCommand.InternalCanExecute(Object)

    InternalExecuteUserWarning()

    Prmopts 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
    System.Threading.Tasks.Task<System.Boolean>

    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 LemonEdge.API.Tasks.RevertTransactionTask

    Implements

    IHasChildren<T>
    IHasChildren
    System.IDisposable
    IEPCommandWithDescriptor
    IEPCommand
    System.Windows.Input.ICommand
    ICommandDescriptor

    Extension Methods

    MiscExtensions.SetIfNotEqual<T, P>(T, Expression<Func<T, P>>, P)
    ReflectionExtensions.ClearEventInvocations(Object, String)
    StringExtensions.ToCSVFormatString(Object, Type)
    SQLExtensions.ToSQLValue(Object, Boolean)
    CommandExtensions.CreateCommand(EPCommand, ICommandDescriptor, CommandButtonType, Boolean, CommandSize)
    CommandExtensions.UpdateCommand(EPCommand, Object, ICommandDescriptor, Boolean, CommandSize)
    In This Article
    Back to top © LemonTree Software Ltd. All rights reserved.