123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #include "stdafx.h"
- #include "BranchInfo.h"
- IMPLEMENT_DYNAMIC(CBranchInfo, CRecordset)
- CBranchInfo::CBranchInfo(CDatabase* pdb): CRecordset(pdb)
- {
- m_id = 0;
- m_branch = _T("");
- m_domain = _T("");
- m_publicIP = _T("");
- m_nFields = 4;
- m_nDefaultType = dynaset;
- }
- CString CBranchInfo::GetDefaultConnect()
- {
- return _T("ODBC;DSN");
- }
- CString CBranchInfo::GetDefaultSQL()
- {
- return _T("[dbo].[BranchInfo]");
- }
- void CBranchInfo::DoFieldExchange(CFieldExchange* pFX)
- {
- pFX->SetFieldType(CFieldExchange::outputColumn);
- RFX_Long(pFX, _T("[id]"), m_id);
- RFX_Text(pFX, _T("[branch]"), m_branch);
- RFX_Text(pFX, _T("[domain]"), m_domain);
- RFX_Text(pFX, _T("[publicIP]"), m_publicIP);
- }
- #ifdef _DEBUG
- void CBranchInfo::AssertValid() const
- {
- CRecordset::AssertValid();
- }
- void CBranchInfo::Dump(CDumpContext& dc) const
- {
- CRecordset::Dump(dc);
- }
- #endif
|