Operater.cpp
资源名称:停车场管理系统.zip [点击查看]
上传用户:trilite
上传日期:2007-04-24
资源大小:261k
文件大小:1k
源码类别:
酒店行业
开发平台:
Visual C++
- // Operater.cpp : implementation file
- //
- #include "stdafx.h"
- #include "ParkSys.h"
- #include "Operater.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // COperater
- IMPLEMENT_DYNAMIC(COperater, CRecordset)
- COperater::COperater(CDatabase* pdb)
- : CRecordset(pdb)
- {
- //{{AFX_FIELD_INIT(COperater)
- m_OPERATER = _T("");
- m_PASSWORD = _T("");
- m_nFields = 2;
- //}}AFX_FIELD_INIT
- m_nDefaultType = snapshot;
- }
- CString COperater::GetDefaultConnect()
- {
- CString str;
- str.LoadString(IDS_DATABASE_DSN);
- return str;
- }
- CString COperater::GetDefaultSQL()
- {
- return _T("[dbo].[TAB_OPERATER]");
- }
- void COperater::DoFieldExchange(CFieldExchange* pFX)
- {
- //{{AFX_FIELD_MAP(COperater)
- pFX->SetFieldType(CFieldExchange::outputColumn);
- RFX_Text(pFX, _T("[OPERATER]"), m_OPERATER);
- RFX_Text(pFX, _T("[PASSWORD]"), m_PASSWORD);
- //}}AFX_FIELD_MAP
- }
- /////////////////////////////////////////////////////////////////////////////
- // COperater diagnostics
- #ifdef _DEBUG
- void COperater::AssertValid() const
- {
- CRecordset::AssertValid();
- }
- void COperater::Dump(CDumpContext& dc) const
- {
- CRecordset::Dump(dc);
- }
- #endif //_DEBUG