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

📄 oil_info.cpp

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



// Coil_info implementation

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

#include "stdafx.h"
#include "oil_info.h"
IMPLEMENT_DYNAMIC(Coil_info, CRecordset)

Coil_info::Coil_info(CDatabase* pdb)
	: CRecordset(pdb)
{
	m_oil_number = "";
	m_price = 0.0;
	m_sprice = 0.0;
	m_nFields = 3;
	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 Coil_info::GetDefaultConnect()
{
	return _T("DSN=gasstion;UID=sa;PWD=;APP=Microsoft\x00ae Visual Studio\x00ae 2008;WSID=GPF-PC;DATABASE=gas_station;");
}

CString Coil_info::GetDefaultSQL()
{
	return _T("[dbo].[oil_info]");
}

void Coil_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("[oil_number]"), m_oil_number);
	RFX_Single(pFX, _T("[price]"), m_price);
	RFX_Single(pFX, _T("[sprice]"), m_sprice);

}
/////////////////////////////////////////////////////////////////////////////
// Coil_info diagnostics

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

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


⌨️ 快捷键说明

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