bookborrowdlg.h

来自「连接SQL Server的图书管理系统」· C头文件 代码 · 共 61 行

H
61
字号
#if !defined(AFX_BOOKBORROWDLG_H__B81E341C_DB8E_4224_9262_D6BEAA6FF90D__INCLUDED_)
#define AFX_BOOKBORROWDLG_H__B81E341C_DB8E_4224_9262_D6BEAA6FF90D__INCLUDED_

#include "BookRS.h"	// Added by ClassView
#include "CardRS.h"	// Added by ClassView
#include "BorrowRS.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// BOOKBORROWDLG.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CBOOKBORROWDLG dialog

class CBOOKBORROWDLG : public CDialog
{
// Construction
public:
	CBOOKBORROWDLG(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CBOOKBORROWDLG)
	enum { IDD = IDD_BOOK_BORROW };
	CString	m_strBookNum;
	CString	m_strCardNum;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CBOOKBORROWDLG)
	virtual void OnOK();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	bool BorrowBook(const CString&cadNum, const CString &bookNum);
	bool AllowdBorrow(const CString &bookNum);
	bool AnyBookExpired(const CString&cardNum);
	bool IsValidCard(const CString &cardNum);
	CBorrowRS m_borrowSet;
	CCardRS m_cardSet;
	CBookRS m_bookSet;
};

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

#endif // !defined(AFX_BOOKBORROWDLG_H__B81E341C_DB8E_4224_9262_D6BEAA6FF90D__INCLUDED_)


⌨️ 快捷键说明

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