madeset.cpp
来自「此库存系统是C++语言与数据库相结合的」· C++ 代码 · 共 64 行
CPP
64 行
// madeset.cpp : implementation file
//
#include "stdafx.h"
#include "storage.h"
#include "madeset.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// madeset
IMPLEMENT_DYNAMIC(madeset, CRecordset)
madeset::madeset(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(madeset)
m_storage_id = _T("");
m_factory_id = _T("");
m_nFields = 2;
//}}AFX_FIELD_INIT
m_nDefaultType = snapshot;
}
CString madeset::GetDefaultConnect()
{
return _T("ODBC;DSN=storagee");
}
CString madeset::GetDefaultSQL()
{
return _T("[制造]");
}
void madeset::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(madeset)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Text(pFX, _T("[storage_id]"), m_storage_id);
RFX_Text(pFX, _T("[factory_id]"), m_factory_id);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// madeset diagnostics
#ifdef _DEBUG
void madeset::AssertValid() const
{
CRecordset::AssertValid();
}
void madeset::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?