WaferProgramPage.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #ifndef WAFER_PROGRAM_PAGE_H
  2. #define WAFER_PROGRAM_PAGE_H
  3. #include "Src/Sql/SqlOperation.h"
  4. #include <QWidget>
  5. #include <QFileDialog>
  6. #include <QTextStream>
  7. #include <QHeaderView>
  8. #include <QTableWidget>
  9. #include <QPushButton>
  10. #include <QVBoxLayout>
  11. #include <QHBoxLayout>
  12. #include <QSqlQuery>
  13. #include <QJsonDocument>
  14. #include <QJsonObject>
  15. #include <QMessageBox>
  16. #include <unordered_map>
  17. #include <QtWidgets/qcombobox.h>
  18. class WaferProgramPage : public QWidget {
  19. Q_OBJECT
  20. public:
  21. explicit WaferProgramPage(QWidget* parent = nullptr);
  22. static QWidget* CreateWaferProgramPage();
  23. QComboBox* createDieMatrixIdComboBox(int defaultId, int row);
  24. private slots:
  25. void addRow();
  26. void deleteRow();
  27. void updateData();
  28. void onCellChanged(int row, int column);
  29. private:
  30. // 初始化合并后的数据(多表)
  31. void initMergedData();
  32. private:
  33. QTableWidget* mergedTable;
  34. CONFIG_BASE_STRUCT controlConfig;
  35. CProduct* m_pCProduct = nullptr;//CManageDB::GetInstance()->GetCProduct();
  36. std::vector<PROGRAM_WAFER_MATRIX_STRUCT> m_VecWaferMatrix;
  37. std::vector<PROGRAM_DIE_MATRIX_STRUCT> m_VecDieMatrixt;
  38. static std::unordered_map<int, bool> idIsUsedMap;
  39. bool m_isInitializing = false;
  40. };
  41. #endif // WAFER_PROGRAM_PAGE_H