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