Пример #1
0
        private void manager_ErrorMessage(string obj, string obje1)
        {
            // ERROR LOG
            RetrieveTask retrieveTask = new RetrieveTask();

            retrieveTask.Description  = "执行失败";
            retrieveTask.RunTaskSysNo = SessionCustomer.CurrentTask.RunTaskSysNo;
            retrieveTask.SysNo        = SessionCustomer.CurrentTask.SysNo;
            retrieveTask.Status       = "E";

            TaskService task = ServiceManager.CreateTaskService();

            task.UpdateRunTaskStatus(retrieveTask);
        }
Пример #2
0
        private bool RecieveTask()
        {
            TaskService  service = Services.ServiceManager.CreateTaskService();
            RetrieveTask task    = service.GetTask(SessionCustomer.CustomerSysNo);

            if (task != null)
            {
                SessionCustomer.CurrentTask = task;
                return(!Run(task.Task));
            }
            else
            {
                return(true);
            }
        }
Пример #3
0
        private void manager_Complete()
        {
            try
            {
                RetrieveTask retrieveTask = new RetrieveTask();
                retrieveTask.Description  = "执行完成";
                retrieveTask.RunTaskSysNo = SessionCustomer.CurrentTask.RunTaskSysNo;
                retrieveTask.SysNo        = SessionCustomer.CurrentTask.SysNo;
                retrieveTask.Status       = "S";

                TaskService task = ServiceManager.CreateTaskService();
                task.UpdateRunTaskStatus(retrieveTask);
            }
            catch
            {
            }

            // next
            this.timer.Start();
        }
Пример #4
0
 public void UpdateRunTaskStatus(RetrieveTask retrieveTask)
 {
     this.Invoke("UpdateRunTaskStatus", new object[] {
         retrieveTask
     });
 }