#pragma once #include "resource.h" #include "afxwin.h" #include "EarThwormDef.h" #include "acisopolylinejig.h" class CUIISQLiteServer; class CISODraftDlg : public CDialog { DECLARE_DYNAMIC(CISODraftDlg) public: CISODraftDlg(CWnd *pParent = NULL); virtual ~CISODraftDlg(); enum { IDD = IDD_ZCHZ_DLG }; void GetISODrawCFG(ISODrawCfg& isodrcfg, WPipe::PipeParam ¶m) const; protected: virtual void DoDataExchange(CDataExchange *pDX); DECLARE_MESSAGE_MAP() afx_msg void OnCbnSelchangeCombomaters(); afx_msg void OnBnClickedOk(); public: virtual BOOL OnInitDialog(); protected: void InitPipeList(int nMaxDN, CString &sODNo); void InitPipeMaterCombox(); void InitSys(); BOOL IsPlasticsMat(int nPos, CString &sODNo); BOOL IsGSFMaterial(CString &sODNo); BOOL IsSRPEMaterial(CString &sODNo); BOOL IsRCPMaterial(CString &sODNo); public: CUIISQLiteServer *m_pDb; CListCtrl m_wndPipeList; CComboBox m_wndComboMaters; CComboBox m_wndComboSys; //ISODrawCfg CString m_sODSn; CString m_sMaterial; CString m_sCurrSys; CString m_sScale; CString m_szShtNo; CString m_sStd; double m_dDn; double m_dOD; double m_dThk; double m_dRadio; double m_dDotWD; double m_dPipeW; int m_nView; int m_nAngle; int m_nRadioOn; BOOL m_bElbowLine; };