Content Supported by Sourcelens Consulting

// SectSet.cpp : implementation of the CSectionSet class
//

#include "stdafx.h"
#include "ESection.h"
#include "Enroll.h"
#include "SectSet.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CSectionSet implementation

IMPLEMENT_DYNAMIC(CSectionSet, CRecordset)

CSectionSet::CSectionSet(CDatabase* pdb)
	: CRecordset(pdb)
{
	//{{AFX_FIELD_INIT(CSectionSet)
	m_section.m_CourseID = _T("");
	m_section.m_SectionNo = _T("");
	m_section.m_InstructorID = _T("");
	m_section.m_RoomNo = _T("");
	m_section.m_Schedule = _T("");
	m_section.m_Capacity = 0;
	m_nFields = 6;
	//}}AFX_FIELD_INIT
	m_nDefaultType = snapshot;
	m_nParams = 1;
	m_strCourseIDParam = "";

}


CString CSectionSet::GetDefaultSQL()
{
	return _T("[Section]");
}

void CSectionSet::DoFieldExchange(CFieldExchange* pFX)
{
	//{{AFX_FIELD_MAP(CSectionSet)
	pFX->SetFieldType(CFieldExchange::outputColumn);
	RFX_Text(pFX, _T("[CourseID]"), m_section.m_CourseID);
	RFX_Text(pFX, _T("[SectionNo]"), m_section.m_SectionNo);
	RFX_Text(pFX, _T("[InstructorID]"), m_section.m_InstructorID);
	RFX_Text(pFX, _T("[RoomNo]"), m_section.m_RoomNo);
	RFX_Text(pFX, _T("[Schedule]"), m_section.m_Schedule);
	RFX_Int(pFX, _T("[Capacity]"), m_section.m_Capacity);
	//}}AFX_FIELD_MAP
	pFX->SetFieldType(CFieldExchange::param);
	RFX_Text(pFX, "CourseIDParam", m_strCourseIDParam);

}

/////////////////////////////////////////////////////////////////////////////
// CSectionSet diagnostics

#ifdef _DEBUG
void CSectionSet::AssertValid() const
{
	CRecordset::AssertValid();
}

void CSectionSet::Dump(CDumpContext& dc) const
{
	CRecordset::Dump(dc);
}
#endif //_DEBUG