-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemagmdichild.h
79 lines (55 loc) · 1.45 KB
/
emagmdichild.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#ifndef EMAGMDICHILD_H
#define EMAGMDICHILD_H
#include <QWidget>
#include <QString>
#include <QtNetwork/QNetworkAccessManager>
#include <QtNetwork/QNetworkRequest>
#include <QtNetwork/QNetworkReply>
#include <QFile>
#include <QDir>
#include <QUrl>
#include <QJsonDocument>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonValue>
#include <QStringList>
#include <QMessageBox>
#include <QDebug>
#include <QSettings>
#include <QSql>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QSqlTableModel>
namespace Ui {
class EMAGMdiChild;
}
class EMAGMdiChild : public QWidget
{
Q_OBJECT
public:
explicit EMAGMdiChild(QWidget *parent = nullptr);
~EMAGMdiChild();
void PassDatabase(QSqlDatabase DataBase);
private slots:
void on_AuthRequestComplete(QNetworkReply * AuthReply);
void PopulateOrderViewTable();
void PopulateOrderDetailsViewTable();
void on_PreviousDayButton_clicked();
void on_NextDayButton_clicked();
void on_OrderDateView_userDateChanged(const QDate &date);
void on_ModifyOrderButton_clicked();
void on_OrdersView_clicked(const QModelIndex &index);
void UpdateTables();
private:
Ui::EMAGMdiChild *ui;
QNetworkAccessManager *AuthManager;
void GetEMAGOrders();
QDir EMAGOrdersDirectory;
QDate CurrentDate;
QSqlDatabase DataBase;
signals:
void OrderGetComplete();
void OrderEdit(QString);
};
#endif // EMAGMDICHILD_H