borrowborrowdlg.h

来自「同学编写的图书馆管理系统(数据库原理大作业)」· C头文件 代码 · 共 62 行

H
62
字号
#if !defined(AFX_BORROWBORROWDLG_H__6641CDBE_B616_4022_A4F4_DC0E25277841__INCLUDED_)
#define AFX_BORROWBORROWDLG_H__6641CDBE_B616_4022_A4F4_DC0E25277841__INCLUDED_

#include "BookRS1.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
// BorrowBorrowDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CBorrowBorrowDlg dialog

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

// Dialog Data
	//{{AFX_DATA(CBorrowBorrowDlg)
	enum { IDD = IDD_BORROW_BORROW };
	CListBox	m_listDetail;
	CListBox	m_listBorrowed;
	CString	m_strBookNum;
	CString	m_strCardNum;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CBorrowBorrowDlg)
	virtual void OnOK();
	afx_msg void OnSelchangeListBorrowed();
	afx_msg void OnBorrowhistory();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP();
private:
	CBookRS1 m_bookSet;
	bool IsValidCard(const CString& cardNum);
	bool AnyBookExpired(const CString& cardNum,const CString &bookNum);
	bool BorrowBook(const CString &cardNum,const CString &bookNum);
	CBorrowRS m_borrowSet;
	CCardRS m_cardSet;
};

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

#endif // !defined(AFX_BORROWBORROWDLG_H__6641CDBE_B616_4022_A4F4_DC0E25277841__INCLUDED_)

⌨️ 快捷键说明

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