📄 attendmisdlg.h
字号:
// AttendMISDlg.h : header file
//
#if !defined(AFX_ATTENDMISDLG_H__B88CB761_7AC6_4AA3_8E62_3AA470F76211__INCLUDED_)
#define AFX_ATTENDMISDLG_H__B88CB761_7AC6_4AA3_8E62_3AA470F76211__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CAttendMISDlg dialog
class CAttendMISDlg : public CDialog
{
// Construction
public:
CAttendMISDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CAttendMISDlg)
enum { IDD = IDD_ATTENDMIS_DIALOG };
CListCtrl m_listOT;
CListCtrl m_listLeave;
CListCtrl m_listErrand;
CListCtrl m_listAtt;
BOOL m_bInChecked;
CString m_strPerIDAtt;
CString m_strPerIDErrand;
CString m_strPerIDLeave;
CString m_strPerIDOT;
CString m_strPerNameAtt;
CString m_strPerNameErrand;
CString m_strPerNameLeave;
CString m_strPerNameOT;
COleDateTime m_dtErEndDate;
COleDateTime m_dtErEndTime;
COleDateTime m_dtErStartDate;
COleDateTime m_dtErStartTime;
COleDateTime m_dtIODate;
COleDateTime m_dtIOTime;
COleDateTime m_dtLeEndDate;
COleDateTime m_dtLeEndTime;
COleDateTime m_dtLeStartDate;
COleDateTime m_dtLeStartTime;
COleDateTime m_dtOTDate;
float m_fOTHour;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAttendMISDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CAttendMISDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnBtnDbcon();
afx_msg void OnBtnTimeset();
afx_msg void OnChangeEditPeridAtt();
afx_msg void OnChangeEditPeridErrand();
afx_msg void OnChangeEditPeridLeave();
afx_msg void OnChangeEditPeridOvertime();
afx_msg void OnBtnAttAdd();
afx_msg void OnBtnAttDel();
afx_msg void OnBtnAttQuery();
afx_msg void OnBtnAttStat();
afx_msg void OnBtnOtAdd();
afx_msg void OnBtnOtDel();
afx_msg void OnBtnOtQuery();
afx_msg void OnBtnLeaveAdd();
afx_msg void OnBtnLeaveDel();
afx_msg void OnBtnLeaveQuery();
afx_msg void OnBtnErrandAdd();
afx_msg void OnBtnErrandDel();
afx_msg void OnBtnErrandQuery();
afx_msg void OnBtnPersonAdd();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CString m_strDBSource;
CString m_strDBUser;
CString m_strDBPassword;
CTime m_dtAMEnd;
CTime m_dtAMStart;
CTime m_dtPMEnd;
CTime m_dtPMStart;
//使用AttendMIS.ini配置文件获取连接数据库的参数
void ConnectDB();
//初始化列表控件.
void InitControl();
//初始化控件中的显示数据
void InitCtrlData();
//向列表框控件中插入数据
void InsertDataToList(CListCtrl&listCtl,CString item0,CString item1,CString item2,
CString item3,CString item4);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ATTENDMISDLG_H__B88CB761_7AC6_4AA3_8E62_3AA470F76211__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -