RTUYC.cpp
资源名称:PasRTDat.rar [点击查看]
上传用户:shtiemo
上传日期:2017-12-29
资源大小:163k
文件大小:2k
源码类别:
能源行业(电力石油煤炭)
开发平台:
Visual C++
- // RTUYC.cpp : implementation file
- //
- #include "stdafx.h"
- #include "PasRTDat.h"
- #include "RTUYC.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CRTUYC
- IMPLEMENT_DYNAMIC(CRTUYC, CRecordset)
- CRTUYC::CRTUYC(CDatabase* pdb)
- : CRecordset(pdb)
- {
- //{{AFX_FIELD_INIT(CRTUYC)
- m_wRTUNum = 0;
- m_YC_NO = 0;
- m_byBjType = 0;
- m_nBjID = 0;
- m_byCShType = 0;
- m_nDeadValue = 0;
- m_bTouTuiFlag = FALSE;
- m_bActive = FALSE;
- m_MultiCoef = 0.0f;
- m_MultiOffVal = 0.0f;
- m_nFields = 10;
- //}}AFX_FIELD_INIT
- m_nDefaultType = snapshot;
- }
- CString CRTUYC::GetDefaultConnect()
- {
- return _T("ODBC;DSN=Amiaoshu;UID=iES;PWD=iESApp;");
- }
- CString CRTUYC::GetDefaultSQL()
- {
- return _T("ComJshYC");
- }
- void CRTUYC::DoFieldExchange(CFieldExchange* pFX)
- {
- //{{AFX_FIELD_MAP(CRTUYC)
- pFX->SetFieldType(CFieldExchange::outputColumn);
- RFX_Int(pFX, _T("wRTUNum"), m_wRTUNum);
- RFX_Int(pFX, _T("YC_NO"), m_YC_NO);
- RFX_Int(pFX, _T("byBjType"), m_byBjType);
- RFX_Int(pFX, _T("nBjID"), m_nBjID);
- RFX_Int(pFX, _T("byCShType"), m_byCShType);
- RFX_Int(pFX, _T("nDeadValue"), m_nDeadValue);
- RFX_Bool(pFX, _T("bTouTuiFlag"), m_bTouTuiFlag);
- RFX_Bool(pFX, _T("bActive"), m_bActive);
- RFX_Single(pFX, _T("MultiCoef"), m_MultiCoef);
- RFX_Single(pFX, _T("MultiOffVal"), m_MultiOffVal);
- //}}AFX_FIELD_MAP
- }
- /////////////////////////////////////////////////////////////////////////////
- // CRTUYC diagnostics
- #ifdef _DEBUG
- void CRTUYC::AssertValid() const
- {
- CRecordset::AssertValid();
- }
- void CRTUYC::Dump(CDumpContext& dc) const
- {
- CRecordset::Dump(dc);
- }
- #endif //_DEBUG