📄 xueji.cpp
字号:
// Xueji.cpp : implementation file
//
#include "stdafx.h"
#include "DATABASE.h"
#include "Xueji.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CXueji
IMPLEMENT_DYNAMIC(CXueji, CRecordset)
CXueji::CXueji(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(CXueji)
m_stuid = _T("");
m_native = _T("");
m_reg = _T("");
m_year = 0;
m_type = _T("");
m_birth = _T("");
m_class = _T("");
m_nFields = 7;
//}}AFX_FIELD_INIT
m_nDefaultType = snapshot;
}
CString CXueji::GetDefaultConnect()
{
return _T("ODBC;DSN=我的数据库0");
}
CString CXueji::GetDefaultSQL()
{
return _T("[xj]");
}
void CXueji::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(CXueji)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Text(pFX, _T("[stuid]"), m_stuid);
RFX_Text(pFX, _T("[native]"), m_native);
RFX_Text(pFX, _T("[reg]"), m_reg);
RFX_Int(pFX, _T("[year]"), m_year);
RFX_Text(pFX, _T("[type]"), m_type);
RFX_Text(pFX, _T("[birth]"), m_birth);
RFX_Text(pFX, _T("[class]"), m_class);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CXueji diagnostics
#ifdef _DEBUG
void CXueji::AssertValid() const
{
CRecordset::AssertValid();
}
void CXueji::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -