示例#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});
 }