branchmanagerset.cpp

来自「vc++界面绘图」· C++ 代码 · 共 74 行

CPP
74
字号
// BranchManagerSet.cpp : implementation of the CBranchManagerSet class
//

#include "stdafx.h"
#include "BranchManager.h"
#include "BranchManagerSet.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CBranchManagerSet implementation

IMPLEMENT_DYNAMIC(CBranchManagerSet, CDaoRecordset)

CBranchManagerSet::CBranchManagerSet(CDaoDatabase* pdb)
	: CDaoRecordset(pdb)
{
	//{{AFX_FIELD_INIT(CBranchManagerSet)
	m_ID = _T("");
	m_Name = _T("");
	m_Address = _T("");
	m_Tel = _T("");
	m_HostIp = _T("");
	m_RouterIp = _T("");
	m_AtmIp = _T("");
	m_nFields = 7;
	//}}AFX_FIELD_INIT
	m_nDefaultType = dbOpenDynaset;
}

CString CBranchManagerSet::GetDefaultDBName()
{
	return _T("C:\\branchmanager\\网点资料数据库.mdb");
}


CString CBranchManagerSet::GetDefaultSQL()
{
	return _T("[支局信息]");
}

void CBranchManagerSet::DoFieldExchange(CDaoFieldExchange* pFX)
{
	//{{AFX_FIELD_MAP(CBranchManagerSet)
	pFX->SetFieldType(CDaoFieldExchange::outputColumn);
	DFX_Text(pFX, _T("[ID]"), m_ID);
	DFX_Text(pFX, _T("[Name]"), m_Name);
	DFX_Text(pFX, _T("[Address]"), m_Address);
	DFX_Text(pFX, _T("[Tel]"), m_Tel);
	DFX_Text(pFX, _T("[HostIp]"), m_HostIp);
	DFX_Text(pFX, _T("[RouterIp]"), m_RouterIp);
	DFX_Text(pFX, _T("[AtmIp]"), m_AtmIp);
	//}}AFX_FIELD_MAP
}

/////////////////////////////////////////////////////////////////////////////
// CBranchManagerSet diagnostics

#ifdef _DEBUG
void CBranchManagerSet::AssertValid() const
{
	CDaoRecordset::AssertValid();
}

void CBranchManagerSet::Dump(CDumpContext& dc) const
{
	CDaoRecordset::Dump(dc);
}
#endif //_DEBUG

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?