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

📄 order_info.cpp

📁 此文件是加油站管理系统的界面,开发环境是 visual studio 2008 MFC
💻 CPP
字号:
// order_info.h : Implementation of the Corder_info class



// Corder_info implementation

// code generated on 2009年1月9日, 21:21

#include "stdafx.h"
#include "order_info.h"
IMPLEMENT_DYNAMIC(Corder_info, CRecordset)

Corder_info::Corder_info(CDatabase* pdb)
	: CRecordset(pdb)
{
	m_wno = "";
	m_cooperate = "";
	m_oil_number = "";
	m_price = 0.0;
	m_amount = 0;
	m_bunker_number = "";
	m_nFields = 6;
	m_nDefaultType = dynaset;
}
///#error Security Issue: The connection string may contain a password
// The connection string below may contain plain text passwords and/or
// other sensitive information. Please remove the #error after reviewing
// the connection string for any security related issues. You may want to
// store the password in some other form or use a different user authentication.
CString Corder_info::GetDefaultConnect()
{
	return _T("DSN=gasstion;UID=sa;PWD=;APP=Microsoft\x00ae Visual Studio\x00ae 2008;WSID=GPF-PC;DATABASE=gas_station;");
}

CString Corder_info::GetDefaultSQL()
{
	return _T("[dbo].[order_info]");
}

void Corder_info::DoFieldExchange(CFieldExchange* pFX)
{
	pFX->SetFieldType(CFieldExchange::outputColumn);
// Macros such as RFX_Text() and RFX_Int() are dependent on the
// type of the member variable, not the type of the field in the database.
// ODBC will try to automatically convert the column value to the requested type
	RFX_Text(pFX, _T("[wno]"), m_wno);
	RFX_Text(pFX, _T("[cooperate]"), m_cooperate);
	RFX_Text(pFX, _T("[oil_number]"), m_oil_number);
	RFX_Single(pFX, _T("[price]"), m_price);
	RFX_Long(pFX, _T("[amount]"), m_amount);
	RFX_Text(pFX, _T("[bunker_number]"), m_bunker_number);

}
/////////////////////////////////////////////////////////////////////////////
// Corder_info diagnostics

#ifdef _DEBUG
void Corder_info::AssertValid() const
{
	CRecordset::AssertValid();
}

void Corder_info::Dump(CDumpContext& dc) const
{
	CRecordset::Dump(dc);
}
#endif //_DEBUG


⌨️ 快捷键说明

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