private async void Uctl_ElasticQuery_sys_process_log_QueryCommandDetailEnevt1(string vh_id, DateTime query_start_time) { DateTime dateTimeFrom = query_start_time.AddSeconds(-30); DateTime dateTimeTo = query_start_time.AddHours(1); dateTimePicker1.Value = dateTimeFrom; dateTimePicker2.Value = dateTimeTo; dateTimeFrom = new DateTime(dateTimeFrom.Year, dateTimeFrom.Month, dateTimeFrom.Day, dateTimeFrom.Hour, dateTimeFrom.Minute, dateTimeFrom.Second, DateTimeKind.Local); dateTimeTo = new DateTime(dateTimeTo.Year, dateTimeTo.Month, dateTimeTo.Day, dateTimeTo.Hour, dateTimeTo.Minute, dateTimeTo.Second, DateTimeKind.Local); List <RecordReportInfo> record_report_info = null; await Task.Run(() => record_report_info = sysExcuteQualityQueryService.loadRecodeReportInfo(dateTimeFrom, dateTimeTo, vh_id, null)); record_report_info = record_report_info.OrderBy(info => info.Timestamp).ToList(); cb_vh_id.Text = vh_id; uctl_ElasticQuery_System_Process1.setDataItemsSource(record_report_info); tab_main.SelectedIndex = 2; }
private async void Uctl_ElasticQuery_CMDExcute_1_QueryCommandDetailEnevt(object sender, string cmd_id) { try { DateTime dateTimeFrom = System.Convert.ToDateTime(m_StartDTCbx.Value); DateTime dateTimeTo = DateTime.Now; dateTimeFrom = new DateTime(dateTimeFrom.Year, dateTimeFrom.Month, dateTimeFrom.Day, dateTimeFrom.Hour, dateTimeFrom.Minute, dateTimeFrom.Second, DateTimeKind.Local); dateTimeTo = new DateTime(dateTimeTo.Year, dateTimeTo.Month, dateTimeTo.Day, dateTimeTo.Hour, dateTimeTo.Minute, dateTimeTo.Second, DateTimeKind.Local); List <RecordReportInfo> record_report_info = null; await Task.Run(() => record_report_info = sysExcuteQualityQueryService.loadRecodeReportInfo(dateTimeFrom, dateTimeTo, null, cmd_id)); record_report_info = record_report_info.OrderBy(info => info.Timestamp).ToList(); frmquery.CommunicationLog_Click(); frmquery._CommunicationLog_Click(cmd_id); } catch (Exception ex) { logger.Error(ex, "Exception"); } }
private async void Uctl_ElasticQuery_sys_process_log_QueryCommandDetailEnevt1(string vh_id, DateTime query_start_time) { try { DateTime dateTimeFrom = query_start_time.AddSeconds(-30); DateTime dateTimeTo = query_start_time.AddHours(1); m_StartDTCbx.Value = dateTimeFrom; m_EndDTCbx.Value = dateTimeTo; dateTimeFrom = new DateTime(dateTimeFrom.Year, dateTimeFrom.Month, dateTimeFrom.Day, dateTimeFrom.Hour, dateTimeFrom.Minute, dateTimeFrom.Second, DateTimeKind.Local); dateTimeTo = new DateTime(dateTimeTo.Year, dateTimeTo.Month, dateTimeTo.Day, dateTimeTo.Hour, dateTimeTo.Minute, dateTimeTo.Second, DateTimeKind.Local); List <RecordReportInfo> record_report_info = null; await Task.Run(() => record_report_info = sysExcuteQualityQueryService.loadRecodeReportInfo(dateTimeFrom, dateTimeTo, vh_id, null)); record_report_info = record_report_info.OrderBy(info => info.Timestamp).ToList(); CommunLog_VhID.Text = vh_id; uctl_ElasticQuery_sys_process_log.setDataItemsSource(record_report_info); } catch (Exception ex) { logger.Error(ex, "Exception"); } }
private async void Uctl_ElasticQuery_CMDExcute_1_QueryCommandDetailEnevt(object sender, string cmd_id) { try { DateTime dateTimeFrom = m_StartDTCbx.Value; DateTime dateTimeTo = DateTime.Now; m_StartDTCbx.Value = dateTimeFrom; m_EndDTCbx.Value = dateTimeTo; dateTimeFrom = new DateTime(dateTimeFrom.Year, dateTimeFrom.Month, dateTimeFrom.Day, dateTimeFrom.Hour, dateTimeFrom.Minute, dateTimeFrom.Second, DateTimeKind.Local); dateTimeTo = new DateTime(dateTimeTo.Year, dateTimeTo.Month, dateTimeTo.Day, dateTimeTo.Hour, dateTimeTo.Minute, dateTimeTo.Second, DateTimeKind.Local); List <RecordReportInfo> record_report_info = null; await Task.Run(() => record_report_info = sysExcuteQualityQueryService.loadRecodeReportInfo(dateTimeFrom, dateTimeTo, null, cmd_id)); record_report_info = record_report_info.OrderBy(info => info.Timestamp).ToList(); CommunLog_MCSCmdID.Text = cmd_id; uctl_ElasticQuery_sys_process_log.setDataItemsSource(record_report_info); } catch (Exception ex) { logger.Error(ex, "Exception"); } }