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