?? toleranceset.cpp
字號:
// toleranceset.cpp : implementation file
//
#include "stdafx.h"
#include "hellor14.h"
#include "toleranceset.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// toleranceset
IMPLEMENT_DYNAMIC(toleranceset, CRecordset)
toleranceset::toleranceset(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(toleranceset)
m_column1 = 0;
m_column2 = _T("");
m_column3 = 0.0;
m_B = 0.0;
m_P = 0.0;
m_MINTol = 0.0;
m_MAXTol = 0.0;
m_nFields = 7;
//}}AFX_FIELD_INIT
m_nDefaultType = snapshot;
}
CString toleranceset::GetDefaultConnect()
{
return _T("ODBC;DSN=公差優(yōu)化");
}
CString toleranceset::GetDefaultSQL()
{
return _T("[公差優(yōu)化]");
}
void toleranceset::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(toleranceset)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Long(pFX, _T("[編號]"), m_column1);
RFX_Text(pFX, _T("[加工方式]"), m_column2);
RFX_Double(pFX, _T("[加工尺寸]"), m_column3);
RFX_Double(pFX, _T("[B]"), m_B);
RFX_Double(pFX, _T("[P]"), m_P);
RFX_Double(pFX, _T("[MINTol]"), m_MINTol);
RFX_Double(pFX, _T("[MAXTol]"), m_MAXTol);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// toleranceset diagnostics
#ifdef _DEBUG
void toleranceset::AssertValid() const
{
CRecordset::AssertValid();
}
void toleranceset::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -