Пример #1
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();
        }
Пример #2
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);
        }
Пример #3
0
 public void UpdateRunTaskStatus(RetrieveTask retrieveTask)
 {
     this.Invoke("UpdateRunTaskStatus", new object[] {
                 retrieveTask});
 }