chenluhua1980
8 天以前 238f41fd4edac2febc03d2e428bce7206f609e99
SourceCode/Bond/EAPSimulator/CLinkReportDlg.cpp
@@ -183,14 +183,19 @@
   CListCtrl* pListCtrl = (CListCtrl*)GetDlgItem(IDC_LIST1);
   POSITION pos = pListCtrl->GetFirstSelectedItemPosition();
   while (pos) {
      int nItem = pListCtrl->GetNextSelectedItem(pos); // 获取选中项索引
      int nItem = pListCtrl->GetNextSelectedItem(pos);
      SERVO::CCollectionEvent* pEvent = (SERVO::CCollectionEvent*)pListCtrl->GetItemData(nItem);
      events.push_back(pEvent);
   }
   std::map<unsigned int, std::vector<unsigned int>> mapEvent;
   for (auto item : events) {
      TRACE("name:%s\n", item->getName().c_str());
      std::vector<unsigned int> RPTIDs = item->getReportIds();
      mapEvent[item->getEventId()] = RPTIDs;
   }
   theApp.m_model.m_pHsmsActive->hsmsLinkEventReport(mapEvent);
}
void CLinkReportDlg::OnDestroy()