Files
envi-code/SourceCode/Code2026/Dimension/CalcDirtWellDlg.h
T
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

124 lines
3.1 KiB
C++

#if !defined(AFX_CALCDIRTWELLDLG_H__0B2FE868_B242_470D_AFC1_670A8CDCDB91__INCLUDED_)
#define AFX_CALCDIRTWELLDLG_H__0B2FE868_B242_470D_AFC1_670A8CDCDB91__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CalcDirtWellDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CCalcDirtWellDlg dialog
#include "Resource.h"
#include "WDGRID.h"
#include "PickEntSet.h"
class TGridDirtWell: public WDGrid
{
protected:
virtual void OnCellComboString(WDGridCell&cell,CComboBox&combo);
public:
TGridDirtWell(int iType);
};
class SDirtCalcData
{
public:
SDirtCalcData(){ m_csName = ""; m_bIsWell = TRUE; m_ID = NULL; m_iPeople = 0; m_nK =0 ;
m_iDn = 0; m_nLength = 0; m_nI = 0; m_nArea = 0; m_nPipeQ = 0; m_nRation = 0; m_nFull = 0;
m_nFocusQ = 0; m_nLength = 0; m_nV = 0;};
CString m_csName; //井编号
int m_iDn; //管径
double m_nLength; //管长
double m_nI; //坡度
double m_nV; //流速
double m_nFull; //充满度
double m_nArea; //面积(平方米-公顷)
double m_nFocusQ; //集中流量
double m_nPipeQ; //居民流量
double m_nRation; //污水定额
int m_iPeople; //人口密度
double m_nK; //变化系数
double m_dWaterRation; //给水指标
double m_dDirtCoef; //污水折减系数
BOOL m_bIsWell;
AcDbObjectId m_ID;
};
class CCalcDirtWellDlg : public CAcUiDialog
{
// Construction
public:
CCalcDirtWellDlg(int iType, CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CCalcDirtWellDlg)
enum { IDD = IDD_CALC_DIRTWELL };
//}}AFX_DATA
PickSet m_ssAll;
int m_iType; // 0 : 小区 1:市政
TGridDirtWell m_grid;
SSearchPipeList *m_pListAll;
SSearchPipeList *m_pNodeLong;
CToolTipCtrl m_wndToolTip;
void UpdateGrid();
void UpdateCivilGrid();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCalcDirtWellDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
SSearchPipeList *GetNextWell(SSearchPipeList *pListAll, SSearchPipeList *pDisadvantage, DList<SDirtCalcData> &lstData);
void DoDirtWellCalc(SSearchPipeList *pListAll, int iMode);
void DoDirtWellReCalc(SSearchPipeList *pListAll);
void GetBigPipeDn(SSearchPipeList *pList, int &iBigDn);
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CCalcDirtWellDlg)
virtual BOOL OnInitDialog();
virtual void OnOK();
afx_msg void OnButtonCalc();
afx_msg void OnButtonDim();
afx_msg void OnButtonWord();
afx_msg void OnButtonHide();
afx_msg void OnButtonCalc2();
afx_msg void OnDestroy();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CALCDIRTWELLDLG_H__0B2FE868_B242_470D_AFC1_670A8CDCDB91__INCLUDED_)