📄 guset.cpp
字号:
// guset.cpp : implementation file
//
#include "stdafx.h"
#include "flowerSaleSystem.h"
#include "guset.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// guset
IMPLEMENT_DYNAMIC(guset, CRecordset)
guset::guset(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(guset)
m_gid = _T("");
m_gname = _T("");
m_gsex = _T("");
m_gyear = 0;
m_gpassword = _T("");
m_gcity = _T("");
m_gphone = _T("");
m_glastlandingIP = _T("");
m_gconsumeMoney = 0.0;
m_nFields = 10;
//}}AFX_FIELD_INIT
m_nDefaultType = dynaset;
}
CString guset::GetDefaultConnect()
{
return _T("ODBC;DSN=flower");
}
CString guset::GetDefaultSQL()
{
return _T("[dbo].[顾客信息]");
}
void guset::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(guset)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Text(pFX, _T("[gid]"), m_gid);
RFX_Text(pFX, _T("[gname]"), m_gname);
RFX_Text(pFX, _T("[gsex]"), m_gsex);
RFX_Byte(pFX, _T("[gyear]"), m_gyear);
RFX_Text(pFX, _T("[gpassword]"), m_gpassword);
RFX_Text(pFX, _T("[gcity]"), m_gcity);
RFX_Text(pFX, _T("[gphone]"), m_gphone);
RFX_Date(pFX, _T("[glastlandingTime]"), m_glastlandingTime);
RFX_Text(pFX, _T("[glastlandingIP]"), m_glastlandingIP);
RFX_Double(pFX, _T("[gconsumeMoney]"), m_gconsumeMoney);
//}}AFX_FIELD_MAP
}
/////////////////////////////////////////////////////////////////////////////
// guset diagnostics
#ifdef _DEBUG
void guset::AssertValid() const
{
CRecordset::AssertValid();
}
void guset::Dump(CDumpContext& dc) const
{
CRecordset::Dump(dc);
}
#endif //_DEBUG
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -