first commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#ifndef TRAYREPOSITORY_H
|
||||
#define TRAYREPOSITORY_H
|
||||
|
||||
#include "../models/tray.h"
|
||||
|
||||
#include <QList>
|
||||
|
||||
class TrayRepository
|
||||
{
|
||||
public:
|
||||
QList<Tray> listTrays(QString *error = nullptr);
|
||||
QList<TraySlot> listSlots(int trayId, QString *error = nullptr);
|
||||
QList<TraySlot> listEmptySlotsForAllocation(QString *error = nullptr);
|
||||
bool initializeSlots(int trayId, int rows = 7, int columns = 7,
|
||||
QString *error = nullptr);
|
||||
bool assignSlot(int trayId, int rowNo, int columnNo, int workpieceId,
|
||||
const QString &state, QString *error = nullptr);
|
||||
bool refreshStats(int trayId, QString *error = nullptr);
|
||||
bool upsertTray(const Tray &tray, QString *error = nullptr);
|
||||
bool updateSlotState(int trayId, int rowNo, int columnNo, const QString &state,
|
||||
int workpieceId = 0, QString *error = nullptr);
|
||||
};
|
||||
|
||||
#endif // TRAYREPOSITORY_H
|
||||
Reference in New Issue
Block a user