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