dlgstat.h

来自「visual c++数据库开发基础与应用的源代码」· C头文件 代码 · 共 67 行

H
67
字号
#if !defined(AFX_DLGSTAT_H__3B6CB87E_E36E_4774_B98A_DE343DE1CEF8__INCLUDED_)
#define AFX_DLGSTAT_H__3B6CB87E_E36E_4774_B98A_DE343DE1CEF8__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgStat.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CDlgStat dialog

class CDlgStat : public CDialog
{
// Construction
public:
	CDlgStat(CWnd* pParent = NULL);   // standard constructor
	CTime	m_dtAMEnd;
	CTime	m_dtAMStart;
	CTime	m_dtPMEnd;
	CTime	m_dtPMStart;
	CDatabase *m_pDB;
// Dialog Data
	//{{AFX_DATA(CDlgStat)
	enum { IDD = IDD_DLG_STAT };
	CListCtrl	m_listStat;
	CString	m_strPerID;
	CString	m_strYear;
	CString	m_strMonth;
	CString	m_strPerName;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlgStat)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	CTime GetTMByString(CString str);
	void InsertStatInfo(int nID,CString monthStat,CString perID,CString perName,
						float workhour,float othour,float leavehour,
						float errandhour,int latetimes,int earlytimes);
	void InsertItemInfo(CString item0,CString item1,CString item2,
						CString item3,CString item4,CString item5,
						CString item6,CString item7,CString item8,CString item9);

	// Generated message map functions
	//{{AFX_MSG(CDlgStat)
	afx_msg void OnBtnStat();
	virtual void OnOK();
	afx_msg void OnBtnQueryByid();
	afx_msg void OnBtnQueryAll();
	virtual BOOL OnInitDialog();
	afx_msg void OnChangeEditPerid();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGSTAT_H__3B6CB87E_E36E_4774_B98A_DE343DE1CEF8__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?