-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnewitemorder.h
53 lines (44 loc) · 1.3 KB
/
newitemorder.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
#ifndef NEWITEMORDER_H
#define NEWITEMORDER_H
#include "maininclude.h"
#include "messenger.h"
#include <QWidget>
namespace Ui {
class NewItemOrder;
}
class NewItemOrder : public QWidget
{
Q_OBJECT
public:
explicit NewItemOrder(QWidget *parent = nullptr);
~NewItemOrder();
void changeOrder(OneResOrder* order); //修改某订单(订单id不变)
void setModel(OneResOrder order); //作为模板,新建订单(新建id)
bool showOrder(int id);
void showOrder(OneResOrder order);
signals:
void finishChange();
private slots:
void afterConfirmReply(QNetworkReply*);
void on_addItem_clicked();
void flushBox(int);
void on_resBox_currentTextChanged(const QString& arg1);
void on_nameBox_currentTextChanged(const QString& arg1);
void on_typeBox_currentTextChanged(const QString& arg1);
void on_deleteItem_clicked();
void on_cancel_clicked();
void on_confirm_clicked();
void on_changeItem_clicked();
void on_button_readExcel_clicked();
private:
void addOneItem(OneNewItem item);
void setOrder(OneResOrder order);
void postOn(QJsonObject json);
int dowhat;
bool isInAddItem = false;
OneResOrder* theOrder = nullptr;
QPushButton* confirm;
Messenger* messenger;
Ui::NewItemOrder *ui;
};
#endif // NEWITEMORDER_H