studentimset.cpp

来自「基于VB的数据库教材管理系统设计 有源码」· C++ 代码 · 共 80 行

CPP
80
字号
// StudentIMSet.cpp : implementation file
//

#include "stdafx.h"
#include "BookManager.h"
#include "StudentIMSet.h"

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

/////////////////////////////////////////////////////////////////////////////
// CStudentIMSet

IMPLEMENT_DYNAMIC(CStudentIMSet, CRecordset)

CStudentIMSet::CStudentIMSet(CDatabase* pdb)
	: CRecordset(pdb)
{
	//{{AFX_FIELD_INIT(CStudentIMSet)
	m_st_id = _T("");
	m_st_name = _T("");
	m_st_sex = _T("");
	m_st_age = 0;
	m_st_department = _T("");
	m_st_class = _T("");
	m_st_area = _T("");
	m_st_phone = _T("");
	m_st_doom = _T("");
	m_doom_phone = _T("");
	m_nFields = 10;
	//}}AFX_FIELD_INIT
	m_nDefaultType = snapshot;
}


CString CStudentIMSet::GetDefaultConnect()
{
	return _T("ODBC;DSN=教材管理系统");
}

CString CStudentIMSet::GetDefaultSQL()
{
	return _T("[studentIM]");
}

void CStudentIMSet::DoFieldExchange(CFieldExchange* pFX)
{
	//{{AFX_FIELD_MAP(CStudentIMSet)
	pFX->SetFieldType(CFieldExchange::outputColumn);
	RFX_Text(pFX, _T("[st_id]"), m_st_id);
	RFX_Text(pFX, _T("[st_name]"), m_st_name);
	RFX_Text(pFX, _T("[st_sex]"), m_st_sex);
	RFX_Int(pFX, _T("[st_age]"), m_st_age);
	RFX_Text(pFX, _T("[st_department]"), m_st_department);
	RFX_Text(pFX, _T("[st_class]"), m_st_class);
	RFX_Text(pFX, _T("[st_area]"), m_st_area);
	RFX_Text(pFX, _T("[st_phone]"), m_st_phone);
	RFX_Text(pFX, _T("[st_doom]"), m_st_doom);
	RFX_Text(pFX, _T("[doom_phone]"), m_doom_phone);
	//}}AFX_FIELD_MAP
}

/////////////////////////////////////////////////////////////////////////////
// CStudentIMSet diagnostics

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

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

⌨️ 快捷键说明

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