📄 department.h
字号:
#if !defined(AFX_DEPARTMENT_H__A801E804_FA5F_4882_848C_2A1489045E96__INCLUDED_)
#define AFX_DEPARTMENT_H__A801E804_FA5F_4882_848C_2A1489045E96__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif
//include
#include "Employee.h"
//////////////////////////////////////////////////////////////////////////////
//部门类
class CDepartment{
CString m_departname; //部门的名字
CString DEPART; //用来判断是哪个部门
//需要从数据库里得到的数据
CEmployee m_manager; //部门的经理
int m_employeenumber; //部门的职员数
int m_departsellamount; //部门的销售总额
int m_m_rate; //经理的提成率
int m_s_rate; //销售员的提成率
int m_t_rate; //奖金率
//时间
CString m_year; //年
CString m_month; //月
public:
CEmployee *m_employee; //一个部门中所有职员的数组的头指针
void InitDepartment(); //初始化部门类的对象
//得到部门的信息
CString GetDepartmentName(); //得到部门的名字
CEmployee GetManager(); //得到部门的经理
int GetEmployeeNumber(); //得到部门的职员数
void UpdateEmployeeNumber(int number); //更新部门的职员数
void GetDepartmentEmployee(); //得到部门中所有职员的信息
void GetEmployeeSellamount(); //得到职员的销售额
void DeleteDepartmentEmployee(); //废除现在得到的职员信息
//对数据库中的表进行操作
void Create_Table(CString year); //创建年销售量的表
//时间
CString GetYear();
CString GetMonth();
void SetDate(CString year,CString month); //设置时间
CDepartment(CString DepartName); //构造函数
virtual ~CDepartment();
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -