www.pudn.com > Library.rar > FineHistoryDataSet.cpp, change:2002-01-27,size:1596b


// FineHistoryDataSet.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "Library.h" 
#include "FineHistoryDataSet.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CFineHistoryDataSet 
 
IMPLEMENT_DYNAMIC(CFineHistoryDataSet, CRecordset) 
 
CFineHistoryDataSet::CFineHistoryDataSet(CDatabase* pdb) 
	: CRecordset(pdb) 
{ 
	//{{AFX_FIELD_INIT(CFineHistoryDataSet) 
	m_READER_ID = _T(""); 
	m_AMOUNT = 0; 
	m_DAYS = 0; 
	m_ID = 0; 
	m_nFields = 6; 
	//}}AFX_FIELD_INIT 
	m_nDefaultType = snapshot; 
} 
 
 
CString CFineHistoryDataSet::GetDefaultConnect() 
{ 
	return _T("ODBC;DSN=Library"); 
} 
 
CString CFineHistoryDataSet::GetDefaultSQL() 
{ 
	return _T("[FINE_HISTORY]"); 
} 
 
void CFineHistoryDataSet::DoFieldExchange(CFieldExchange* pFX) 
{ 
	//{{AFX_FIELD_MAP(CFineHistoryDataSet) 
	pFX->SetFieldType(CFieldExchange::outputColumn); 
	RFX_Text(pFX, _T("[READER_ID]"), m_READER_ID); 
	RFX_Long(pFX, _T("[AMOUNT]"), m_AMOUNT); 
	RFX_Int(pFX, _T("[DAYS]"), m_DAYS); 
	RFX_Date(pFX, _T("[FINE_DATE]"), m_FINE_DATE); 
	RFX_Date(pFX, _T("[OK_DATE]"), m_OK_DATE); 
	RFX_Long(pFX, _T("[ID]"), m_ID); 
	//}}AFX_FIELD_MAP 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// CFineHistoryDataSet diagnostics 
 
#ifdef _DEBUG 
void CFineHistoryDataSet::AssertValid() const 
{ 
	CRecordset::AssertValid(); 
} 
 
void CFineHistoryDataSet::Dump(CDumpContext& dc) const 
{ 
	CRecordset::Dump(dc); 
} 
#endif //_DEBUG