12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- #include "stdafx.h"
- #include "NetShareInfo.h"
- IMPLEMENT_DYNAMIC(CNetShareInfo, CRecordset)
- CNetShareInfo::CNetShareInfo(CDatabase* pdb): CRecordset(pdb)
- {
- m_enable = TRUE;
- m_branchid = _T("");
- m_sharePath = _T("");
- m_mincapacity = 0;
- m_maxcapacity = 0;
- m_photoType = 0;
- m_priority = 0;
- m_nFields = 7;
- m_nDefaultType = dynaset;
- }
- CString CNetShareInfo::GetDefaultConnect()
- {
- return _T("ODBC;DSN");
- }
- CString CNetShareInfo::GetDefaultSQL()
- {
- return _T("[dbo].[NetShareInfo]");
- }
- void CNetShareInfo::DoFieldExchange(CFieldExchange* pFX)
- {
- pFX->SetFieldType(CFieldExchange::outputColumn);
- RFX_Bool(pFX, _T("[enable]"), m_enable);
- RFX_Text(pFX, _T("[branchid]"), m_branchid);
- RFX_Text(pFX, _T("[sharePath]"), m_sharePath);
- RFX_Byte(pFX, _T("[mincapacity]"), m_mincapacity);
- RFX_Byte(pFX, _T("[maxcapacity]"), m_maxcapacity);
- RFX_Byte(pFX, _T("[photoType]"), m_photoType);
- RFX_Byte(pFX, _T("[priority]"), m_priority);
- }
- #ifdef _DEBUG
- void CNetShareInfo::AssertValid() const
- {
- CRecordset::AssertValid();
- }
- void CNetShareInfo::Dump(CDumpContext& dc) const
- {
- CRecordset::Dump(dc);
- }
- #endif
|