📄 remodeling03tableset.cpp
字号:
// Remodeling03TableSet.cpp : implementation file
//
#include "stdafx.h"
#include "server.h"
#include "Remodeling03TableSet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CRemodeling03TableSet
IMPLEMENT_DYNAMIC(CRemodeling03TableSet, CRecordset)
CRemodeling03TableSet::CRemodeling03TableSet(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(CRemodeling03TableSet)
m_sPlan = 0;
m_sRid = 0;
m_sSid = 0;
m_strText = _T("");
m_tNeedClass = 0;
m_tRandom1 = 0;
m_tRandom2 = 0;
m_tReplace = 0;
m_tWearInfo = 0;
m_nFields = 9;
//}}AFX_FIELD_INIT
m_nDefaultType = snapshot;
}
CString CRemodeling03TableSet::GetDefaultConnect()
{
return _T("ODBC;DSN=drgame;UID=drgame;PWD=drgame");
}
CString CRemodeling03TableSet::GetDefaultSQL()
{
return _T("[dbo].[REMODELING_03]");
}
void CRemodeling03TableSet::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(CRemodeling03TableSet)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Int(pFX, _T("[sPlan]"), m_sPlan);
RFX_Int(pFX, _T("[sRid]"), m_sRid);
RFX_Int(pFX, _T("[sSid]"), m_sSid);
RFX_Text(pFX, _T("[strText]"), m_strText);
RFX_Byte(pFX, _T("[tNeedClass]"), m_tNeedClass);
RFX_Byte(pFX, _T("[tRandom1]"), m_tRandom1);
RFX_Byte(pFX, _T("[tRandom2]"), m_tRandom2);
RFX_Byte(pFX, _T("[tReplace]"), m_tReplace);
RFX_Byte(pFX, _T("[tWearInfo]"), m_tWearInfo);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CRemodeling03TableSet diagnostics
#ifdef _DEBUG
void CRemodeling03TableSet::AssertValid() const
{
CRecordset::AssertValid();
}
void CRemodeling03TableSet::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -