| | |
| | | #include <regex> |
| | | #include "CTerminalDisplayDlg.h" |
| | | #include "CEDEventReportDlg.h" |
| | | #include "CDefineReportsDlg.h" |
| | | #include "CLinkReportDlg.h" |
| | | |
| | | |
| | | #ifdef _DEBUG |
| | |
| | | ON_BN_CLICKED(IDC_BUTTON_TERMINAL_DISPLAY, &CEAPSimulatorDlg::OnBnClickedButtonTerminalDisplay) |
| | | ON_BN_CLICKED(IDC_BUTTON_ED_EVENT_REPORT, &CEAPSimulatorDlg::OnBnClickedButtonEdEventReport) |
| | | ON_BN_CLICKED(IDC_BUTTON_ED_ALARM_REPORT, &CEAPSimulatorDlg::OnBnClickedButtonEdAlarmReport) |
| | | ON_BN_CLICKED(IDC_BUTTON_DEFINE_REPORT, &CEAPSimulatorDlg::OnBnClickedButtonDefineReport) |
| | | ON_BN_CLICKED(IDC_BUTTON_LINE_REPORT, &CEAPSimulatorDlg::OnBnClickedButtonLineReport) |
| | | ON_BN_CLICKED(IDC_BUTTON_CONFIGURE_SPOOLING, &CEAPSimulatorDlg::OnBnClickedButtonConfigureSpooling) |
| | | END_MESSAGE_MAP() |
| | | |
| | | |
| | |
| | | GetDlgItem(IDC_BUTTON_TERMINAL_DISPLAY)->EnableWindow(enabled); |
| | | GetDlgItem(IDC_BUTTON_ED_EVENT_REPORT)->EnableWindow(enabled); |
| | | GetDlgItem(IDC_BUTTON_ED_ALARM_REPORT)->EnableWindow(enabled); |
| | | GetDlgItem(IDC_BUTTON_DEFINE_REPORT)->EnableWindow(enabled); |
| | | GetDlgItem(IDC_BUTTON_LINE_REPORT)->EnableWindow(enabled); |
| | | GetDlgItem(IDC_BUTTON_CONFIGURE_SPOOLING)->EnableWindow(enabled); |
| | | } |
| | | |
| | | void CEAPSimulatorDlg::OnBnClickedButtonConnect() |
| | |
| | | enable == 1 ? _T("Disable Alarm Report") : _T("Enable Alarm Report")); |
| | | ::SetProp(GetDlgItem(IDC_BUTTON_ED_ALARM_REPORT)->m_hWnd, _T("Enable"), (void*)enable); |
| | | } |
| | | |
| | | void CEAPSimulatorDlg::OnBnClickedButtonDefineReport() |
| | | { |
| | | CDefineReportsDlg dlg; |
| | | dlg.DoModal(); |
| | | } |
| | | |
| | | void CEAPSimulatorDlg::OnBnClickedButtonLineReport() |
| | | { |
| | | CLinkReportDlg dlg; |
| | | dlg.DoModal(); |
| | | } |
| | | |
| | | void CEAPSimulatorDlg::OnBnClickedButtonConfigureSpooling() |
| | | { |
| | | std::map<unsigned int, std::set<unsigned int>> spoolingConfig; |
| | | |
| | | // test clear all |
| | | // theApp.m_model.m_pHsmsActive->hsmsConfigureSpooling(spoolingConfig); |
| | | |
| | | |
| | | // test add s2[1,3,5]; |
| | | // spoolingConfig[2].insert(1); |
| | | // spoolingConfig[2].insert(3); |
| | | // spoolingConfig[2].insert(5); |
| | | // spoolingConfig[3].insert(2); |
| | | // spoolingConfig[3].insert(4); |
| | | // spoolingConfig[3].insert(6); |
| | | // theApp.m_model.m_pHsmsActive->hsmsConfigureSpooling(spoolingConfig); |
| | | |
| | | // test clear S2 |
| | | // spoolingConfig[2].clear(); |
| | | // theApp.m_model.m_pHsmsActive->hsmsConfigureSpooling(spoolingConfig); |
| | | |
| | | spoolingConfig[5].insert(66); |
| | | theApp.m_model.m_pHsmsActive->hsmsConfigureSpooling(spoolingConfig); |
| | | } |