Class FinaliseTransactionsViewCommand
A view command that will create a task to finalize transactions for a given entity and up to the given date
Inheritance
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Commands.ViewCommands
Assembly: LemonEdge.ClientCore.dll
Syntax
[CommandDescriptorOptions(Command.FinaliseTransactions, typeof(FinaliseTransactionsParameter))]
public class FinaliseTransactionsViewCommand : TaskBase, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IDisposable, IEPCommandWithDescriptor, IEPCommand, ICommand, ICommandDescriptor
Constructors
FinaliseTransactionsViewCommand(IRootController, ModelViewController)
Declaration
public FinaliseTransactionsViewCommand(IRootController root, ModelViewController controller)
Parameters
Type | Name | Description |
---|---|---|
IRootController | root | |
ModelViewController | controller |
Properties
IconID
Declaration
public override Guid IconID { get; }
Property Value
Type | Description |
---|---|
Guid |
Overrides
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
Title
The title of this command
Declaration
public override string Title { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetParameters()
A function that returns the default parameters to use when creating this task
Used in conjunction with GetUserModifiedParametersFromDefault(IModelLayoutCommon, ServerTaskParameter) so hardcoded values can automatically be set, and the user can be prompted for any other required parameter selections if required
Declaration
protected override Task<ServerTaskParameter> GetParameters()
Returns
Type | Description |
---|---|
Task<ServerTaskParameter> | A task with the parameters, allowing optional popups to be shown to the user for parameter selection |
Overrides
Remarks
For instance:
protected override Task<ServerTaskParameter> GetParameters()
{
var ps = new API.Tasks.Parameters.ResetAccountParameter();
ps.AccountID = accountID;
ps.AccountID_Label = accountName;
return GetUserModifiedParametersFromDefault(Owner, ps);
}
InternalCanExecute(object)
Returns if this command can be executed or not from the client application UI
You must override InternalCanExecute(object?) or InternalCanExecuteAsync(object?) in order to implement if it can be executed
Declaration
public override bool InternalCanExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
object | parameter | The command parameter |
Returns
Type | Description |
---|---|
bool | If this command can be executed or not from the client application UI |