订单流程添加修改
This commit is contained in:
+10
-1
@@ -1,7 +1,7 @@
|
||||
#ifndef DASHBOARDPAGE_H
|
||||
#define DASHBOARDPAGE_H
|
||||
|
||||
#include "../services/productionservice.h"
|
||||
#include "../services/productionworker.h"
|
||||
|
||||
#include <QWidget>
|
||||
#include <QVector>
|
||||
@@ -13,6 +13,7 @@ class QResizeEvent;
|
||||
class QLabel;
|
||||
class QPushButton;
|
||||
class QTimer;
|
||||
class QThread;
|
||||
|
||||
namespace Ui { class DashboardPage; }
|
||||
|
||||
@@ -42,6 +43,8 @@ private slots:
|
||||
void onProductionStateChanged(ProductionService::State state,
|
||||
const QString &name);
|
||||
void onCurrentWorkpieceChanged(int workpieceId, const QString &barcode);
|
||||
void onCurrentWorkpieceSnapshotChanged(const Workpiece &workpiece);
|
||||
void onCurrentPositionChanged(int trayNo, int slotNo);
|
||||
void onProductionError(const QString &error);
|
||||
void onProductionFinished(int orderId);
|
||||
void onDeviceStatusChanged(const DeviceStatus &status);
|
||||
@@ -81,6 +84,12 @@ private:
|
||||
QTableWidget *processTable;
|
||||
QTimer *processRefreshTimer;
|
||||
int currentProcessElapsedMs;
|
||||
QThread *productionThread;
|
||||
ProductionWorker *productionWorker;
|
||||
ProductionService::State productionState;
|
||||
Workpiece productionWorkpiece;
|
||||
int productionTrayNo;
|
||||
int productionSlotNo;
|
||||
};
|
||||
|
||||
#endif // DASHBOARDPAGE_H
|
||||
|
||||
Reference in New Issue
Block a user