-
Notifications
You must be signed in to change notification settings - Fork 0
/
SearchFor.h
64 lines (39 loc) · 1.8 KB
/
SearchFor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#pragma once
#include <iostream>
#include "SaveAndAppend.h"
#include "core.h"
using namespace std;
class SearchFor{
private:
core c;
SaveAndAppend saveAndAppend;
void editEmployeeInformation(vector<Employee>& employeesData, size_t index);
void editEmployeeName(vector<Employee>& employeesData, size_t index);
void employeeFoundOptions(vector<Employee>& employeesData, size_t index);
void editEmployeePostion(vector<Employee>& employeesData, size_t index);
void editEmployeeSalary(vector<Employee>& employeesData, size_t index);
void disableProcesses(vector<Client>& clientsData, size_t index);
void disableProcesses(vector<Employee>& employeesData, size_t index);
void enableProcesses(vector<Client>& clientsData, size_t index);
void enableProcesses(vector<Employee>& employeesData, size_t index);
void employeeNotFound(vector<Employee>& employeesData);
template<typename T>
void disableUser(vector<T>& data, size_t index);
template<typename T>
void enableUser(vector<T>& data, size_t index);
public:
void showSearchOptions();
void searchForClient(vector<Client>& clientsData);
void searchByUsername(vector<Client>& clientsData);
void foundOptions(vector<Client>& clientsData, Client currentClient, int clientInedx);
void editClientInformation(vector<Client>& clientsData, size_t clientIndex);
void showAllEmployees(vector<Employee>& employeesData);
void notFound(vector<Client>& clientsData);
void searchByClientname(vector<Client>& clientsData);
void searchByClientnameResult(vector<Client>& clientsData, vector<int>& resultClientsIndex);
void searchByClientID(vector<Client>& clientsData);
void showAllClients(vector<Client>& clientsData);
void showSearchForEmployee();
void searchForEmployee(vector<Employee>& employeesData);
void searchByEmployeeID(vector<Employee>& employeesData);
};