📄 machine_info.cpp
字号:
// machine_info.h : Implementation of the Cmachine_info class
// Cmachine_info implementation
// code generated on 2009年1月9日, 21:21
#include "stdafx.h"
#include "machine_info.h"
IMPLEMENT_DYNAMIC(Cmachine_info, CRecordset)
Cmachine_info::Cmachine_info(CDatabase* pdb)
: CRecordset(pdb)
{
m_machine_number = "";
m_machine_name = "";
m_type = "";
m_state = "";
m_pra_name = "";
m_made_place = "";
m_repair_info = "";
m_nFields = 7;
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 Cmachine_info::GetDefaultConnect()
{
return _T("DSN=gasstion;UID=sa;PWD=;APP=Microsoft\x00ae Visual Studio\x00ae 2008;WSID=GPF-PC;DATABASE=gas_station;");
}
CString Cmachine_info::GetDefaultSQL()
{
return _T("[dbo].[machine_info]");
}
void Cmachine_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("[machine_number]"), m_machine_number);
RFX_Text(pFX, _T("[machine_name]"), m_machine_name);
RFX_Text(pFX, _T("[type]"), m_type);
RFX_Text(pFX, _T("[state]"), m_state);
RFX_Text(pFX, _T("[pra_name]"), m_pra_name);
RFX_Text(pFX, _T("[made_place]"), m_made_place);
RFX_Text(pFX, _T("[repair_info]"), m_repair_info);
}
/////////////////////////////////////////////////////////////////////////////
// Cmachine_info diagnostics
#ifdef _DEBUG
void Cmachine_info::AssertValid() const
{
CRecordset::AssertValid();
}
void Cmachine_info::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -