-
Notifications
You must be signed in to change notification settings - Fork 1
/
viewstftable.h.aG9296
53 lines (36 loc) · 1016 Bytes
/
viewstftable.h.aG9296
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
#ifndef VIEWSTFTABLE_H
#define VIEWSTFTABLE_H
#include <QMainWindow>
#include <QtSql>
#include <QRadioButton>
#include<QCoreApplication>
#include <QSqlTableModel>
#include "viewstfrecord.h"
namespace Ui {
class viewstftable;
}
class viewstftable : public QMainWindow
{
Q_OBJECT
public:
explicit viewstftable(QWidget *parent = 0);
~viewstftable();
private slots:
void on_Back_clicked();
void on_tableWidget_doubleClicked(const QModelIndex &index);
void on_Search_clicked();
private:
Ui::viewstftable *ui;
QSqlDatabase db;
viewstfrecord *vstaff;
QSqlQuery query;
bool loading;
void FillTable();
void searchbyFirstName(QString);
void searchbyLastName(QString);
void searchbyEmail(QString);
void searchbyPhone(QString);
void searchByPosition(QString);
};
extern int staff_id; //database id is made global type so that it can be accesed in viewstfrecord file
#endif // VIEWSTFTABLE_H