/// <summary> /// 検索結果を表示する /// </summary> /// <param name="logType"></param> /// <param name="sdate"></param> /// <param name="edate"></param> private void BindLogList(LogType logType, DateTime?sdate, DateTime?edate) { DataSet result = null; using (SqlAccessor accessor = Accessor.AccessorFactory.GetSqlAccessor()) { result = accessor.GetLogList(logType, sdate, edate); } if (result != null || result.Tables.Count > 1) { //件数 int count = Utility.DBToInteger(result.Tables[0].Rows[0]["LOGCOUNT"]); if (count > MAX_DISPLAY_NUM) { RSM.ShowMessage(this, RS.Exclamations.MaxDisplayNumOvered); } DataTable datasource = result.Tables[1]; if (logType == LogType.System) { this.dtgSystemLog.DataSource = datasource; this.dtgEventLog.DataSource = null; this.dtgEventLog.Visible = false; this.dtgSystemLog.Visible = true; } else { this.dtgEventLog.DataSource = datasource; this.dtgSystemLog.DataSource = null; this.dtgSystemLog.Visible = false; this.dtgEventLog.Visible = true; } } }