You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.8 KiB
C++

#pragma once
#include "MyDlgView.h"
#include "afxdtctl.h"
#include "ATLComTime.h"
class CDlgChildWaferHistory : public CMyDlgView
{
DECLARE_DYNAMIC(CDlgChildWaferHistory)
public:
CDlgChildWaferHistory(CWnd* pParent = NULL); // 标准构造函数
virtual ~CDlgChildWaferHistory();
virtual void OnViewOpen();//响应view 打开的时候
void InitDataList();
void UpdateDataList(CString FilePath);
CString GetDateStr(CTime &DateTime);
void DelAllChildOfItem(HTREEITEM hItem);
// 对话框数据
enum { IDD = IDD_CHILD_WAFER_HISTORY };
private:
CTreeCtrl m_MonitorDataTree;
HTREEITEM m_hRoot; //句柄 CTreeCtrl的根结点
CListCtrl m_DataList;
CString m_CurSelPath;//树中当前选中的文件或文件夹路径
// 当前选中的日期
COleDateTime m_SelDate;
COleDateTime m_SelDateStart;
COleDateTime m_SelDateEnd;
CString m_SearchLotID;
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
public:
void GetLogicalDrives(HTREEITEM hParent);
void GetLogicalDrives_ByDay(HTREEITEM hParent,COleDateTime SelDate);
void GetDriveDir_ByDayRange(HTREEITEM hParent,COleDateTime SelDateStart,COleDateTime SelDateEnd);
void GetDriveDir(HTREEITEM hParent);
CString GetFullPath(HTREEITEM hCurrent);
void AddSubDir(HTREEITEM hParent);
afx_msg void OnBnClickedSearchBtn();
afx_msg void OnTvnItemexpandedDataFoldeTree(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnTvnSelchangedDataFoldeTree(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnBnClickedExport();
afx_msg void OnBnClickedSearchByDate();
afx_msg void OnBnClickedSearchByRangeBtn();
};