You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#pragma once // <20><>ֹͷ<D6B9>ļ<EFBFBD><C4BC>ظ<EFBFBD><D8B8><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
#include <fstream>
|
|
|
|
|
#include <iostream> //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ<EFBFBD>ļ<EFBFBD>
|
|
|
|
|
|
|
|
|
|
#include "boss.h"
|
|
|
|
|
#include "employee.h"
|
|
|
|
|
#include "manager.h"
|
|
|
|
|
#include "worker.h"
|
|
|
|
|
#define FILENAME "empFile.txt"
|
|
|
|
|
|
|
|
|
|
using namespace std; // ʹ<>ñ<EFBFBD><EFBFBD><D7BC><EFBFBD><EFBFBD><EFBFBD>ռ<EFBFBD>
|
|
|
|
|
class WorkerManager {
|
|
|
|
|
public:
|
|
|
|
|
// <20><><EFBFBD>캯<EFBFBD><ECBAAF>
|
|
|
|
|
WorkerManager();
|
|
|
|
|
|
|
|
|
|
// չʾ<D5B9>˵<EFBFBD>
|
|
|
|
|
void Show_Menu();
|
|
|
|
|
|
|
|
|
|
// <20>˳<EFBFBD>ϵͳ
|
|
|
|
|
void ExitSystem();
|
|
|
|
|
|
|
|
|
|
// <20><>¼ְ<C2BC><D6B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
int m_EmpNum;
|
|
|
|
|
|
|
|
|
|
// ְ<><D6B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8>
|
|
|
|
|
worker** m_EmpArray; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD>worker.h
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD>ְ<EFBFBD><D6B0>
|
|
|
|
|
void Add_Emp();
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
|
|
|
|
|
void save();
|
|
|
|
|
|
|
|
|
|
// <20>ж<EFBFBD><D0B6>ļ<EFBFBD><C4BC>Ƿ<EFBFBD>Ϊ<EFBFBD>ձ<EFBFBD>־
|
|
|
|
|
bool m_FileIsEmpty;
|
|
|
|
|
|
|
|
|
|
// ͳ<><CDB3><EFBFBD>ļ<EFBFBD><C4BC>е<EFBFBD><D0B5><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
int get_EmpNum();
|
|
|
|
|
|
|
|
|
|
// <20><>ʼ<EFBFBD><CABC>Ա<EFBFBD><D4B1>
|
|
|
|
|
void init_Emp();
|
|
|
|
|
|
|
|
|
|
// <20><>ʾְ<CABE><D6B0>
|
|
|
|
|
void Show_Emp();
|
|
|
|
|
|
|
|
|
|
// ɾ<><C9BE>ְ<EFBFBD><D6B0>
|
|
|
|
|
void Del_Emp();
|
|
|
|
|
|
|
|
|
|
// <20>ж<EFBFBD>ְ<EFBFBD><D6B0><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD>ڣ<EFBFBD><DAA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڷ<EFBFBD><DAB7><EFBFBD>ְ<EFBFBD><D6B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>е<EFBFBD>λ<EFBFBD>ã<EFBFBD><C3A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڷ<EFBFBD><DAB7><EFBFBD>-1
|
|
|
|
|
int IsExist(int id);
|
|
|
|
|
|
|
|
|
|
// <20><EFBFBD>ְ<EFBFBD><D6B0>
|
|
|
|
|
void Mod_Emp();
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD>Ա<EFBFBD><D4B1>
|
|
|
|
|
void Find_Emp();
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD>ձ<EFBFBD><D5B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
void Sort_Emp();
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
|
|
|
|
|
void Clean_File();
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
~WorkerManager();
|
|
|
|
|
};
|