CB.cpp
资源名称:PasRTDat.rar [点击查看]
上传用户:shtiemo
上传日期:2017-12-29
资源大小:163k
文件大小:1k
源码类别:
能源行业(电力石油煤炭)
开发平台:
Visual C++
- // CB.cpp : implementation file
- //
- #include "stdafx.h"
- #include "PasRTDat.h"
- #include "CB.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CCB
- IMPLEMENT_DYNAMIC(CCB, CRecordset)
- CCB::CCB(CDatabase* pdb)
- : CRecordset(pdb)
- {
- //{{AFX_FIELD_INIT(CCB)
- m_ID = 0;
- m_MingZi = _T("");
- m_YXConnect = FALSE;
- m_YXCMode = FALSE;
- m_nFields = 4;
- //}}AFX_FIELD_INIT
- m_nDefaultType = snapshot;
- }
- CString CCB::GetDefaultConnect()
- {
- return _T("ODBC;DSN=Amiaoshu;UID=iES;PWD=iESApp;");
- }
- CString CCB::GetDefaultSQL()
- {
- return _T("KaiGuan");
- }
- void CCB::DoFieldExchange(CFieldExchange* pFX)
- {
- //{{AFX_FIELD_MAP(CCB)
- pFX->SetFieldType(CFieldExchange::outputColumn);
- RFX_Int(pFX, _T("ID"), m_ID);
- RFX_Text(pFX, _T("MingZi"), m_MingZi);
- RFX_Bool(pFX, _T("YXConnect"), m_YXConnect);
- RFX_Bool(pFX, _T("YXCMode"), m_YXCMode);
- //}}AFX_FIELD_MAP
- }
- /////////////////////////////////////////////////////////////////////////////
- // CCB diagnostics
- #ifdef _DEBUG
- void CCB::AssertValid() const
- {
- CRecordset::AssertValid();
- }
- void CCB::Dump(CDumpContext& dc) const
- {
- CRecordset::Dump(dc);
- }
- #endif //_DEBUG