stutraninlog.cpp
来自「教学管理系统实现了高校教务、教学和学生三大方面的自动化以及交互式管理」· C++ 代码 · 共 76 行
CPP
76 行
// StuTranInLog.cpp : implementation file
//
#include "stdafx.h"
#include "EduAdministration.h"
#include "StuTranInLog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CStuTranInLog
IMPLEMENT_DYNAMIC(CStuTranInLog, CRecordset)
CStuTranInLog::CStuTranInLog(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(CStuTranInLog)
m_inId = _T("");
m_inNum = _T("");
m_inName = _T("");
m_institute = _T("");
m_specialty = _T("");
m_grade = _T("");
m_fromSchool = _T("");
m_tranDate = _T("");
m_nFields = 8;
//}}AFX_FIELD_INIT
m_nDefaultType = snapshot;
}
CString CStuTranInLog::GetDefaultConnect()
{
return _T("ODBC;DSN=EduAdministration");
}
CString CStuTranInLog::GetDefaultSQL()
{
return _T("[dbo].[stuTransinLog]");
}
void CStuTranInLog::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(CStuTranInLog)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Text(pFX, _T("[inId]"), m_inId);
RFX_Text(pFX, _T("[inNum]"), m_inNum);
RFX_Text(pFX, _T("[inName]"), m_inName);
RFX_Text(pFX, _T("[institute]"), m_institute);
RFX_Text(pFX, _T("[specialty]"), m_specialty);
RFX_Text(pFX, _T("[grade]"), m_grade);
RFX_Text(pFX, _T("[fromSchool]"), m_fromSchool);
RFX_Text(pFX, _T("[tranDate]"), m_tranDate);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CStuTranInLog diagnostics
#ifdef _DEBUG
void CStuTranInLog::AssertValid() const
{
CRecordset::AssertValid();
}
void CStuTranInLog::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?