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

📄 employees.h

📁 ado控键的使用
💻 H
字号:

// Employees.h: interface for the CEmployees class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_EMPLOYEES_H__834DF343_A9BD_4148_97A7_CADEBF5D90B6__INCLUDED_)
#define AFX_EMPLOYEES_H__834DF343_A9BD_4148_97A7_CADEBF5D90B6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CEmployees  
{
private:
	int Emp_id;
	CString Emp_name;
	CString Sex;
	CString Title;
	float Wage;
	int Dep_id;
public:
	CEmployees();
	virtual ~CEmployees();
	//设置和读取成员变量值
	int GetEmp_id();
	void SetEmp_id(int vEmpId);
	CString GetEmp_name();
	void SetEmp_name(CString vEmpName);
	CString GetSex();
	void SetSex(CString vSex);
	CString GetTitle();
	void SetTitle(CString vTitle);
	float GetWage();
	void SetWage(float vWage);
	int GetDep_id();
	void SetDep_id(int vDepId);
	//数据库操作
	void sql_insert();
	void sql_update(CString cEmpId);
	void sql_delete(CString cEmpId);
	//根据员工编号读取所有字段值
	void GetData(CString cEmpId);
};

#endif // !defined(AFX_EMPLOYEES_H__834DF343_A9BD_4148_97A7_CADEBF5D90B6__INCLUDED_)

⌨️ 快捷键说明

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