Esempio n. 1
0
        public void Run()
        {
            Logger.Info($"{nameof(Run)}");
            var report = ExecutorService.Setup(ScriptService.Current, ScriptService);

            NavMgr.NavigateTo($"/executor/{report.Id}");
            ExecutorService.Run(report);
        }
Esempio n. 2
0
 private void OnItemClicked(string colName, Job report)
 {
     switch (colName)
     {
     case nameof(Script.Run):
         var newReport = ExecutorService.Setup(report, ScriptService);
         NavMgr.NavigateTo($"/executor/{report.Id}");
         ExecutorService.Run(newReport);
         break;
     }
 }
Esempio n. 3
0
        private void OnItemClicked(string colName, NatsMessage message)
        {
            switch (colName)
            {
            case nameof(NatsMessage.Inspect):
                Inspector.Data = message.Data;
                NavMgr.NavigateTo("/inspector");
                break;

            case nameof(NatsMessage.Pin):
                NatsService.Save(message.Clone());
                break;
            }
        }
Esempio n. 4
0
        private void OnItemClicked(string colName, Script script)
        {
            switch (colName)
            {
            case nameof(Script.Load):
                OnItemDoubleClicked(colName, script);
                break;

            case nameof(Script.Run):
                var report = ExecutorService.Setup(script, ScriptService);
                NavMgr.NavigateTo($"/executor/{report.Id}");
                ExecutorService.Run(report);
                break;
            }
        }
 protected void VldFrm()
 {
     try {
         if (EsEdt)
         {
             _PrdBO.Grd(Prd);
         }
         else
         {
             _ = _PrdBO.Cre(Prd);
         }
         NavMgr.NavigateTo("/Prds");
     } catch (Exception ex) {
         (Msg, MsgCls) = Util.Msg_Set(ex.Message, "alert-danger");
     }
 }
Esempio n. 6
0
        private void OnItemClicked(string colName, NatsMessage message)
        {
            switch (colName)
            {
            case nameof(NatsMessage.Inspect):
                Inspector.Data = message.Data;
                NavMgr.NavigateTo("/inspector");
                break;

            case nameof(NatsMessage.Run):
                Publish(message.Subject, message.Data);
                break;

            case nameof(NatsMessage.Trash):
                NatsService.Configuration.SavedMessages.Remove(message);
                NatsService.Save();
                MessageGrid.Remove(message);
                break;
            }
        }
 protected void Back_Click()
 {
     NavMgr.NavigateTo("/prds");
 }
Esempio n. 8
0
 private void OnItemDoubleClicked(string colName, Job report)
 {
     Logger.Info($"Set current report: {report.Name}");
     NavMgr.NavigateTo($"/executor/{report.Id}");
 }
Esempio n. 9
0
 private void OnItemDoubleClicked(string colName, Script script)
 {
     Logger.Info($"Set current script: {script.Name}");
     ScriptService.SetCurrent(script);
     NavMgr.NavigateTo("/editor");
 }