| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- // HJHWExportDlg.h : header file
- //
- #pragma once
- #include "afxcmn.h"
- #include <ZLDataDefine.h>
- #include <map>
- #include <thread>
- #include <string>
- using namespace std;
- #define TIMER_SHOW_PROCESS 1
- extern string g_strVersion;
- extern string g_strExePath;
- extern string g_strIniPath;
- extern string g_strTempSelIMEI;
- extern int8_t g_iIDX;
- extern uint32_t g_nCount;
- // CHJHWExportDlg dialog
- class CHJHWExportDlg : public CDialogEx
- {
- // Construction
- public:
- CHJHWExportDlg(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- enum { IDD = IDD_HJHWEXPORT_DIALOG };
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- // Implementation
- protected:
- HICON m_hIcon;
- // Generated message map functions
- virtual BOOL OnInitDialog();
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- DECLARE_MESSAGE_MAP()
- public:
- afx_msg void OnBnClickedChkAll();
- //afx_msg void OnBnClickedButton2();
- CIPAddressCtrl m_address;
- CString m_where;
- bool binitdb;
- afx_msg void OnBnClickedBtnConn();
- DWORD m_topnum;
- CCriticalSection cs;
- //加载数据, 如果成功,则返回数目
- int load_data_from_db(CString top, CString where);
- //int load_data_from_db2(CString sql, std::map<CTime, VA_AlarmEx*>& map);
- //int load_data_from_db2(CString sql, std::map<CString, std::map<CTime, VA_AlarmEx*>>& map);
- //afx_msg void OnBnClickedButton1();
- CProgressCtrl m_progress;
- afx_msg void OnBnClickedButton4();
- //afx_msg void OnBnClickedBtnExportpic();
- afx_msg void OnBnClickedBtnEveErrorPic();
- afx_msg void OnBnClickedBtnEveRightPic();
- afx_msg void OnBnClickedBtnSnapshotPic();
- CIPAddressCtrl m_remoteip;
- short m_remoteport;
- afx_msg void OnBnClickedBtnSnapshotPic2();
- COleDateTime m_dtStartDate;
- COleDateTime m_dtEndDate;
- COleDateTime m_dtStartTime;
- COleDateTime m_dtEndTime;
- int m_nProcessPos;
- afx_msg void OnTimer(UINT_PTR nIDEvent);
- CComboBox m_comAlarmType;
- CComboBox m_comResult;
- CComboBox m_comErrorType;
- CComboBox m_comCarType;
- CComboBox m_comTimeSolt;
- private:
- std::thread* m_pThead;
- static void TheadProc(DWORD_PTR);
- int GetFileFromRemoteByHTTP(CString ip, WORD port);
- bool m_bWork;
- public:
- afx_msg void OnBnClickedBtnData();
- CComboBox m_cmbIMEI;
- CComboBox m_cmbMOMP;
- afx_msg void OnCbnSelchangeCmbImei();
- afx_msg void OnCbnSelchangeCmbMomp();
- afx_msg void OnCbnSelchangeCmbIdx();
- CComboBox m_cmbIDX;
- afx_msg void OnBnClickedButton2();
- afx_msg void OnBnClickedButton3();
- };
|