Commit
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
#ifndef QUALITYSERVICE_H
|
||||
#define QUALITYSERVICE_H
|
||||
|
||||
#include "../models/qualityrecord.h"
|
||||
|
||||
#include <QList>
|
||||
#include <QString>
|
||||
|
||||
class QualityService
|
||||
{
|
||||
public:
|
||||
static QualityService &instance();
|
||||
|
||||
QList<InspectionRecord> listInspectionRecords(
|
||||
const QString &orderNo = QString(),
|
||||
const QString &barcode = QString(),
|
||||
const QString &trayCode = QString(),
|
||||
int trayPos = 0,
|
||||
const QString &inspectionMode = QString(),
|
||||
const QString &inspectionSide = QString(),
|
||||
const QString &resultState = QString(),
|
||||
QString *error = nullptr);
|
||||
|
||||
bool queryStatistics(const QString &orderNo, QualityStatistics *statistics,
|
||||
QString *error = nullptr);
|
||||
|
||||
bool findWorkpieceTrace(const QString &barcode, Workpiece *workpiece,
|
||||
Order *order, QList<InspectionRecord> *inspections,
|
||||
QList<QualityProcessRecord> *processRecords,
|
||||
QList<QualityStateHistory> *stateHistory,
|
||||
QString *error = nullptr);
|
||||
|
||||
private:
|
||||
QualityService() = default;
|
||||
QualityService(const QualityService &) = delete;
|
||||
QualityService &operator=(const QualityService &) = delete;
|
||||
};
|
||||
|
||||
#endif // QUALITYSERVICE_H
|
||||
Reference in New Issue
Block a user