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); }
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); } }
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(); }
public void UpdateRunTaskStatus(RetrieveTask retrieveTask) { this.Invoke("UpdateRunTaskStatus", new object[] { retrieveTask }); }