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