#ifndef QUALITYPAGE_H #define QUALITYPAGE_H #include class QComboBox; class QLabel; class QLineEdit; class QTableWidget; class QualityPage : public QWidget { public: explicit QualityPage(QWidget *parent = nullptr); ~QualityPage(); void refresh(); private: void setupInspectionTab(); void setupStatisticsTab(); void setupTraceTab(); void loadInspectionRecords(); void loadStatistics(); void loadTrace(); void setMessage(QLabel *label, const QString &message, bool error); void clearTable(QTableWidget *table); QLineEdit *inspectionOrderEdit; QLineEdit *inspectionBarcodeEdit; QLineEdit *inspectionTrayEdit; QLineEdit *inspectionSlotEdit; QComboBox *inspectionModeCombo; QComboBox *inspectionSideCombo; QComboBox *inspectionResultCombo; QTableWidget *inspectionTable; QLabel *inspectionMessageLabel; QLineEdit *statisticsOrderEdit; QLabel *planValueLabel; QLabel *completedValueLabel; QLabel *pendingValueLabel; QLabel *okValueLabel; QLabel *ngValueLabel; QLabel *rateValueLabel; QLabel *inspectionCountValueLabel; QLabel *statisticsMessageLabel; QTableWidget *sideStatisticsTable; QLineEdit *traceBarcodeEdit; QLabel *traceInfoLabel; QLabel *traceMessageLabel; QTableWidget *traceInspectionTable; QTableWidget *traceProcessTable; QTableWidget *traceHistoryTable; }; #endif // QUALITYPAGE_H