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