📄 commisionset.cpp
字号:
// commisionSet.cpp : implementation of the CCommisionSet class
//
#include "stdafx.h"
#include "commision.h"
#include "commisionSet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCommisionSet implementation
IMPLEMENT_DYNAMIC(CCommisionSet, CRecordset)
CCommisionSet::CCommisionSet(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(CCommisionSet)
m_telephone = _T("");
m_nFields = 2;
//}}AFX_FIELD_INIT
m_nDefaultType = snapshot;
}
// return _T("ODBC;DSN=commission;UID=admin;PWD=610dog");
CString CCommisionSet::GetDefaultSQL()
{
return _T("[commision]");
}
void CCommisionSet::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(CCommisionSet)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Text(pFX, _T("[telephone]"), m_telephone);
RFX_Text(pFX, _T("[money]"), m_money);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CCommisionSet diagnostics
#ifdef _DEBUG
void CCommisionSet::AssertValid() const
{
CRecordset::AssertValid();
}
void CCommisionSet::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
void CCommisionSet::Close()
{
// TODO: Add your specialized code here and/or call the base class
CRecordset::Close();
}
CString CCommisionSet::GetDefaultConnect()
{
// TODO: Add your specialized code here and/or call the base class
return _T("ODBC;DSN=commission;UID=admin;PWD=610dog");
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -