Files
envi-code/SourceCode/Code2026/PIDLineCmd/LineNumDlg.h
T
2026-09-28 15:28:50 +08:00

94 lines
2.4 KiB
C++

#if !defined(AFX_LINENUMDLG_H__DD72A1E3_28CD_4DA9_AC40_F6A2C8E1A691__INCLUDED_)
#define AFX_LINENUMDLG_H__DD72A1E3_28CD_4DA9_AC40_F6A2C8E1A691__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// LineNumDlg.h : header file
//
#include "resource.h"
/////////////////////////////////////////////////////////////////////////////
// CLineNumDlg dialog
class CLineNumDlg : public CDialog
{
// Construction
public:
CLineNumDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CLineNumDlg)
enum { IDD = IDD_DIALOGTECHNICS };
CButton m_CtlStart;
CButton m_CtlEnd;
CComboBox m_CtlSpec;
CComboBox m_CtlMedium;
CComboBox m_CtlTPipeDn;
CComboBox m_CtlPrjName;
CComboBox m_CtlPipeDn;
CTreeCtrl m_CtlLineNum;
double m_dCPressure;
double m_dCTemper;
double m_dDPressure;
double m_dDTemper;
CString m_sEnd;
CString m_sInsMaterial;
CString m_sInsThinkness;
CString m_sMedium;
CString m_sPipeGA;
CString m_sPipeDn;
CString m_sPipeNum;
CString m_sPrjName;
CString m_sSpec;
CString m_sStart;
CString m_sTPipeDn;
int m_iTPipeCount;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLineNumDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CLineNumDlg)
virtual void OnOK();
virtual BOOL OnInitDialog();
afx_msg void OnClickLinenumtree(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnSavedate();
afx_msg void OnSelectst();
afx_msg void OnSelectend();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
protected:
CUIISQLiteServer* m_pADOServer;
typedef CMap<CString,LPCTSTR,AcDbObjectId,AcDbObjectId&> CMapStringToObjectId;
CMapStringToObjectId m_mapLineNum;
void SetDnData(CComboBox& CmbBox);
void SetSpecData(CComboBox& CmbBox,CString sPrjName);
void SetMediumData(CComboBox& CmbBox);
void SetTechnics(CString sPrjName,CString sLineNum);
void SetDateBase(CString sPrjName,CString sLineNum,AcDbObjectId idPipe);
AcDbObjectId GetGroupId(AcDbObjectId objId);
public:
CString m_sLineNum;
CString m_sProjectName;
void SetADOServer(CUIISQLiteServer * pADOServer);
CBitmap m_bmpBtn;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LINENUMDLG_H__DD72A1E3_28CD_4DA9_AC40_F6A2C8E1A691__INCLUDED_)