-
Notifications
You must be signed in to change notification settings - Fork 1
/
轨道清洁检测车监控系统Dlg.h
147 lines (109 loc) · 3.01 KB
/
轨道清洁检测车监控系统Dlg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
// 轨道清洁检测车监控系统Dlg.h : header file
//
//{{AFX_INCLUDES()
//}}AFX_INCLUDES
#if !defined(AFX_DLG_H__26DE1B04_27D5_4B4F_A8C1_C702549E8F54__INCLUDED_)
#define AFX_DLG_H__26DE1B04_27D5_4B4F_A8C1_C702549E8F54__INCLUDED_
#include "OutsideTemDlg.h" // Added by ClassView
#include "InsideTempDlg.h"
#include "VoltDlg.h"
#include "WaterTempDlg.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CMyDlg dialog
#include "TeeInclude.h"
class CMyDlg : public CDialog
{
// Construction
public:
void RaiseAlarm(int setID,CString paraType);
void dealTimer(int teeID,CString chartname);
void ChartInit(int teeID,CString chartname);
void DatabaseDisconnect();
_RecordsetPtr JudgeType(int type);
void ReadTemp();
void DatabaseConnect();
CMyDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CMyDlg)
enum { IDD = IDD_DIALOG_MAIN };
CString m_frontWind;
CString m_frontRight;
CString m_frontLeft;
CString m_backRight;
CString m_backLeft;
CString m_dirtyWater;
CString m_cleanWater;
CString m_backWind1;
CString m_backWind2;
CString m_longitude;
CString m_latitude;
CString m_highpre;
CString m_lowpre;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CMyDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnAbout();
afx_msg void OnButtonOutsideTem();
afx_msg void OnButtonInsideTemp();
afx_msg void OnButtonWaterTemp();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnCleanWater();
afx_msg void OnDirtyWater();
afx_msg void OnWaterTemp();
afx_msg void OnDestroy();
afx_msg void OnWindPre();
afx_msg void OnMaximum();
afx_msg void OnAlarm();
afx_msg void OnAnalize();
afx_msg void OnButtonVolt();
afx_msg void OnButtonWatchVideo();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
//Dialog
COutsideTemDlg m_outsideTempDlg;
CInsideTempDlg m_insideTempDlg;
CVoltDlg m_voltDlg;
CWaterTempDlg m_waterTempDlg;
//record count
int tcount;
int vcount;
//four chart display in main ui
CTChart m_oChart;
CTChart m_iChart;
CTChart m_vChart;
CTChart m_wChart;
//for ado connection
_ConnectionPtr m_pConnection;
_RecordsetPtr m_pRecordset;
_RecordsetPtr m_pCurrentset[10];
double m_RecordNum;
//for alarm
CString m_AlarmTime;
CString m_AlarmArea;
CString m_AlarmCurrent;
int m_AlarmFlag;
//time
COleDateTime CurTime;
COleDateTimeSpan tmSpan;
CString csTime;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLG_H__26DE1B04_27D5_4B4F_A8C1_C702549E8F54__INCLUDED_)