12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #ifndef WAFER_PROGRAM_PAGE_H
- #define WAFER_PROGRAM_PAGE_H
- #include "Src/Sql/SqlOperation.h"
- #include <QWidget>
- #include <QFileDialog>
- #include <QTextStream>
- #include <QHeaderView>
- #include <QTableWidget>
- #include <QPushButton>
- #include <QVBoxLayout>
- #include <QHBoxLayout>
- #include <QSqlQuery>
- #include <QJsonDocument>
- #include <QJsonObject>
- #include <QMessageBox>
- #include <unordered_map>
- #include <QtWidgets/qcombobox.h>
- class WaferProgramPage : public QWidget {
- Q_OBJECT
- public:
- explicit WaferProgramPage(QWidget* parent = nullptr);
- static QWidget* CreateWaferProgramPage();
- QComboBox* createDieMatrixIdComboBox(int defaultId, int row);
- private slots:
- void addRow();
- void deleteRow();
- void updateData();
- void onCellChanged(int row, int column);
- private:
- // 初始化合并后的数据(多表)
- void initMergedData();
- private:
- QTableWidget* mergedTable;
- CONFIG_BASE_STRUCT controlConfig;
- CProduct* m_pCProduct = nullptr;//CManageDB::GetInstance()->GetCProduct();
- std::vector<PROGRAM_WAFER_MATRIX_STRUCT> m_VecWaferMatrix;
- std::vector<PROGRAM_DIE_MATRIX_STRUCT> m_VecDieMatrixt;
- static std::unordered_map<int, bool> idIsUsedMap;
- bool m_isInitializing = false;
- };
- #endif // WAFER_PROGRAM_PAGE_H
|