📄 patientrecord.cpp
字号:
// PatientRecord.cpp : implementation file
//
#include "stdafx.h"
#include "Enroll.h"
#include "PatientRecord.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPatientRecord
IMPLEMENT_DYNAMIC(CPatientRecord, CRecordset)
CPatientRecord::CPatientRecord(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(CPatientRecord)
m_sAddress = _T("");
m_sDisease = _T("");
m_bGender = FALSE;
m_nID = 0;
m_sMemo = _T("");
m_sName = _T("");
m_sPhone = _T("");
m_nFields = 7;
//}}AFX_FIELD_INIT
m_nDefaultType = snapshot;
}
CString CPatientRecord::GetDefaultConnect()
{
return _T("ODBC;DSN=ImgTrans");
}
CString CPatientRecord::GetDefaultSQL()
{
return _T("[Patient]");
}
void CPatientRecord::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(CPatientRecord)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Text(pFX, _T("[Address]"), m_sAddress);
RFX_Text(pFX, _T("[Disease]"), m_sDisease);
RFX_Bool(pFX, _T("[Gender]"), m_bGender);
RFX_Long(pFX, _T("[ID]"), m_nID);
RFX_Text(pFX, _T("[Memo]"), m_sMemo);
RFX_Text(pFX, _T("[Name]"), m_sName);
RFX_Text(pFX, _T("[Phone]"), m_sPhone);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CPatientRecord diagnostics
#ifdef _DEBUG
void CPatientRecord::AssertValid() const
{
CRecordset::AssertValid();
}
void CPatientRecord::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -