61 lines
1.6 KiB
C++
61 lines
1.6 KiB
C++
#if !defined(AFX_WATERRATIONDLG_H__413D5131_BFFE_401C_8631_EE26F7A205B8__INCLUDED_)
|
|
#define AFX_WATERRATIONDLG_H__413D5131_BFFE_401C_8631_EE26F7A205B8__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include "Resource.h"
|
|
|
|
// WaterRationDlg.h : header file
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CWaterRationDlg dialog
|
|
|
|
class CWaterRationDlg : public CDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
CWaterRationDlg(CWnd* pParent = NULL); // standard constructor
|
|
|
|
CString m_csWaterRation; // 返回用水指标
|
|
|
|
protected:
|
|
// Dialog Data
|
|
//{{AFX_DATA(CWaterRationDlg)
|
|
enum { IDD = IDD_WATER_RATION };
|
|
CListCtrl m_lstWaterRation;
|
|
int m_radWaterPurpose;
|
|
//}}AFX_DATA
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CWaterRationDlg)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
CString DefaultWaterRation(CString csRationRange); // 根据范围返回用水指标中值
|
|
void UpdateDataRationList(); // 更新用水指标CListCtrl显示
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CWaterRationDlg)
|
|
virtual BOOL OnInitDialog();
|
|
virtual void OnOK();
|
|
afx_msg void OnDblclkListWaterRation(NMHDR* pNMHDR, LRESULT* pResult);
|
|
afx_msg void OnRadioPurpose();
|
|
afx_msg void OnRadioPurpose1();
|
|
afx_msg void OnRadioPurpose2();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_WATERRATIONDLG_H__413D5131_BFFE_401C_8631_EE26F7A205B8__INCLUDED_)
|