punishset.cpp

来自「一个完整的MFC系统」· C++ 代码 · 共 73 行

CPP
73
字号
// Punishset.cpp : implementation file
//

#include "stdafx.h"
#include "Library.h"
#include "Punishset.h"

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

/////////////////////////////////////////////////////////////////////////////
// CPunishset

IMPLEMENT_DYNAMIC(CPunishset, CRecordset)

CPunishset::CPunishset(CDatabase* pdb)
	: CRecordset(pdb)
{
	//{{AFX_FIELD_INIT(CPunishset)
	m_Puni_ID = _T("");
	m_Proof_ID = _T("");
	m_Read_Name = _T("");
	m_Book_ID = _T("");
	m_Puni_Money =_T("");
	m_Puni_Cause = _T("");
	m_nFields = 7;
	//}}AFX_FIELD_INIT
	m_nDefaultType = dynaset;
}


CString CPunishset::GetDefaultConnect()
{
	return _T("ODBC;DSN=library");
}

CString CPunishset::GetDefaultSQL()
{
	return _T("[dbo].[punishinfo]");
}

void CPunishset::DoFieldExchange(CFieldExchange* pFX)
{
	//{{AFX_FIELD_MAP(CPunishset)
	pFX->SetFieldType(CFieldExchange::outputColumn);
	RFX_Text(pFX, _T("[Puni_ID]"), m_Puni_ID);
	RFX_Text(pFX, _T("[Proof_ID]"), m_Proof_ID);
	RFX_Text(pFX, _T("[Read_Name]"), m_Read_Name);
	RFX_Text(pFX, _T("[Book_ID]"), m_Book_ID);
	RFX_Text(pFX, _T("[Puni_Money]"), m_Puni_Money);
	RFX_Date(pFX, _T("[Puni_Date]"), m_Puni_Date);
	RFX_Text(pFX, _T("[Puni_Cause]"), m_Puni_Cause);
	//}}AFX_FIELD_MAP
}

/////////////////////////////////////////////////////////////////////////////
// CPunishset diagnostics

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

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

⌨️ 快捷键说明

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