storageset.cpp

来自「一个仓库管理系统,用语仓库的管理」· C++ 代码 · 共 67 行

CPP
67
字号
// storageSet.cpp : implementation of the CStorageSet class
//

#include "stdafx.h"
#include "storage.h"
#include "storageSet.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CStorageSet implementation

IMPLEMENT_DYNAMIC(CStorageSet, CRecordset)

CStorageSet::CStorageSet(CDatabase* pdb)
	: CRecordset(pdb)
{
	//{{AFX_FIELD_INIT(CStorageSet)
	m_id = _T("");
	m_name = _T("");
	m_locate = _T("");
	m_area = _T("");
	m_nFields = 4;
	//}}AFX_FIELD_INIT
	m_nDefaultType = snapshot;
}

CString CStorageSet::GetDefaultConnect()
{
	return _T("ODBC;DSN=storagee");
}

CString CStorageSet::GetDefaultSQL()
{
	return _T("[仓库]");
}

void CStorageSet::DoFieldExchange(CFieldExchange* pFX)
{
	//{{AFX_FIELD_MAP(CStorageSet)
	pFX->SetFieldType(CFieldExchange::outputColumn);
	RFX_Text(pFX, _T("[id]"), m_id);
	RFX_Text(pFX, _T("[仓库名称]"), m_name);
	RFX_Text(pFX, _T("[仓库位置]"), m_locate);
	RFX_Text(pFX, _T("[仓库面积]"), m_area);
	//}}AFX_FIELD_MAP
}

/////////////////////////////////////////////////////////////////////////////
// CStorageSet diagnostics

#ifdef _DEBUG
void CStorageSet::AssertValid() const
{
	CRecordset::AssertValid();
}

void CStorageSet::Dump(CDumpContext& dc) const
{
	CRecordset::Dump(dc);
}
#endif //_DEBUG

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?