CT.cpp
资源名称:PasRTDat.rar [点击查看]
上传用户:shtiemo
上传日期:2017-12-29
资源大小:163k
文件大小:2k
源码类别:
能源行业(电力石油煤炭)
开发平台:
Visual C++
- // CT.cpp : implementation file
- //
- #include "stdafx.h"
- #include "PasRTDat.h"
- #include "CT.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CCT
- IMPLEMENT_DYNAMIC(CCT, CRecordset)
- CCT::CCT(CDatabase* pdb)
- : CRecordset(pdb)
- {
- //{{AFX_FIELD_INIT(CCT)
- m_ID = 0;
- m_MingZi = _T("");
- m_PCoef = 1.0f;
- m_POffset = 0.0f;
- m_QCoef = 1.0f;
- m_QOffset = 0.0f;
- #ifdef NEW_SYSTEM
- m_IACoef = 1.0f;
- m_IAOffset = 0.0f;
- m_IBCoef = 1.0f;
- m_IBOffset = 0.0f;
- m_ICCoef = 1.0f;
- m_ICOffset = 0.0f;
- m_nFields = 12;
- #else
- m_ICoef = 1.0f;
- m_IOffset = 0.0f;
- m_nFields = 8;
- #endif
- //}}AFX_FIELD_INIT
- m_nDefaultType = snapshot;
- }
- CString CCT::GetDefaultConnect()
- {
- return _T("ODBC;DSN=Amiaoshu;UID=iES;PWD=iESApp;");
- }
- CString CCT::GetDefaultSQL()
- {
- return _T("CT");
- }
- void CCT::DoFieldExchange(CFieldExchange* pFX)
- {
- //{{AFX_FIELD_MAP(CCT)
- pFX->SetFieldType(CFieldExchange::outputColumn);
- RFX_Int(pFX, _T("ID"), m_ID);
- RFX_Text(pFX, _T("MingZi"), m_MingZi);
- RFX_Single(pFX, _T("PCoef"), m_PCoef);
- RFX_Single(pFX, _T("POffset"), m_POffset);
- RFX_Single(pFX, _T("QCoef"), m_QCoef);
- RFX_Single(pFX, _T("QOffset"), m_QOffset);
- #ifdef NEW_SYSTEM
- RFX_Single(pFX, _T("IACoef"), m_IACoef);
- RFX_Single(pFX, _T("IAOffset"), m_IAOffset);
- RFX_Single(pFX, _T("IBCoef"), m_ICCoef);
- RFX_Single(pFX, _T("IBOffset"), m_ICOffset);
- RFX_Single(pFX, _T("ICCoef"), m_ICCoef);
- RFX_Single(pFX, _T("ICOffset"), m_ICOffset);
- #else
- RFX_Single(pFX, _T("ICoef"), m_ICoef);
- RFX_Single(pFX, _T("IOffset"), m_IOffset);
- #endif
- //}}AFX_FIELD_MAP
- }
- /////////////////////////////////////////////////////////////////////////////
- // CCT diagnostics
- #ifdef _DEBUG
- void CCT::AssertValid() const
- {
- CRecordset::AssertValid();
- }
- void CCT::Dump(CDumpContext& dc) const
- {
- CRecordset::Dump(dc);
- }
- #endif //_DEBUG