commisionset.cpp

来自「给公司开发的一个计算客户佣金的软件」· C++ 代码 · 共 73 行

CPP
73
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?