punishtypeset.cpp
来自「图书管理系统 一个简单的图书管理系统 随便下载使用」· C++ 代码 · 共 64 行
CPP
64 行
// PunishTypeSet.cpp : implementation file
//
#include "stdafx.h"
#include "Library.h"
#include "PunishTypeSet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPunishTypeSet
IMPLEMENT_DYNAMIC(CPunishTypeSet, CRecordset)
CPunishTypeSet::CPunishTypeSet(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(CPunishTypeSet)
m_type = _T("");
m_money = _T("");
m_nFields = 2;
//}}AFX_FIELD_INIT
m_nDefaultType = snapshot;
}
CString CPunishTypeSet::GetDefaultConnect()
{
return _T("ODBC;DSN=LibraryDB");
}
CString CPunishTypeSet::GetDefaultSQL()
{
return _T("[punishType]");
}
void CPunishTypeSet::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(CPunishTypeSet)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Text(pFX, _T("[type]"), m_type);
RFX_Text(pFX, _T("[money]"), m_money);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CPunishTypeSet diagnostics
#ifdef _DEBUG
void CPunishTypeSet::AssertValid() const
{
CRecordset::AssertValid();
}
void CPunishTypeSet::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?