68 lines
1.3 KiB
C++
68 lines
1.3 KiB
C++
#pragma once
|
|
#include "resource.h"
|
|
#include "earthwormdef.h"
|
|
|
|
class CPipeMajDlg : public CDialog
|
|
{
|
|
DECLARE_DYNAMIC(CPipeMajDlg)
|
|
|
|
public:
|
|
CPipeMajDlg(CWnd* pParent = NULL);
|
|
virtual ~CPipeMajDlg();
|
|
|
|
enum { IDD = IDD_PIPEMAJDLG };
|
|
|
|
void SetDbServer(CUIISQLiteServer* pDb);
|
|
|
|
void SetShowParam(WPipe::PipeParam* pParam);
|
|
void GetPipeParam(WPipe::PipeParam* pParam) const;
|
|
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX);
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
public:
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnCheckPressSwitch();
|
|
afx_msg void OnCheckUpdateMat();
|
|
virtual void OnOK();
|
|
|
|
CListBox m_wndElbowradList;
|
|
CListBox m_wndPressList;
|
|
CListBox m_wndPressList2;
|
|
CListCtrl m_wndPipeList;
|
|
BOOL m_bUpdateMat;
|
|
int m_nRadioOn;
|
|
|
|
protected:
|
|
|
|
void InitPipeList(int nMaxDN = 50000, CString sODNo = _T("A"));
|
|
void InitPressFromDb();
|
|
void QueryFlangOnPipe();
|
|
bool IsPlasticsMat(int nPos, CString &sODNo);
|
|
BOOL IsGSFMaterial(CString &sODNo);
|
|
BOOL IsRCPMaterial(CString &sODNo);
|
|
protected:
|
|
|
|
int m_nOnlyDN;
|
|
int m_nDN;
|
|
double m_dOD;
|
|
double m_dt;
|
|
double m_dRatio;
|
|
double m_dPress;
|
|
CString m_sPress;
|
|
|
|
BOOL m_bPressureSel;
|
|
|
|
CString m_sMertialFit;
|
|
CString m_sMertial;
|
|
CString m_sPipeSys;
|
|
|
|
CComboBox m_wndComboMaters;
|
|
CComboBox m_wndComboMatersFit;
|
|
CComboBox m_wndComboPipeSys;
|
|
int m_nColorIndex;
|
|
CUIISQLiteServer * m_pDb;
|
|
WPipe::PipeParam m_param;
|
|
};
|