onsultdialog.cpp

来自「这是一个用VC++编写的银行定期储蓄管理系统」· C++ 代码 · 共 59 行

CPP
59
字号
// onsultDialog.cpp : implementation file
//

#include "stdafx.h"
#include "银行系统.h"
#include "onsultDialog.h"

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

/////////////////////////////////////////////////////////////////////////////
// ConsultDialog dialog


ConsultDialog::ConsultDialog(CWnd* pParent /*=NULL*/)
	: CDialog(ConsultDialog::IDD, pParent)
{
	//{{AFX_DATA_INIT(ConsultDialog)
	m_today = 0.0;
	m_tomorrow = 0.0;
	m_ttomorrow = 0.0;
	//}}AFX_DATA_INIT
	int i = MyDoc->manage.DoConsult(m_today,m_tomorrow,m_ttomorrow,time(NULL));
	if(i = 2)
	{
		MessageBox("无客户,查询失败!","警告");
	}
}


void ConsultDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(ConsultDialog)
	DDX_Text(pDX, IDC_EDIT1, m_today);
	DDX_Text(pDX, IDC_EDIT2, m_tomorrow);
	DDX_Text(pDX, IDC_EDIT3, m_ttomorrow);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(ConsultDialog, CDialog)
	//{{AFX_MSG_MAP(ConsultDialog)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// ConsultDialog message handlers

void ConsultDialog::OnOK() 
{
	// TODO: Add extra validation here
	
	CDialog::OnOK();
}

⌨️ 快捷键说明

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