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

📄 talkrecorddetaildlg.cpp

📁 VC6.0环境下编写的一个交换机计费程序。
💻 CPP
字号:
// talkrecorddetailDlg.cpp : implementation file
//

#include "stdafx.h"
#include "fee.h"
#include "talkrecorddetailDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CtalkrecorddetailDlg dialog


CtalkrecorddetailDlg::CtalkrecorddetailDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CtalkrecorddetailDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CtalkrecorddetailDlg)
	m_strendday = _T("");
	m_strendmonth = _T("");
	m_strendyear = _T("");
	m_strstartday = _T("");
	m_strstartmonth = _T("");
	m_strstartyear = _T("");
	m_strtelenum = _T("");
	m_strLocalCode = _T("");
	//}}AFX_DATA_INIT
}


void CtalkrecorddetailDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CtalkrecorddetailDlg)
	DDX_CBString(pDX, IDC_COMBO_ENDDAY, m_strendday);
	DDX_CBString(pDX, IDC_COMBO_ENDMONTH, m_strendmonth);
	DDX_CBString(pDX, IDC_COMBO_ENDYEAR, m_strendyear);
	DDX_CBString(pDX, IDC_COMBO_STARTDAY, m_strstartday);
	DDX_CBString(pDX, IDC_COMBO_STARTMONTH, m_strstartmonth);
	DDX_CBString(pDX, IDC_COMBO_STARTYEAR, m_strstartyear);
	DDX_Text(pDX, IDC_EDIT_TELENUM, m_strtelenum);
	DDX_Text(pDX, IDC_EDIT_LocalCode, m_strLocalCode);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CtalkrecorddetailDlg message handlers

void CtalkrecorddetailDlg::OnOK() 
{
	// TODO: Add extra validation here
	// TODO: Add extra validation here
	UpdateData(TRUE);
	/*
	CProgressCtrl	m_progress;
	CString	m_strendday;
	CString	m_strendmonth;
	CString	m_strendyear;
	CString	m_startday;
	CString	m_startmonth;
	CString	m_startyear;
	CString	m_strtelenum;	
	*/
	if (m_strtelenum=="")
	{
		AfxMessageBox("The query number cannot be blank ");
		return;
	}
	if (m_strendday=="")
	{
		AfxMessageBox("The query end date cannot be blank");
		return;
	}
	if (m_strendmonth=="")
	{
		AfxMessageBox("The query end month cannot be blank");
		return;
	}
	if (m_strendyear=="")
	{
		AfxMessageBox("The query end year cannot be blank");
		return;
	}
	if (m_strstartday=="")
	{
		AfxMessageBox("The query start day cannot be blank");
		return;
	}
	if (m_strstartmonth=="")
	{
		AfxMessageBox("The query start month cannot be blank");
		return;
	}
	if (m_strstartyear=="")
	{
		AfxMessageBox("The query start year cannot be blank");
		return;
	}
	CDialog::OnOK();
	
}

void CtalkrecorddetailDlg::OnCancel() 
{
	// TODO: Add extra cleanup here
	
	CDialog::OnCancel();
}

⌨️ 快捷键说明

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