private bool CanExecuteAutomationCommand(AutomationCommandData arg) { if (arg == null) return false; if (_paymentEditor.SelectedTicket != null && _paymentEditor.SelectedTicket.IsLocked && arg.VisualBehaviour == 1) return false; if (!arg.CanExecute(_paymentEditor.SelectedTicket)) return false; return _expressionService.EvalCommand(FunctionNames.CanExecuteAutomationCommand, arg.AutomationCommand, new { Ticket = _paymentEditor.SelectedTicket }, true); }
public CommandContainerButton(AutomationCommandData commandContainer, Ticket selectedTicket) { _commandContainer = commandContainer; _selectedTicket = selectedTicket; if (Values.Count > 0 && commandContainer.AutomationCommand.ToggleValues) { SelectedValue = Values.ElementAt(0); } }
private bool CanExecuteAutomationCommand(AutomationCommandData arg) { if (GetTenderedValue() <= 0) { return(false); } if (SelectedTicket != null && SelectedTicket.Locked && arg != null && arg.VisualBehaviour == 1) { return(false); } return(true); }
private bool CanExecuteAutomationCommand(AutomationCommandData arg) { if (arg == null) { return(false); } if (_paymentEditor.SelectedTicket != null && _paymentEditor.SelectedTicket.IsLocked && arg.VisualBehaviour == 1) { return(false); } if (!arg.CanExecute(_paymentEditor.SelectedTicket)) { return(false); } return(_expressionService.EvalCommand(FunctionNames.CanExecuteAutomationCommand, arg.AutomationCommand, new { Ticket = _paymentEditor.SelectedTicket }, true)); }
private void OnExecuteAutomationCommand(AutomationCommandData obj) { _automationService.NotifyEvent(RuleEventNames.AutomationCommandExecuted, new { Ticket = _paymentEditor.SelectedTicket, AutomationCommandName = obj.AutomationCommand.Name }); }
private void OnSelectAutomationCommand(AutomationCommandData obj) { obj.PublishEvent(EventTopicNames.HandlerRequested, true); }
private bool CanSelectAutomationCommand(AutomationCommandData arg) { return arg.CanExecute(SelectedTicket) && _expressionService.EvalCommand(FunctionNames.CanExecuteAutomationCommand, arg.AutomationCommand, new { Ticket = SelectedTicket }, true); }
private void OnExecuteAutomationCommand(AutomationCommandData obj) { _applicationState.NotifyEvent(RuleEventNames.AutomationCommandExecuted, new { Ticket = _paymentEditor.SelectedTicket, AutomationCommandName = obj.AutomationCommand.Name }); }
private void OnExecuteAutomationCommand(AutomationCommandData obj) { _automationService.NotifyEvent(RuleEventNames.AutomationCommandExecuted, new { Ticket = SelectedTicket, AutomationCommandName = obj.AutomationCommand.Name }); }
private bool CanExecuteAutomationCommand(AutomationCommandData arg) { return SelectedEntity != null; }
private void OnExecuteAutomationCommand(AutomationCommandData obj) { _applicationState.NotifyEvent(RuleEventNames.AutomationCommandExecuted, new { TicketId = GetLastTicketId(), AutomationCommandName = obj.AutomationCommand.Name, CommandValue = GetTicketIds() }); }
private bool CanExecuteAutomationCommand(AutomationCommandData arg) { return(SelectedEntity != null); }
private bool CanExecuteAutomationCommand(AutomationCommandData arg) { if (GetTenderedValue() <= 0) return false; if (SelectedTicket != null && SelectedTicket.Locked && arg != null && arg.VisualBehaviour == 1) return false; return true; }
private bool CanSelectAutomationCommand(AutomationCommandData arg) { return(arg.CanExecute(SelectedTicket) && _expressionService.EvalCommand(FunctionNames.CanExecuteAutomationCommand, arg.AutomationCommand, new { Ticket = SelectedTicket }, true)); }