📄 department.h
字号:
//{{AFX_INCLUDES()
#include "datagrid.h"
//}}AFX_INCLUDES
#if !defined(AFX_DEPARTMENT_H__25FC2892_87B0_48DD_931B_53BC35C7B0FF__INCLUDED_)
#define AFX_DEPARTMENT_H__25FC2892_87B0_48DD_931B_53BC35C7B0FF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Department.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDepartment dialog
class CDepartment : public CDialog
{
// Construction
public:
CDepartment(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CDepartment)
enum { IDD = IDD_DEPARTMENT };
CEdit m_ctrldepname;
CEdit m_ctrldepmanager;
CEdit m_ctrldepdescribe;
CEdit m_ctrldepcode;
CString m_depcode;
CString m_depdescribe;
CString m_depmanager;
CString m_depname;
CDataGrid m_depgrid;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDepartment)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CDepartment)
virtual BOOL OnInitDialog();
afx_msg void OnDepenqu();
afx_msg void OnDepmodi();
afx_msg void OnDepinsert();
afx_msg void OnDepdelete();
afx_msg void OnDepsubmit();
afx_msg void OnDepnew();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
void RefreshInfo(); //用于刷新显示的信息
bool isRepeated(CString str); //要插入的元组已经存在
bool notExist(CString str); //不存在要删除的元组
bool insertItem; //判断是否是插入信息(true为是)
bool deleteItem;
bool modifyItem;
bool queryItem;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DEPARTMENT_H__25FC2892_87B0_48DD_931B_53BC35C7B0FF__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -