⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readertypeset.cpp

📁 LibraryManageDM.rar 数据库设计图书馆管理系统
💻 CPP
字号:
// ReaderTypeSet.cpp : implementation file
//
#include "StdAfx.h"
#include "ReaderTypeSet.h"
#include "LibraryManage.h"

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

/////////////////////////////////////////////////////////////////////////////
// CReaderTypeSet

IMPLEMENT_DYNAMIC(CReaderTypeSet, CRecordset)

CReaderTypeSet::CReaderTypeSet(CDatabase* pdb)
    : CRecordset(pdb)
{
    //{{AFX_FIELD_INIT(CReaderTypeSet)
    strTypeName_ = _T("");
    nNumber_ = 0;
    dPunishLimit_ = 0.0;
    m_nFields = 3;
    //}}AFX_FIELD_INIT
    m_nDefaultType = snapshot;
}


CString CReaderTypeSet::GetDefaultConnect()
{
    return _T("ODBC;DSN=BookLibraryDM");
}

CString CReaderTypeSet::GetDefaultSQL()
{
    return _T("[Type]");
}

void CReaderTypeSet::DoFieldExchange(CFieldExchange* pFX)
{
    //{{AFX_FIELD_MAP(CReaderTypeSet)
    pFX->SetFieldType(CFieldExchange::outputColumn);
    RFX_Text(pFX, _T("[Type]"), strTypeName_);
    RFX_Int(pFX, _T("[Copies]"),nNumber_);
    RFX_Double(pFX, _T("[PunishLimit]"), dPunishLimit_);
    //}}AFX_FIELD_MAP
}

/////////////////////////////////////////////////////////////////////////////
// CReaderTypeSet diagnostics

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

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

⌨️ 快捷键说明

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