1 |
#pragma once
|
2 |
|
3 |
#include "Containers.h"
|
4 |
#include <vector>
|
5 |
|
6 |
using namespace std;
|
7 |
|
8 |
class DatabaseLayer
|
9 |
{
|
10 |
private:
|
11 |
CDatabase db;
|
12 |
|
13 |
public:
|
14 |
DatabaseLayer(void);
|
15 |
~DatabaseLayer(void);
|
16 |
|
17 |
vector<Person> GetPersonAll(void);
|
18 |
Person GetPerson(CString wantInits);
|
19 |
|
20 |
bool AddPerson(Person NewPerson);
|
21 |
bool UpdatePerson(Person ChangePerson);
|
22 |
bool DeletePerson(Person RemovePerson);
|
23 |
bool ReturnEquipment(CString barcode);
|
24 |
bool CheckoutEquipment(Person CheckPersID, Equipment CheckEquip, int Numdays);
|
25 |
bool EquipmentReservation(Person CheckPersID, Equipment CheckEquip, int Numdays);
|
26 |
bool UpdateEquipment(Equipment CheckEquip);
|
27 |
bool AddEquipment(Equipment AddEquip);
|
28 |
vector<Equipment> GetEquipmentAll(void);
|
29 |
Equipment GetEquipment(CString wantBarcode);
|
30 |
bool DeleteEquipment(Equipment DelEquip);
|
31 |
vector<Equipment> Search(CString barcode, CString name, CString inits, bool available, bool reserved, bool deposited);
|
32 |
void FillEquipmentVector(vector<Equipment> &buffer, CRecordset &rs);
|
33 |
};
|