📄 mobiletelephonedbset.cpp
字号:
// MobileTelephoneDBSet.cpp : implementation file
//
#include "stdafx.h"
#include "SmsCom.h"
#include "MobileTelephoneDBSet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMobileTelephoneDBSet
IMPLEMENT_DYNAMIC(CMobileTelephoneDBSet, CRecordset)
CMobileTelephoneDBSet::CMobileTelephoneDBSet(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(CMobileTelephoneDBSet)
m_unit_id = _T("");
m_serial_id = 0;
m_phone = _T("");
m_name = _T("");
m_alarm = 0;
m_nFields = 5;
//}}AFX_FIELD_INIT
m_nDefaultType = snapshot;
}
CString CMobileTelephoneDBSet::GetDefaultConnect()
{
return _T("ODBC;DSN=gl30;UID=iccc;PWD=wttc");
}
CString CMobileTelephoneDBSet::GetDefaultSQL()
{
return _T("[dbo].[mobile_telephone]");
}
void CMobileTelephoneDBSet::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(CMobileTelephoneDBSet)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Text(pFX, _T("[unit_id]"), m_unit_id);
RFX_Long(pFX, _T("[serial_id]"), m_serial_id);
RFX_Text(pFX, _T("[phone]"), m_phone);
RFX_Text(pFX, _T("[name]"), m_name);
RFX_Long(pFX, _T("[serial_id]"), m_alarm);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CMobileTelephoneDBSet diagnostics
#ifdef _DEBUG
void CMobileTelephoneDBSet::AssertValid() const
{
CRecordset::AssertValid();
}
void CMobileTelephoneDBSet::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -