📄 kucunset.cpp
字号:
// Kucunset.cpp : implementation file
//
#include "stdafx.h"
#include "Supermarket.h"
#include "Kucunset.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CKucunset
IMPLEMENT_DYNAMIC(CKucunset, CRecordset)
CKucunset::CKucunset(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(CKucunset)
m_name = _T("");
m_id = _T("");
m_chandi = _T("");
m_number = 0;
m_totalruku = 0;
m_totalchuku = 0;
m_profit = 0.0;
m_nFields = 7;
//}}AFX_FIELD_INIT
m_nDefaultType = snapshot;
}
CString CKucunset::GetDefaultConnect()
{
return _T("ODBC;DSN=supDNS");
}
CString CKucunset::GetDefaultSQL()
{
return _T("[库存]");
}
void CKucunset::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(CKucunset)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Text(pFX, _T("[name]"), m_name);
RFX_Text(pFX, _T("[id]"), m_id);
RFX_Text(pFX, _T("[chandi]"), m_chandi);
RFX_Int(pFX, _T("[number]"), m_number);
RFX_Int(pFX, _T("[totalruku]"), m_totalruku);
RFX_Int(pFX, _T("[totalchuku]"), m_totalchuku);
RFX_Double(pFX, _T("[profit]"), m_profit);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CKucunset diagnostics
#ifdef _DEBUG
void CKucunset::AssertValid() const
{
CRecordset::AssertValid();
}
void CKucunset::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -