📄 xieyuyingdbrs.cpp
字号:
// XieyuyingDBRS.cpp : implementation file
//
#include "stdafx.h"
#include "XieyuyingDB.h"
#include "XieyuyingDBRS.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CXieyuyingDBRS
IMPLEMENT_DYNAMIC(CXieyuyingDBRS, CRecordset)
CXieyuyingDBRS::CXieyuyingDBRS(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(CXieyuyingDBRS)
m_ID = 0;
m_PERSON = _T("");
m_IN_OUT = _T("");
m_nFields = 4;
//}}AFX_FIELD_INIT
m_nDefaultType = snapshot;
m_IO_TIME=NULL; // 初始化m_IO_TIME //very important
}
CString CXieyuyingDBRS::GetDefaultConnect()
{
return _T("ODBC;DSN=MISDB");
}
CString CXieyuyingDBRS::GetDefaultSQL()
{
return _T("[XieyuyingDB]");
}
void CXieyuyingDBRS::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(CXieyuyingDBRS)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Int(pFX, _T("[ID]"), m_ID);
RFX_Text(pFX, _T("[PERSON]"), m_PERSON);
RFX_Text(pFX, _T("[IN_OUT]"), m_IN_OUT);
RFX_Date(pFX, _T("[IO_TIME]"), m_IO_TIME);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CXieyuyingDBRS diagnostics
#ifdef _DEBUG
void CXieyuyingDBRS::AssertValid() const
{
CRecordset::AssertValid();
}
void CXieyuyingDBRS::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -