stutranlog.cpp

来自「教学管理系统实现了高校教务、教学和学生三大方面的自动化以及交互式管理」· C++ 代码 · 共 80 行

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

#include "stdafx.h"
#include "EduAdministration.h"
#include "StuTranLog.h"

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

/////////////////////////////////////////////////////////////////////////////
// CStuTranLog

IMPLEMENT_DYNAMIC(CStuTranLog, CRecordset)

CStuTranLog::CStuTranLog(CDatabase* pdb)
	: CRecordset(pdb)
{
	//{{AFX_FIELD_INIT(CStuTranLog)
	m_tranId = _T("");
	m_tranNum = _T("");
	m_tranName = _T("");
	m_oldInstitute = _T("");
	m_oldSpecialty = _T("");
	m_oldGrade = _T("");
	m_newInstitute = _T("");
	m_newSpecialty = _T("");
	m_newGrade = _T("");
	m_tranDate = _T("");
	m_nFields = 10;
	//}}AFX_FIELD_INIT
	m_nDefaultType = snapshot;
}


CString CStuTranLog::GetDefaultConnect()
{
	return _T("ODBC;DSN=EduAdministration");
}

CString CStuTranLog::GetDefaultSQL()
{
	return _T("[dbo].[stuTranLog]");
}

void CStuTranLog::DoFieldExchange(CFieldExchange* pFX)
{
	//{{AFX_FIELD_MAP(CStuTranLog)
	pFX->SetFieldType(CFieldExchange::outputColumn);
	RFX_Text(pFX, _T("[tranId]"), m_tranId);
	RFX_Text(pFX, _T("[tranNum]"), m_tranNum);
	RFX_Text(pFX, _T("[tranName]"), m_tranName);
	RFX_Text(pFX, _T("[oldInstitute]"), m_oldInstitute);
	RFX_Text(pFX, _T("[oldSpecialty]"), m_oldSpecialty);
	RFX_Text(pFX, _T("[oldGrade]"), m_oldGrade);
	RFX_Text(pFX, _T("[newInstitute]"), m_newInstitute);
	RFX_Text(pFX, _T("[newSpecialty]"), m_newSpecialty);
	RFX_Text(pFX, _T("[newGrade]"), m_newGrade);
	RFX_Text(pFX, _T("[tranDate]"), m_tranDate);
	//}}AFX_FIELD_MAP
}

/////////////////////////////////////////////////////////////////////////////
// CStuTranLog diagnostics

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

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

⌨️ 快捷键说明

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