订单流程添加修改
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
#ifndef PRODUCTIONWORKER_H
|
||||
#define PRODUCTIONWORKER_H
|
||||
|
||||
#include "productionservice.h"
|
||||
|
||||
#include <QObject>
|
||||
|
||||
class ProductionWorker : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ProductionWorker(QObject *parent = nullptr);
|
||||
|
||||
public slots:
|
||||
void requestStart(int orderId);
|
||||
void requestPause();
|
||||
void requestResume();
|
||||
void requestStop();
|
||||
void requestReset();
|
||||
void requestRecover();
|
||||
void requestRetry();
|
||||
void requestMarkNg();
|
||||
void requestRestore();
|
||||
|
||||
signals:
|
||||
void stateChanged(ProductionService::State state, const QString &name);
|
||||
void currentWorkpieceChanged(int workpieceId, const QString &barcode);
|
||||
void currentWorkpieceSnapshotChanged(const Workpiece &workpiece);
|
||||
void currentPositionChanged(int trayNo, int slotNo);
|
||||
void productionFinished(int orderId);
|
||||
void productionError(const QString &error);
|
||||
void alarmRaised(const QString &code, const QString &message);
|
||||
void processElapsedChanged(const QString &processStep, int elapsedMs);
|
||||
void timeoutWarning(const QString &state, int elapsedMs, int timeoutMs);
|
||||
void timeoutRecoveryRequired(const QString &state, const QString &message);
|
||||
void recoveryCompleted(const QString &mode);
|
||||
|
||||
private:
|
||||
void ensureService();
|
||||
void reportFailure(bool success, const QString &error);
|
||||
|
||||
ProductionService *m_service;
|
||||
};
|
||||
|
||||
#endif // PRODUCTIONWORKER_H
|
||||
Reference in New Issue
Block a user