⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reservation.cpp

📁 一个课程作业
💻 CPP
字号:
// reservation.cpp : implementation file
//

#include "stdafx.h"
#include "order.h"
#include "reservation.h"
#include "FilterReservation.h"
#include "ReservationSet.h"


#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// reservation dialog


reservation::reservation(CWnd* pParent /*=NULL*/)
	: CDialog(reservation::IDD, pParent)
{
	//{{AFX_DATA_INIT(reservation)
	m_reservationName = _T("");
	m_reservationtype = 0;
	m_reservationkey = _T("");
	//}}AFX_DATA_INIT
}


void reservation::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(reservation)
	DDX_Text(pDX, IDC_EDIT1, m_reservationName);
	DDX_Text(pDX, IDC_EDIT2, m_reservationtype);
	DDX_Text(pDX, IDC_EDIT3, m_reservationkey);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(reservation, CDialog)
	//{{AFX_MSG_MAP(reservation)
	ON_BN_CLICKED(IDC_reservationcheck, Onreservationcheck)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// reservation message handlers

void reservation::Onreservationcheck() 
{
	// TODO: Add your control notification handler code here
	reservation ThisDlg;
	FilterReservation input;
	CReservationSet pointer;
	pointer.Open();
	input.DoModal();
	pointer.MoveFirst();
	while(!(pointer.IsEOF()))
	{
		if(pointer.m_custName==input.m_FilterReservation)
		{
			ThisDlg.m_reservationName=pointer.m_custName;
			ThisDlg.m_reservationtype=pointer.m_resvType;
			ThisDlg.m_reservationkey=pointer.m_resvKey;
			ThisDlg.DoModal();
			pointer.MoveNext();
		}
		else pointer.MoveNext();
	}
	return;
}

⌨️ 快捷键说明

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