HJHWExportDlg.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. // HJHWExportDlg.h : header file
  2. //
  3. #pragma once
  4. #include "afxcmn.h"
  5. #include <ZLDataDefine.h>
  6. #include <map>
  7. #include <thread>
  8. #include <string>
  9. using namespace std;
  10. #define TIMER_SHOW_PROCESS 1
  11. extern string g_strVersion;
  12. extern string g_strExePath;
  13. extern string g_strIniPath;
  14. extern string g_strTempSelIMEI;
  15. extern int8_t g_iIDX;
  16. extern uint32_t g_nCount;
  17. // CHJHWExportDlg dialog
  18. class CHJHWExportDlg : public CDialogEx
  19. {
  20. // Construction
  21. public:
  22. CHJHWExportDlg(CWnd* pParent = NULL); // standard constructor
  23. // Dialog Data
  24. enum { IDD = IDD_HJHWEXPORT_DIALOG };
  25. protected:
  26. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  27. // Implementation
  28. protected:
  29. HICON m_hIcon;
  30. // Generated message map functions
  31. virtual BOOL OnInitDialog();
  32. afx_msg void OnPaint();
  33. afx_msg HCURSOR OnQueryDragIcon();
  34. DECLARE_MESSAGE_MAP()
  35. public:
  36. afx_msg void OnBnClickedChkAll();
  37. //afx_msg void OnBnClickedButton2();
  38. CIPAddressCtrl m_address;
  39. CString m_where;
  40. bool binitdb;
  41. afx_msg void OnBnClickedBtnConn();
  42. DWORD m_topnum;
  43. CCriticalSection cs;
  44. //加载数据, 如果成功,则返回数目
  45. int load_data_from_db(CString top, CString where);
  46. //int load_data_from_db2(CString sql, std::map<CTime, VA_AlarmEx*>& map);
  47. //int load_data_from_db2(CString sql, std::map<CString, std::map<CTime, VA_AlarmEx*>>& map);
  48. //afx_msg void OnBnClickedButton1();
  49. CProgressCtrl m_progress;
  50. afx_msg void OnBnClickedButton4();
  51. //afx_msg void OnBnClickedBtnExportpic();
  52. afx_msg void OnBnClickedBtnEveErrorPic();
  53. afx_msg void OnBnClickedBtnEveRightPic();
  54. afx_msg void OnBnClickedBtnSnapshotPic();
  55. CIPAddressCtrl m_remoteip;
  56. short m_remoteport;
  57. afx_msg void OnBnClickedBtnSnapshotPic2();
  58. COleDateTime m_dtStartDate;
  59. COleDateTime m_dtEndDate;
  60. COleDateTime m_dtStartTime;
  61. COleDateTime m_dtEndTime;
  62. int m_nProcessPos;
  63. afx_msg void OnTimer(UINT_PTR nIDEvent);
  64. CComboBox m_comAlarmType;
  65. CComboBox m_comResult;
  66. CComboBox m_comErrorType;
  67. CComboBox m_comCarType;
  68. CComboBox m_comTimeSolt;
  69. private:
  70. std::thread* m_pThead;
  71. static void TheadProc(DWORD_PTR);
  72. int GetFileFromRemoteByHTTP(CString ip, WORD port);
  73. bool m_bWork;
  74. public:
  75. afx_msg void OnBnClickedBtnData();
  76. CComboBox m_cmbIMEI;
  77. CComboBox m_cmbMOMP;
  78. afx_msg void OnCbnSelchangeCmbImei();
  79. afx_msg void OnCbnSelchangeCmbMomp();
  80. afx_msg void OnCbnSelchangeCmbIdx();
  81. CComboBox m_cmbIDX;
  82. afx_msg void OnBnClickedButton2();
  83. afx_msg void OnBnClickedButton3();
  84. };