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

📄 worker_info.cpp

📁 此文件是加油站管理系统的界面,开发环境是 visual studio 2008 MFC
💻 CPP
字号:
// worker_info.h : Implementation of the Cworker_info class



// Cworker_info implementation

// code generated on 2009年1月9日, 21:32

#include "stdafx.h"
#include "worker_info.h"
IMPLEMENT_DYNAMIC(Cworker_info, CRecordset)

Cworker_info::Cworker_info(CDatabase* pdb)
	: CRecordset(pdb)
{
	m_worker_number = "";
	m_worker_name = "";
	m_sex = "";
	m_age = 0;
	m_pro_title = "";
	m_position = "";
	m_station_number = "";
	m_phone = "";
	m_address = "";
	m_time;
	m_other = "";
	m_password = "";
	m_nFields = 12;
	m_nDefaultType = dynaset;
}
//#error Security Issue: The connection string may contain a password
// The connection string below may contain plain text passwords and/or
// other sensitive information. Please remove the #error after reviewing
// the connection string for any security related issues. You may want to
// store the password in some other form or use a different user authentication.
CString Cworker_info::GetDefaultConnect()
{
	return _T("DSN=gasstion;UID=sa;PWD=;APP=Microsoft\x00ae Visual Studio\x00ae 2008;WSID=GPF-PC;DATABASE=gas_station;");
}

CString Cworker_info::GetDefaultSQL()
{
	return _T("[dbo].[worker_info]");
}

void Cworker_info::DoFieldExchange(CFieldExchange* pFX)
{
	pFX->SetFieldType(CFieldExchange::outputColumn);
// Macros such as RFX_Text() and RFX_Int() are dependent on the
// type of the member variable, not the type of the field in the database.
// ODBC will try to automatically convert the column value to the requested type
	RFX_Text(pFX, _T("[worker_number]"), m_worker_number);
	RFX_Text(pFX, _T("[worker_name]"), m_worker_name);
	RFX_Text(pFX, _T("[sex]"), m_sex);
	RFX_Long(pFX, _T("[age]"), m_age);
	RFX_Text(pFX, _T("[pro_title]"), m_pro_title);
	RFX_Text(pFX, _T("[position]"), m_position);
	RFX_Text(pFX, _T("[station_number]"), m_station_number);
	RFX_Text(pFX, _T("[phone]"), m_phone);
	RFX_Text(pFX, _T("[address]"), m_address);
	RFX_Date(pFX, _T("[time]"), m_time);
	RFX_Text(pFX, _T("[other]"), m_other);
	RFX_Text(pFX, _T("[password]"), m_password);

}
/////////////////////////////////////////////////////////////////////////////
// Cworker_info diagnostics

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

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


⌨️ 快捷键说明

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