⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 returninfoset.cpp

📁 图书管理系统的源码。很好用的源码
💻 CPP
字号:
// ReturnInfoSet.cpp : implementation file
//

#include "stdafx.h"
#include "Library.h"
#include "ReturnInfoSet.h"

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

/////////////////////////////////////////////////////////////////////////////
// CReturnInfoSet

IMPLEMENT_DYNAMIC(CReturnInfoSet, CRecordset)

CReturnInfoSet::CReturnInfoSet(CDatabase* pdb)
	: CRecordset(pdb)
{
	//{{AFX_FIELD_INIT(CReturnInfoSet)
	m_ID = 0;
	m_reader_code = _T("");
	m_reader_name = _T("");
	m_book_code = _T("");
	m_book_name = _T("");
	m_book_type = _T("");
	m_price = _T("");
	m_punish = _T("");
	m_other = _T("");
	m_total = _T("");
	m_operator = _T("");
	m_nFields = 13;
	//}}AFX_FIELD_INIT
	m_nDefaultType = snapshot;
}


CString CReturnInfoSet::GetDefaultConnect()
{
	return _T("ODBC;DSN=LibraryDB");
}

CString CReturnInfoSet::GetDefaultSQL()
{
	return _T("[returnInfo]");
}

void CReturnInfoSet::DoFieldExchange(CFieldExchange* pFX)
{
	//{{AFX_FIELD_MAP(CReturnInfoSet)
	pFX->SetFieldType(CFieldExchange::outputColumn);
	RFX_Long(pFX, _T("[ID]"), m_ID);
	RFX_Text(pFX, _T("[reader_code]"), m_reader_code);
	RFX_Text(pFX, _T("[reader_name]"), m_reader_name);
	RFX_Text(pFX, _T("[book_code]"), m_book_code);
	RFX_Text(pFX, _T("[book_name]"), m_book_name);
	RFX_Text(pFX, _T("[book_type]"), m_book_type);
	RFX_Text(pFX, _T("[price]"), m_price);
	RFX_Date(pFX, _T("[borrow_date]"), m_borrow_date);
	RFX_Date(pFX, _T("[return_date]"), m_return_date);
	RFX_Text(pFX, _T("[punish]"), m_punish);
	RFX_Text(pFX, _T("[other]"), m_other);
	RFX_Text(pFX, _T("[total]"), m_total);
	RFX_Text(pFX, _T("[operator]"), m_operator);
	//}}AFX_FIELD_MAP
}

/////////////////////////////////////////////////////////////////////////////
// CReturnInfoSet diagnostics

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

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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -