?? 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 + -