-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathabsencemanagedialog.h
46 lines (40 loc) · 1.01 KB
/
absencemanagedialog.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
#ifndef ABSENCEMANAGEDIALOG_H
#define ABSENCEMANAGEDIALOG_H
#include <QWidget>
#include <QTableWidget>
#include "defs.h"
#include "sqlitedatabase.h"
#include <QHeaderView>
#include "stateeditdialog.h"
#include "confirmsthdialog.h"
namespace Ui {
class AbsenceManageDialog;
}
class AbsenceManageDialog : public QWidget
{
Q_OBJECT
public:
explicit AbsenceManageDialog(QWidget *parent = nullptr);
~AbsenceManageDialog();
void getData();
void refresh();
// void confirmAdd();
void addState();
void deleteState();
void editState();
void saveState();
// void confirmAbsentButton();
// void confirmBackButton();
private:
Ui::AbsenceManageDialog *ui;
QMap<int,QVector<person>> m_absPers;
QMap<int,QVector<person>> m_workPers;
QMap<int,QVector<person>> m_allPers;
QVector<department> m_depts;
SqliteDatabase* database;
QMap<int, QString> m_state;
QTableWidget* stateTable;
int deleteAble = 1;
QVector<QString> stateVec;
};
#endif // ABSENCEMANAGEDIALOG_H