📄 generalquerydlg.h
字号:
#if !defined(AFX_GENERALQUERYDLG_H__03BC87E5_E061_4114_82BF_94107290AD82__INCLUDED_)
#define AFX_GENERALQUERYDLG_H__03BC87E5_E061_4114_82BF_94107290AD82__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// GeneralQueryDlg.h : header file
//
#include "ADOConn.h"
//#include "afxcoll.h"
//#include "atltime.h"
#include "ExcercisePage.h"
#include "CoursePage.h"
#include "ActivityPage.h"
#include "DormPage.h"
/////////////////////////////////////////////////////////////////////////////
// CGeneralQueryDlg dialog
class CGeneralQueryDlg : public CDialog
{
// Construction
public:
CGeneralQueryDlg(CWnd* pParent = NULL); // standard constructor
public:
CExcercisePage m_ExcercisePage;
CCoursePage m_CoursePage;
CActivityPage m_ActivityPage;
CDormPage m_DormPage;
CPropertySheet m_Sheet;
// Dialog Data
//{{AFX_DATA(CGeneralQueryDlg)
enum { IDD = IDD_DIALOG_GENERALQUERY };
CComboBox m_cmbSpecialty;
CComboBox m_cmbGrade;
CComboBox m_cmbClass;
CButton m_btnStudentNum;
CButton m_btnSpecialty;
CButton m_btnGrade;
CButton m_btnClass;
BOOL m_bClass;
BOOL m_bGrade;
BOOL m_bSpecialty;
BOOL m_bStudentNum;
CString m_strClass;
CString m_strGrade;
CString m_strSpecialty;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGeneralQueryDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CGeneralQueryDlg)
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
ADOConn m_CurAdo;
CStringArray m_GradeName;
CStringArray m_GradeID;
void InitGradeCombox();
void InitSpecialtyCombox(void);
CStringArray m_SpecialtyID;
CStringArray m_SpecialtyName;
void InitClassCombox(void);
CStringArray m_ClassID;
CStringArray m_ClassName;
void ClassDataBindByGrade(CString GradeID);
void ClassDataBindBySpecialty(CString SpecialtyID);
void ClassDataBindByGradeSpecialty(CString GradeID, CString SpecialtyID);
afx_msg void OnCbnSelchangeCmbGrade();
afx_msg void OnCbnSelchangeCmbSpecialty();
CTime m_STime;
CTime m_ETime;
CString m_strTime;
afx_msg void OnBnClickedCheckGrade();
afx_msg void OnBnClickedCheckStudentnum();
afx_msg void OnBnClickedCheckSpecialty();
afx_msg void OnBnClickedCheckClass();
BOOL IsSelected();
CString m_strStudentNum;
CString GetStartTime(void);
CString GetEndTime(void);
CString GetGrade(void);
CString GetSpecialty(void);
CString GetClass(void);
CString GetStudentNum(void);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_GENERALQUERYDLG_H__03BC87E5_E061_4114_82BF_94107290AD82__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -