72 lines
1.4 KiB
C++
72 lines
1.4 KiB
C++
#ifndef _KTTRACINGDLG_H__
|
|
#define _KTTRACINGDLG_H__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "Resource.h"
|
|
#include "EarThwormDef.h"
|
|
|
|
class KTTracingDlg : public CDialog
|
|
{
|
|
public:
|
|
KTTracingDlg(CWnd* pParent = NULL);
|
|
|
|
void SetADOServer(KTADODatabase* pADOServer);
|
|
void SetPipeParam(WPipe::PipeParam* pPipePar);
|
|
|
|
BOOL UpdateDataEx();
|
|
void UpdateParamDlgFromParam();
|
|
|
|
public:
|
|
|
|
//{{AFX_DATA(KTTracingDlg)
|
|
enum { IDD = IDD_TRACINGDLG };
|
|
CComboBox m_wndComboPress;
|
|
CComboBox m_wndComboMedia;
|
|
CComboBox m_wndComboDN;
|
|
CListCtrl m_wndListCtrl;
|
|
//}}AFX_DATA
|
|
|
|
//{{AFX_VIRTUAL(KTTracingDlg)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX);
|
|
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
|
|
//}}AFX_VIRTUAL
|
|
|
|
protected:
|
|
|
|
//{{AFX_MSG(KTTracingDlg)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnSelchangeCombopress();
|
|
afx_msg void OnSelchangeCombodn();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
protected:
|
|
|
|
void ShowTraPipeQuery(int nDN,CString& sPress);
|
|
|
|
void InitTraDataFromDb();
|
|
|
|
protected:
|
|
|
|
CImageList m_ImageList; //ͼ±ê
|
|
WPipe::PipeParam* m_pPipePar; //¹ÜÏß²ÎÊý
|
|
KTADODatabase* m_pADOServer; //
|
|
CString m_sProject;
|
|
};
|
|
|
|
inline void KTTracingDlg::SetPipeParam(WPipe::PipeParam* pPipePar)
|
|
{
|
|
m_pPipePar = pPipePar;
|
|
}
|
|
|
|
inline void KTTracingDlg::SetADOServer(KTADODatabase* pADOServer)
|
|
{
|
|
m_pADOServer = pADOServer;
|
|
}
|
|
//{{AFX_INSERT_LOCATION}}
|
|
#endif //_KTTRACINGDLG_H__
|