protected void OdsSchedulerHistory_Selecting(object sender, ObjectDataSourceSelectingEventArgs e) { ScheduleHistoryCondition condition = new ScheduleHistoryCondition(); condition.DateScopeBegin = DateTime.Parse(DateTime.Parse(dateScopeBegin.Value.ToString()).ToString("yyyy-MM-dd") + " 00:00:00"); condition.DateScopeEnd = DateTime.Parse(DateTime.Parse(dateScopeEnd.Value.ToString()).ToString("yyyy-MM-dd") + " 23:59:59"); condition.Status = int.Parse(cbExceptionType.SelectedItem.Value.ToString()); if (cbProvider.Value == null) { condition.Host = Guid.Empty; } else { condition.Host = new Guid(this.cbProvider.Value.ToString()); } if (cbSchedulerType.Value == null) { condition.Type = ""; } else { condition.Type = this.cbSchedulerType.Value.ToString(); } e.InputParameters.Clear(); e.InputParameters["condition"] = condition; }
/// <summary> /// 按条件查询调度历史记录 /// </summary> /// <param name="condition"></param> /// <returns></returns> public List <ESB_SCHD_HISTORY_VIEW> SearchScheduleHistory(ScheduleHistoryCondition condition) { try { return(SchedulerDataAccess.GetScheduleHistroyByCondition(condition)); } catch (Exception ex) { throw new Exception("按条件查询调度历史记录 失败!" + ex.Message); } }
public List <ESB_SCHD_HISTORY_VIEW> SearchScheduleHistory(ScheduleHistoryCondition condition) { SchedulerLogic schedulerLogic = new SchedulerLogic(); return(schedulerLogic.SearchScheduleHistory(condition)); }