123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #include "stdafx.h"
- #include "NetShareInfoEx.h"
- IMPLEMENT_DYNAMIC(CNetShareInfoEx, CRecordset)
- CNetShareInfoEx::CNetShareInfoEx(CDatabase* pdb): CRecordset(pdb)
- {
- m_id = 0;
- m_enable = FALSE;
- m_shareHost = _T("");
- m_sharePath = _T("");
- m_capacity = 0;
- m_photoType = 0;
- m_priority = 0;
- m_nFields = 7;
- m_nDefaultType = dynaset;
- }
- CString CNetShareInfoEx::GetDefaultConnect()
- {
- return _T("ODBC;DSN");
- }
- CString CNetShareInfoEx::GetDefaultSQL()
- {
- return _T("[dbo].[NetShareInfoEx]");
- }
- void CNetShareInfoEx::DoFieldExchange(CFieldExchange* pFX)
- {
- pFX->SetFieldType(CFieldExchange::outputColumn);
- RFX_Long(pFX, _T("[id]"), m_id);
- RFX_Bool(pFX, _T("[enable]"), m_enable);
- RFX_Text(pFX, _T("[shareHost]"), m_shareHost);
- RFX_Text(pFX, _T("[sharePath]"), m_sharePath);
- RFX_Long(pFX, _T("[capacity]"), m_capacity);
- RFX_Long(pFX, _T("[photoType]"), m_photoType);
- RFX_Byte(pFX, _T("[priority]"), m_priority);
- }
- #ifdef _DEBUG
- void CNetShareInfoEx::AssertValid() const
- {
- CRecordset::AssertValid();
- }
- void CNetShareInfoEx::Dump(CDumpContext& dc) const
- {
- CRecordset::Dump(dc);
- }
- #endif
|