📄 warepurposeset.cpp
字号:
// WarePurposeSet.cpp : implementation file
//
#include "stdafx.h"
//#include "PressManager.h"
#include "WarePurposeSet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CWarePurposeSet
IMPLEMENT_DYNAMIC(CWarePurposeSet, CRecordset)
CWarePurposeSet::CWarePurposeSet(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(CWarePurposeSet)
m_Id = 0;
m_WarePurpose = _T("");
m_nFields = 2;
//}}AFX_FIELD_INIT
m_nDefaultType = snapshot;
}
CString CWarePurposeSet::GetDefaultConnect()
{
return _T("ODBC;DSN=PressManager");
}
CString CWarePurposeSet::GetDefaultSQL()
{
return _T("[WarePurpose]");
}
void CWarePurposeSet::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(CWarePurposeSet)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Long(pFX, _T("[Id]"), m_Id);
RFX_Text(pFX, _T("[WarePurpose]"), m_WarePurpose);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CWarePurposeSet diagnostics
#ifdef _DEBUG
void CWarePurposeSet::AssertValid() const
{
CRecordset::AssertValid();
}
void CWarePurposeSet::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -