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);
 }
Exemplo n.º 2
0
 public CommandContainerButton(AutomationCommandData commandContainer, Ticket selectedTicket)
 {
     _commandContainer = commandContainer;
     _selectedTicket   = selectedTicket;
     if (Values.Count > 0 && commandContainer.AutomationCommand.ToggleValues)
     {
         SelectedValue = Values.ElementAt(0);
     }
 }
Exemplo n.º 3
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 });
 }
Exemplo n.º 9
0
 private void OnExecuteAutomationCommand(AutomationCommandData obj)
 {
     _automationService.NotifyEvent(RuleEventNames.AutomationCommandExecuted, new { Ticket = SelectedTicket, AutomationCommandName = obj.AutomationCommand.Name });
 }
Exemplo n.º 10
0
 private bool CanExecuteAutomationCommand(AutomationCommandData arg)
 {
     return SelectedEntity != null;
 }
Exemplo n.º 11
0
 private void OnExecuteAutomationCommand(AutomationCommandData obj)
 {
     _applicationState.NotifyEvent(RuleEventNames.AutomationCommandExecuted, new { TicketId = GetLastTicketId(), AutomationCommandName = obj.AutomationCommand.Name, CommandValue = GetTicketIds() });
 }
Exemplo n.º 12
0
 private void OnExecuteAutomationCommand(AutomationCommandData obj)
 {
     _applicationState.NotifyEvent(RuleEventNames.AutomationCommandExecuted, new { TicketId = GetLastTicketId(), AutomationCommandName = obj.AutomationCommand.Name, CommandValue = GetTicketIds() });
 }
Exemplo n.º 13
0
 private bool CanExecuteAutomationCommand(AutomationCommandData arg)
 {
     return(SelectedEntity != null);
 }
Exemplo n.º 14
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;
 }
Exemplo n.º 15
0
 private void OnSelectAutomationCommand(AutomationCommandData obj)
 {
     obj.PublishEvent(EventTopicNames.HandlerRequested, true);
 }
Exemplo n.º 16
0
 private bool CanSelectAutomationCommand(AutomationCommandData arg)
 {
     return(arg.CanExecute(SelectedTicket) && _expressionService.EvalCommand(FunctionNames.CanExecuteAutomationCommand, arg.AutomationCommand, new { Ticket = SelectedTicket }, true));
 }