tch.cpp
上传用户:yhxbjx
上传日期:2018-11-07
资源大小:7142k
文件大小:2k
- // tch.cpp : implementation file
- //
- #include "stdafx.h"
- #include "课程设计.h"
- #include "tch.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // tch
- IMPLEMENT_DYNAMIC(tch, CRecordset)
- tch::tch(CDatabase* pdb)
- : CRecordset(pdb)
- {
- //{{AFX_FIELD_INIT(tch)
- m_ID = _T("");
- m_student = _T("");
- m_sex = _T("");
- m_xueke1 = _T("");
- m_xueke2 = _T("");
- m_xueke3 = _T("");
- m_xueke4 = _T("");
- m_xueke5 = _T("");
- m_xueke6 = _T("");
- m_xueke7 = _T("");
- m_class = _T("");
- m_nFields = 11;
- //}}AFX_FIELD_INIT
- m_nDefaultType = snapshot;
- }
- CString tch::GetDefaultConnect()
- {
- return _T("ODBC;DSN=resource");
- }
- CString tch::GetDefaultSQL()
- {
- return _T("[学生信息表]");
- }
- void tch::DoFieldExchange(CFieldExchange* pFX)
- {
- //{{AFX_FIELD_MAP(tch)
- pFX->SetFieldType(CFieldExchange::outputColumn);
- RFX_Text(pFX, _T("[ID]"), m_ID);
- RFX_Text(pFX, _T("[student]"), m_student);
- RFX_Text(pFX, _T("[sex]"), m_sex);
- RFX_Text(pFX, _T("[xueke1]"), m_xueke1);
- RFX_Text(pFX, _T("[xueke2]"), m_xueke2);
- RFX_Text(pFX, _T("[xueke3]"), m_xueke3);
- RFX_Text(pFX, _T("[xueke4]"), m_xueke4);
- RFX_Text(pFX, _T("[xueke5]"), m_xueke5);
- RFX_Text(pFX, _T("[xueke6]"), m_xueke6);
- RFX_Text(pFX, _T("[xueke7]"), m_xueke7);
- RFX_Text(pFX, _T("[class]"), m_class);
- //}}AFX_FIELD_MAP
- }
- /////////////////////////////////////////////////////////////////////////////
- // tch diagnostics
- #ifdef _DEBUG
- void tch::AssertValid() const
- {
- CRecordset::AssertValid();
- }
- void tch::Dump(CDumpContext& dc) const
- {
- CRecordset::Dump(dc);
- }
- #endif //_DEBUG