📄 scholarshipset.cpp
字号:
// ScholarshipSet.cpp : implementation file
//
#include "stdafx.h"
#include "school.h"
#include "ScholarshipSet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CScholarshipSet
IMPLEMENT_DYNAMIC(CScholarshipSet, CRecordset)
CScholarshipSet::CScholarshipSet(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(CScholarshipSet)
m_ID = 0;
m_name = _T("");
m_type = _T("");
m_level = _T("");
m_person = _T("");
m_brief = _T("");
m_nFields = 7;
//}}AFX_FIELD_INIT
m_nDefaultType = snapshot;
}
CString CScholarshipSet::GetDefaultConnect()
{
return _T("ODBC;DSN=school");
}
CString CScholarshipSet::GetDefaultSQL()
{
return _T("[scholarship]");
}
void CScholarshipSet::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(CScholarshipSet)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Long(pFX, _T("[ID]"), m_ID);
RFX_Text(pFX, _T("[name]"), m_name);
RFX_Text(pFX, _T("[type]"), m_type);
RFX_Text(pFX, _T("[level]"), m_level);
RFX_Text(pFX, _T("[person]"), m_person);
RFX_Text(pFX, _T("[brief]"), m_brief);
RFX_Date(pFX, _T("[date]"), m_date);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CScholarshipSet diagnostics
#ifdef _DEBUG
void CScholarshipSet::AssertValid() const
{
CRecordset::AssertValid();
}
void CScholarshipSet::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -