#if !defined(AFX_CESSPOOLCALCDLG_H__14AF13EE_EB95_4D47_B50F_0EA19EE2B308__INCLUDED_) #define AFX_CESSPOOLCALCDLG_H__14AF13EE_EB95_4D47_B50F_0EA19EE2B308__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // CesspoolCalcDlg.h : header file // ///////////////////////////////////////////////////////////////////////////// // CCesspoolCalcDlg dialog #include "Resource.h" class SUseUnitData { public: SUseUnitData(); SUseUnitData(CString csName, CString csUnit, int iNum, double nStdUse, double nFactor, double nTime){ m_csName = csName; m_csUnit = csUnit; m_nStdUse = nStdUse; m_nFactor = nFactor; m_nTime = nTime; m_iNum = iNum; }; CString m_csName; //用水部位名称 CString m_csUnit; //单位 int m_iNum; double m_nStdUse; //用水标准 double m_nFactor; //变化系数 double m_nTime; //用水时间 double m_nMostByDate; // Qd = 数量×用水标准÷1000 double m_nMostByHour; // Qh = Qd * 变化系数 / 用水时间 double m_nAverage; // = Qd / 用水时间 static int SortByItem(const SUseUnitData *, const SUseUnitData *); }; class CCesspoolCalcDlg : public CDialog { // Construction public: CCesspoolCalcDlg(CWnd* pParent = NULL); // standard constructor void SetPoolLen(double dLen); void SetPoolWidth(double dW); double GetPoolLen(); double GetPoolWidth(); // Dialog Data //{{AFX_DATA(CCesspoolCalcDlg) enum { IDD = IDD_CESSPOOL_CALC }; CListCtrl m_listCtrl; int m_iAllPeple; int m_iCyc; int m_iTime; double m_nCoefficient; int m_iPercentFresh; int m_iPercentLater; double m_nCapacity; CString m_csRet1; CString m_csRet2; CString m_csAllRet; CString m_strCapacity; BOOL m_bWndChkNumber1; BOOL m_bWndChkNumber2; //}}AFX_DATA BOOL m_bLookup; // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CCesspoolCalcDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: void SetupPoolData(double nV); // Generated message map functions //{{AFX_MSG(CCesspoolCalcDlg) virtual BOOL OnInitDialog(); virtual void OnOK(); afx_msg void OnButtonPercent(); afx_msg void OnButtonCapacity(); afx_msg void OnButtonLookup(); afx_msg void OnDestroy(); afx_msg void OnClose(); afx_msg void OnCheckNumber1(); afx_msg void OnCheckNumber2(); //}}AFX_MSG DECLARE_MESSAGE_MAP() private: double m_dPoolLen; //保存长度 double m_dPoolWidth; //保存宽度 }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_CESSPOOLCALCDLG_H__14AF13EE_EB95_4D47_B50F_0EA19EE2B308__INCLUDED_)