public void ReportExecuteResult(ReportModel model) { var status = model.Status == 1 ? JobExecuteStatus.Success : JobExecuteStatus.Fail; var dao = new Data.JobExecuteDAO(); dao.Update(model.ID, status, model.StartTime, model.EndTime, model.ExecuteTime, model.Output); var data = dao.Get(model.ID); ClientManager.Instance.NotifyOnJobExecuted(data); }
public void NotifyJobExecuted(Guid executeID) { var dao = new Data.JobExecuteDAO(); var model = dao.Get(executeID); ClientManager.Instance.NotifyOnJobExecuted(model); }