ChangeDegradeSet.cpp
资源名称:school.rar [点击查看]
上传用户:rs600066
上传日期:2017-10-16
资源大小:4788k
文件大小:2k
源码类别:
数据库系统
开发平台:
Visual C++
- // ChangeDegradeSet.cpp : implementation file
- //
- #include "stdafx.h"
- #include "school.h"
- #include "ChangeDegradeSet.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CChangeDegradeSet
- IMPLEMENT_DYNAMIC(CChangeDegradeSet, CRecordset)
- CChangeDegradeSet::CChangeDegradeSet(CDatabase* pdb)
- : CRecordset(pdb)
- {
- //{{AFX_FIELD_INIT(CChangeDegradeSet)
- m_code = _T("");
- m_name = _T("");
- m_class_past = _T("");
- m_class_now = _T("");
- m_date = _T("");
- m_reason = _T("");
- m_nFields = 6;
- //}}AFX_FIELD_INIT
- m_nDefaultType = snapshot;
- }
- CString CChangeDegradeSet::GetDefaultConnect()
- {
- return _T("ODBC;DSN=school");
- }
- CString CChangeDegradeSet::GetDefaultSQL()
- {
- return _T("[degrade]");
- }
- void CChangeDegradeSet::DoFieldExchange(CFieldExchange* pFX)
- {
- //{{AFX_FIELD_MAP(CChangeDegradeSet)
- pFX->SetFieldType(CFieldExchange::outputColumn);
- RFX_Text(pFX, _T("[code]"), m_code);
- RFX_Text(pFX, _T("[name]"), m_name);
- RFX_Text(pFX, _T("[class_past]"), m_class_past);
- RFX_Text(pFX, _T("[class_now]"), m_class_now);
- RFX_Text(pFX, _T("[date]"), m_date);
- RFX_Text(pFX, _T("[reason]"), m_reason);
- //}}AFX_FIELD_MAP
- }
- /////////////////////////////////////////////////////////////////////////////
- // CChangeDegradeSet diagnostics
- #ifdef _DEBUG
- void CChangeDegradeSet::AssertValid() const
- {
- CRecordset::AssertValid();
- }
- void CChangeDegradeSet::Dump(CDumpContext& dc) const
- {
- CRecordset::Dump(dc);
- }
- #endif //_DEBUG