RTUYX.cpp
资源名称:PasRTDat.rar [点击查看]
上传用户:shtiemo
上传日期:2017-12-29
资源大小:163k
文件大小:2k
源码类别:
能源行业(电力石油煤炭)
开发平台:
Visual C++
- // RTUYX.cpp : implementation file
- //
- #include "stdafx.h"
- #include "PasRTDat.h"
- #include "RTUYX.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CRTUYX
- IMPLEMENT_DYNAMIC(CRTUYX, CRecordset)
- CRTUYX::CRTUYX(CDatabase* pdb)
- : CRecordset(pdb)
- {
- //{{AFX_FIELD_INIT(CRTUYX)
- m_wRTUNum = 0;
- m_YX_NO = 0;
- m_byBjType = 0;
- m_nBjID = 0;
- m_byCShType = 0;
- m_nObject = 0;
- m_nObject1 = 0;
- m_nObject2 = 0;
- m_bTouTuiFlag = FALSE;
- m_bActive = FALSE;
- m_bNot = FALSE;
- m_nFields = 11;
- //}}AFX_FIELD_INIT
- m_nDefaultType = snapshot;
- }
- CString CRTUYX::GetDefaultConnect()
- {
- return _T("ODBC;DSN=Amiaoshu;UID=iES;PWD=iESApp;");
- }
- CString CRTUYX::GetDefaultSQL()
- {
- return _T("ComJshYX");
- }
- void CRTUYX::DoFieldExchange(CFieldExchange* pFX)
- {
- //{{AFX_FIELD_MAP(CRTUYX)
- pFX->SetFieldType(CFieldExchange::outputColumn);
- RFX_Int(pFX, _T("wRTUNum"), m_wRTUNum);
- RFX_Int(pFX, _T("YX_NO"), m_YX_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("nObject"), m_nObject);
- RFX_Int(pFX, _T("nObject1"), m_nObject1);
- RFX_Int(pFX, _T("nObject2"), m_nObject2);
- RFX_Bool(pFX, _T("bTouTuiFlag"), m_bTouTuiFlag);
- RFX_Bool(pFX, _T("bActive"), m_bActive);
- RFX_Bool(pFX, _T("bNot"), m_bNot);
- //}}AFX_FIELD_MAP
- }
- /////////////////////////////////////////////////////////////////////////////
- // CRTUYX diagnostics
- #ifdef _DEBUG
- void CRTUYX::AssertValid() const
- {
- CRecordset::AssertValid();
- }
- void CRTUYX::Dump(CDumpContext& dc) const
- {
- CRecordset::Dump(dc);
- }
- #endif //_DEBUG