book.cpp

来自「本源码为图书管理系统」· C++ 代码 · 共 85 行

CPP
85
字号
// BOOK.cpp : implementation file
//

#include "stdafx.h"
#include "TSG.h"
#include "BOOK.h"
#include "B_INF.h"
#include "PERSON.h"
#include "BORROW.h"
#include "Pawmod.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// BOOK dialog


BOOK::BOOK(CWnd* pParent /*=NULL*/)
	: CDialog(BOOK::IDD, pParent)
{
	//{{AFX_DATA_INIT(BOOK)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void BOOK::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(BOOK)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(BOOK, CDialog)
	//{{AFX_MSG_MAP(BOOK)
	ON_BN_CLICKED(IDC_BOOK, OnBook)
	ON_BN_CLICKED(IDC_BUTTONPERSON, OnButtonperson)
	ON_BN_CLICKED(IDC_BORROW, OnBorrow)
	ON_BN_CLICKED(IDC_PSWMOD, OnPswmod)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// BOOK message handlers

void BOOK::OnBook() 
{
	B_INF B;
	m_database.Close();
	B.DoModal();
	// TODO: Add your control notification handler code here
	
}

void BOOK::OnButtonperson() 
{   PERSON P;
    m_database.Close(); 
    P.DoModal();
	// TODO: Add your control notification handler code here
	
}

void BOOK::OnBorrow() 
{   BORROW q;
    m_database.Close(); 
    q.DoModal();
	// TODO: Add your control notification handler code here
	
}

void BOOK::OnPswmod() 
{   Pawmod m_modpswd;
	m_database.Close();
	m_modpswd.user.Format("%s",user);
	m_modpswd.m_database.Open(_T("TSG"));
	m_modpswd.DoModal()	;
	// TODO: Add your control notification handler code here
	
}

⌨️ 快捷键说明

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