73 lines
2.0 KiB
C++
73 lines
2.0 KiB
C++
#if !defined(AFX_SANITARYDANGDLG_H__EAD18032_B2C0_4B76_9835_D546AFCB1EC1__INCLUDED_)
|
|
#define AFX_SANITARYDANGDLG_H__EAD18032_B2C0_4B76_9835_D546AFCB1EC1__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// SanitaryDangDlg.h : header file
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CSanitaryDangDlg dialog
|
|
#include "Resource.h"
|
|
#include "wdgrid.h"
|
|
|
|
class TGridSanitary : public WDGrid
|
|
{
|
|
protected:
|
|
virtual bool OnModified(WDGridCell&cell,CString &text);
|
|
virtual bool OnBeforeDeleteRow();
|
|
public:
|
|
TGridSanitary();
|
|
std::vector<std::pair<double, double> > m_vecData;
|
|
};
|
|
|
|
static UINT WM_add_event_ok = RegisterWindowMessage(_T("User")); // zxl 2014.01.07 add
|
|
class CSanitaryDangDlg : public CDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
CSanitaryDangDlg(CWnd* pParent = NULL); // standard constructor
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CSanitaryDangDlg)
|
|
enum { IDD = IDD_SANITARY_DANG };
|
|
TGridSanitary m_listSel;
|
|
CListCtrl m_listCtrl;
|
|
CString m_csNg;
|
|
double m_nBigQ;
|
|
double m_nAllQ;
|
|
//}}AFX_DATA
|
|
int m_iMode;
|
|
BOOL m_bMultSel;
|
|
double m_nRet, m_nRet2;
|
|
CString m_csRetName;
|
|
XStringList m_lstSel;
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CSanitaryDangDlg)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
afx_msg LRESULT Onadd_event_ok(WPARAM wParam, LPARAM lParam);
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CSanitaryDangDlg)
|
|
virtual BOOL OnInitDialog();
|
|
virtual void OnOK();
|
|
afx_msg void OnDblclkListDang(NMHDR* pNMHDR, LRESULT* pResult);
|
|
afx_msg void OnButtonCleanup();
|
|
afx_msg BOOL PreTranslateMessage(MSG* pMsg);
|
|
afx_msg void Delete();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_SANITARYDANGDLG_H__EAD18032_B2C0_4B76_9835_D546AFCB1EC1__INCLUDED_)
|