📄 punishset.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -