课程设计Set.cpp
上传用户:yhxbjx
上传日期:2018-11-07
资源大小:7142k
文件大小:3k
- // 课程设计Set.cpp : implementation of the CMySet class
- //
- #include "stdafx.h"
- #include "课程设计.h"
- #include "课程设计Set.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CMySet implementation
- IMPLEMENT_DYNAMIC(CMySet, CRecordset)
- CMySet::CMySet(CDatabase* pdb)
- : CRecordset(pdb)
- {
- //{{AFX_FIELD_INIT(CMySet)
- m_administrator = _T("");
- m_secrect = _T("");
- m_course = _T("");
- m_teacher = _T("");
- m_period = _T("");
- m_xuefen = _T("");
- m_address = _T("");
- m_grade = _T("");
- m_level = _T("");
- 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_user = _T("");
- m_password = _T("");
- m_nFields = 22;
- //}}AFX_FIELD_INIT
- m_nDefaultType = snapshot;
- }
- CString CMySet::GetDefaultConnect()
- {
- return _T("ODBC;DSN=resource");
- }
- CString CMySet::GetDefaultSQL()
- {
- return _T("[管理员密码表],[课程表],[学生信息表],[用户密码表]");
- }
- void CMySet::DoFieldExchange(CFieldExchange* pFX)
- {
- //{{AFX_FIELD_MAP(CMySet)
- pFX->SetFieldType(CFieldExchange::outputColumn);
- RFX_Text(pFX, _T("[administrator]"), m_administrator);
- RFX_Text(pFX, _T("[secrect]"), m_secrect);
- RFX_Text(pFX, _T("[course]"), m_course);
- RFX_Text(pFX, _T("[teacher]"), m_teacher);
- RFX_Text(pFX, _T("[period]"), m_period);
- RFX_Text(pFX, _T("[xuefen]"), m_xuefen);
- RFX_Text(pFX, _T("[address]"), m_address);
- RFX_Text(pFX, _T("[grade]"), m_grade);
- RFX_Text(pFX, _T("[level]"), m_level);
- 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);
- RFX_Text(pFX, _T("[user]"), m_user);
- RFX_Text(pFX, _T("[password]"), m_password);
- //}}AFX_FIELD_MAP
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMySet diagnostics
- #ifdef _DEBUG
- void CMySet::AssertValid() const
- {
- CRecordset::AssertValid();
- }
- void CMySet::Dump(CDumpContext& dc) const
- {
- CRecordset::Dump(dc);
- }
- #endif //_DEBUG