www.gusucode.com > 大学排课系统,VC++实现,能实现根据教师及课程资源自动排 > 大学排课系统,VC++实现,能实现根据教师及课程资源自动排课/ARRANGE/QueryclassroomSet.cpp
// QueryclassroomSet.cpp : implementation file // #include "stdafx.h" #include "arrange.h" #include "QueryclassroomSet.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CQueryclassroomSet IMPLEMENT_DYNAMIC(CQueryclassroomSet, CRecordset) CQueryclassroomSet::CQueryclassroomSet(CDatabase* pdb) : CRecordset(pdb) { //{{AFX_FIELD_INIT(CQueryclassroomSet) m_record = 0; m_room_id = _T(""); m_cweek = _T(""); m_ctime = _T(""); m_nFields = 4; //}}AFX_FIELD_INIT m_nDefaultType = snapshot; } CString CQueryclassroomSet::GetDefaultConnect() { return _T("ODBC;DSN=stct"); } CString CQueryclassroomSet::GetDefaultSQL() { return _T("[QUERYCLASSROOM]"); } void CQueryclassroomSet::DoFieldExchange(CFieldExchange* pFX) { //{{AFX_FIELD_MAP(CQueryclassroomSet) pFX->SetFieldType(CFieldExchange::outputColumn); RFX_Long(pFX, _T("[record]"), m_record); RFX_Text(pFX, _T("[room_id]"), m_room_id); RFX_Text(pFX, _T("[cweek]"), m_cweek); RFX_Text(pFX, _T("[ctime]"), m_ctime); //}}AFX_FIELD_MAP } ///////////////////////////////////////////////////////////////////////////// // CQueryclassroomSet diagnostics #ifdef _DEBUG void CQueryclassroomSet::AssertValid() const { CRecordset::AssertValid(); } void CQueryclassroomSet::Dump(CDumpContext& dc) const { CRecordset::Dump(dc); } #endif //_DEBUG