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