📄 onsultdialog.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -