📄 searchstatisticsview.h
字号:
#if !defined(AFX_QUERYDBVIEW_H__E940F164_3CE8_45F1_A059_983E550053D9__INCLUDED_)
#define AFX_QUERYDBVIEW_H__E940F164_3CE8_45F1_A059_983E550053D9__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// QueryDbView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CSearchStatisticsView form view
#ifndef __AFXEXT_H__
#include <afxext.h>
#endif
#include "TypeDef.h"
class CMainFrame;
class CSearchStatisticsView : public CFormView
{
//protected:
public:
CSearchStatisticsView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CSearchStatisticsView)
// Form Data
public:
//{{AFX_DATA(CSearchStatisticsView)
enum { IDD = IDD_QUERYDB };
CComboBox m_comboSchCtt;
CEdit m_edtCourseAverageMark;
CEdit m_edtGradeAverageAge;
CEdit m_edtPersonAverageMark;
CComboBox m_comboSchSort;
UINT m_uiBoyCount;
UINT m_uiGirlCount;
//}}AFX_DATA
// Attributes
public:
// Operations
public:
void GetStudInfo(StudInfo* pStudInfo);
private:
void PrintStudInfo(StudInfo studInfo);//打印一条学生记录
UINT GetGrade(UINT uiStudNum);
UINT Char2UINT(char* pStr);
void SearchByStudNum(CString strSchCtt); //按学号查找
void SearchByName(CString strSchCtt); //按姓名查找
void SearchBySex(CString strSchCtt); //按性别查找
void SearchByGradeCourse(CString strSchCtt);//按年级课程查找
void SearchByTeacher(CString strSchCtt); //按教师查找
void SearchByCourse(CString strSchCtt); //按课程查找
public:
void StatisticsBoyGirlCount(); //男女生人数
void StatisticsPersonAverageMark(); //个人平均成绩
void StatisticsGradeAverageAge(); //年级平均年龄
void StatisticsCourseAverageMark(); //各门课得平均成绩
private:
StudInfo* pStudInfo;//学生信息
CMainFrame* m_pMainFrame;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSearchStatisticsView)
public:
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
virtual void OnInitialUpdate();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CSearchStatisticsView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(CSearchStatisticsView)
afx_msg void OnBtnSearch();
afx_msg void OnFileOpen();
afx_msg void OnEditchangeComboSchctt();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_QUERYDBVIEW_H__E940F164_3CE8_45F1_A059_983E550053D9__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -