diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 5bd9a15..ec5df1e 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -22,6 +22,7 @@ basecommonapi.cpp \ biz_device_manage_serve.cpp \ check_data_manage_serve.cpp \ + checkdevice.cpp \ create_tasks_serve.cpp \ my_tasks_serve.cpp \ technique_file_serve.cpp \ @@ -62,6 +63,7 @@ basecommonapi.h \ biz_device_manage_serve.h \ check_data_manage_serve.h \ + checkdevice.h \ create_tasks_serve.h \ my_tasks_serve.h \ technique_file_serve.h \ @@ -98,6 +100,7 @@ FORMS += \ beexamined_deviceitem.ui \ + checkdevice.ui \ checkmethodmanage.ui \ checkwindow.ui \ create_task.ui \ diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 5bd9a15..ec5df1e 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -22,6 +22,7 @@ basecommonapi.cpp \ biz_device_manage_serve.cpp \ check_data_manage_serve.cpp \ + checkdevice.cpp \ create_tasks_serve.cpp \ my_tasks_serve.cpp \ technique_file_serve.cpp \ @@ -62,6 +63,7 @@ basecommonapi.h \ biz_device_manage_serve.h \ check_data_manage_serve.h \ + checkdevice.h \ create_tasks_serve.h \ my_tasks_serve.h \ technique_file_serve.h \ @@ -98,6 +100,7 @@ FORMS += \ beexamined_deviceitem.ui \ + checkdevice.ui \ checkmethodmanage.ui \ checkwindow.ui \ create_task.ui \ diff --git a/softwareDirectory/AutoVerScheme/checkdevice.cpp b/softwareDirectory/AutoVerScheme/checkdevice.cpp new file mode 100644 index 0000000..a5dcc78 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/checkdevice.cpp @@ -0,0 +1,43 @@ +#include "checkdevice.h" +#include "ui_checkdevice.h" +#include "biz_device_manage_serve.h" +#include + +CheckDevice::CheckDevice(QWidget *parent) : + QWidget(parent), + ui(new Ui::CheckDevice) +{ + ui->setupUi(this); + ui->tableWidget_3->setColumnWidth(0, 80); + for(int i=1;i<4;i++) + ui->tableWidget_3->horizontalHeader()->setSectionResizeMode(i,QHeaderView::Stretch); + ui->tableWidget_4->setColumnWidth(0, 80); + for(int i=1;i<5;i++) + ui->tableWidget_4->horizontalHeader()->setSectionResizeMode(i,QHeaderView::Stretch); + getStandardDevice(); +} + +CheckDevice::~CheckDevice() +{ + delete ui; +} + +void CheckDevice::getStandardDevice() +{ + BizDeviceManage dbManager; + // 调用数据库管理器的函数获取数据 + int rowCount=0; + int row=0; + QList data = dbManager.getBizDeviceManage(); + for (const BizDevice& bizDevice : data) { + rowCount = ui->tableWidget_4->rowCount(); + ui->tableWidget_4->insertRow(rowCount); + QCheckBox *checkBox = new QCheckBox; + ui->tableWidget_4->setCellWidget(row, 0, checkBox); + ui->tableWidget_4->setItem(row, 1, new QTableWidgetItem(bizDevice.equipment_name)); + ui->tableWidget_4->setItem(row, 2, new QTableWidgetItem(bizDevice.model)); + ui->tableWidget_4->setItem(row, 3, new QTableWidgetItem(bizDevice.manufacture_no)); + ui->tableWidget_4->setItem(row, 4, new QTableWidgetItem(bizDevice.manufacturer)); + row++; + } +} diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 5bd9a15..ec5df1e 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -22,6 +22,7 @@ basecommonapi.cpp \ biz_device_manage_serve.cpp \ check_data_manage_serve.cpp \ + checkdevice.cpp \ create_tasks_serve.cpp \ my_tasks_serve.cpp \ technique_file_serve.cpp \ @@ -62,6 +63,7 @@ basecommonapi.h \ biz_device_manage_serve.h \ check_data_manage_serve.h \ + checkdevice.h \ create_tasks_serve.h \ my_tasks_serve.h \ technique_file_serve.h \ @@ -98,6 +100,7 @@ FORMS += \ beexamined_deviceitem.ui \ + checkdevice.ui \ checkmethodmanage.ui \ checkwindow.ui \ create_task.ui \ diff --git a/softwareDirectory/AutoVerScheme/checkdevice.cpp b/softwareDirectory/AutoVerScheme/checkdevice.cpp new file mode 100644 index 0000000..a5dcc78 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/checkdevice.cpp @@ -0,0 +1,43 @@ +#include "checkdevice.h" +#include "ui_checkdevice.h" +#include "biz_device_manage_serve.h" +#include + +CheckDevice::CheckDevice(QWidget *parent) : + QWidget(parent), + ui(new Ui::CheckDevice) +{ + ui->setupUi(this); + ui->tableWidget_3->setColumnWidth(0, 80); + for(int i=1;i<4;i++) + ui->tableWidget_3->horizontalHeader()->setSectionResizeMode(i,QHeaderView::Stretch); + ui->tableWidget_4->setColumnWidth(0, 80); + for(int i=1;i<5;i++) + ui->tableWidget_4->horizontalHeader()->setSectionResizeMode(i,QHeaderView::Stretch); + getStandardDevice(); +} + +CheckDevice::~CheckDevice() +{ + delete ui; +} + +void CheckDevice::getStandardDevice() +{ + BizDeviceManage dbManager; + // 调用数据库管理器的函数获取数据 + int rowCount=0; + int row=0; + QList data = dbManager.getBizDeviceManage(); + for (const BizDevice& bizDevice : data) { + rowCount = ui->tableWidget_4->rowCount(); + ui->tableWidget_4->insertRow(rowCount); + QCheckBox *checkBox = new QCheckBox; + ui->tableWidget_4->setCellWidget(row, 0, checkBox); + ui->tableWidget_4->setItem(row, 1, new QTableWidgetItem(bizDevice.equipment_name)); + ui->tableWidget_4->setItem(row, 2, new QTableWidgetItem(bizDevice.model)); + ui->tableWidget_4->setItem(row, 3, new QTableWidgetItem(bizDevice.manufacture_no)); + ui->tableWidget_4->setItem(row, 4, new QTableWidgetItem(bizDevice.manufacturer)); + row++; + } +} diff --git a/softwareDirectory/AutoVerScheme/checkdevice.h b/softwareDirectory/AutoVerScheme/checkdevice.h new file mode 100644 index 0000000..fc42d90 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/checkdevice.h @@ -0,0 +1,25 @@ +#ifndef CHECKDEVICE_H +#define CHECKDEVICE_H + +#include + +namespace Ui { +class CheckDevice; +} + +class CheckDevice : public QWidget +{ + Q_OBJECT + +public: + explicit CheckDevice(QWidget *parent = nullptr); + ~CheckDevice(); + +private: + void getStandardDevice(); + +private: + Ui::CheckDevice *ui; +}; + +#endif // CHECKDEVICE_H diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 5bd9a15..ec5df1e 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -22,6 +22,7 @@ basecommonapi.cpp \ biz_device_manage_serve.cpp \ check_data_manage_serve.cpp \ + checkdevice.cpp \ create_tasks_serve.cpp \ my_tasks_serve.cpp \ technique_file_serve.cpp \ @@ -62,6 +63,7 @@ basecommonapi.h \ biz_device_manage_serve.h \ check_data_manage_serve.h \ + checkdevice.h \ create_tasks_serve.h \ my_tasks_serve.h \ technique_file_serve.h \ @@ -98,6 +100,7 @@ FORMS += \ beexamined_deviceitem.ui \ + checkdevice.ui \ checkmethodmanage.ui \ checkwindow.ui \ create_task.ui \ diff --git a/softwareDirectory/AutoVerScheme/checkdevice.cpp b/softwareDirectory/AutoVerScheme/checkdevice.cpp new file mode 100644 index 0000000..a5dcc78 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/checkdevice.cpp @@ -0,0 +1,43 @@ +#include "checkdevice.h" +#include "ui_checkdevice.h" +#include "biz_device_manage_serve.h" +#include + +CheckDevice::CheckDevice(QWidget *parent) : + QWidget(parent), + ui(new Ui::CheckDevice) +{ + ui->setupUi(this); + ui->tableWidget_3->setColumnWidth(0, 80); + for(int i=1;i<4;i++) + ui->tableWidget_3->horizontalHeader()->setSectionResizeMode(i,QHeaderView::Stretch); + ui->tableWidget_4->setColumnWidth(0, 80); + for(int i=1;i<5;i++) + ui->tableWidget_4->horizontalHeader()->setSectionResizeMode(i,QHeaderView::Stretch); + getStandardDevice(); +} + +CheckDevice::~CheckDevice() +{ + delete ui; +} + +void CheckDevice::getStandardDevice() +{ + BizDeviceManage dbManager; + // 调用数据库管理器的函数获取数据 + int rowCount=0; + int row=0; + QList data = dbManager.getBizDeviceManage(); + for (const BizDevice& bizDevice : data) { + rowCount = ui->tableWidget_4->rowCount(); + ui->tableWidget_4->insertRow(rowCount); + QCheckBox *checkBox = new QCheckBox; + ui->tableWidget_4->setCellWidget(row, 0, checkBox); + ui->tableWidget_4->setItem(row, 1, new QTableWidgetItem(bizDevice.equipment_name)); + ui->tableWidget_4->setItem(row, 2, new QTableWidgetItem(bizDevice.model)); + ui->tableWidget_4->setItem(row, 3, new QTableWidgetItem(bizDevice.manufacture_no)); + ui->tableWidget_4->setItem(row, 4, new QTableWidgetItem(bizDevice.manufacturer)); + row++; + } +} diff --git a/softwareDirectory/AutoVerScheme/checkdevice.h b/softwareDirectory/AutoVerScheme/checkdevice.h new file mode 100644 index 0000000..fc42d90 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/checkdevice.h @@ -0,0 +1,25 @@ +#ifndef CHECKDEVICE_H +#define CHECKDEVICE_H + +#include + +namespace Ui { +class CheckDevice; +} + +class CheckDevice : public QWidget +{ + Q_OBJECT + +public: + explicit CheckDevice(QWidget *parent = nullptr); + ~CheckDevice(); + +private: + void getStandardDevice(); + +private: + Ui::CheckDevice *ui; +}; + +#endif // CHECKDEVICE_H diff --git a/softwareDirectory/AutoVerScheme/checkdevice.ui b/softwareDirectory/AutoVerScheme/checkdevice.ui new file mode 100644 index 0000000..b996323 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/checkdevice.ui @@ -0,0 +1,488 @@ + + + CheckDevice + + + + 0 + 0 + 949 + 593 + + + + 选择设备 + + + background-color: rgb(255, 255, 255); + + + + + + background-color: rgb(51, 69, 130); + + + + 10 + + + + + + 0 + 0 + + + + + 48 + 48 + + + + image: url(:/image/Index/u7538.svg); + + + + + + + + + + + 1 + 0 + + + + + 18 + 75 + true + + + + color: rgb(255, 255, 255); + + + 选择设备 + + + + + + + + + + + + + + + + + 12 + + + + 选择被检设备: + + + + + + + + 1 + 0 + + + + + 72 + 26 + + + + + 12 + 75 + true + + + + color: rgb(255, 255, 255); +background-color: rgb(74, 102, 186); +border-radius:5px; + + + 查询 + + + + + + + + 0 + 0 + + + + + 72 + 26 + + + + + 12 + 75 + true + + + + color: rgb(255, 255, 255); +background-color: rgb(207, 132, 33); +border-radius:5px; + + + 重置 + + + + + + + + + + + + 12 + + + + 设备名称 + + + + + + + + 12 + + + + 型号规格 + + + + + + + + 12 + + + + 出厂编号 + + + + + + + + + + 选择 + + + + 12 + + + + + + 设备名称 + + + + 12 + + + + + + 型号规格 + + + + 12 + + + + + + 辅助字段 + + + + 12 + + + + + + + + + + + + + + + + 12 + + + + 选择标准设备: + + + + + + + + 1 + 0 + + + + + 72 + 26 + + + + + 12 + 75 + true + + + + color: rgb(255, 255, 255); +background-color: rgb(74, 102, 186); +border-radius:5px; + + + 查询 + + + + + + + + 0 + 0 + + + + + 72 + 26 + + + + + 12 + 75 + true + + + + color: rgb(255, 255, 255); +background-color: rgb(207, 132, 33); +border-radius:5px; + + + 重置 + + + + + + + + + + + + 12 + + + + 设备名称 + + + + + + + + 12 + + + + 型号规格 + + + + + + + + 12 + + + + 出厂编号 + + + + + + + + + + 选择 + + + + 12 + + + + + + 设备名称 + + + + 12 + + + + + + 型号规格 + + + + 12 + + + + + + 出厂编号 + + + + 12 + + + + + + 生产厂家 + + + + 12 + + + + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 1 + 0 + + + + + 72 + 26 + + + + + 12 + 75 + true + + + + color: rgb(255, 255, 255); +background-color: rgb(74, 102, 186); +border-radius:5px; + + + 保存 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 5bd9a15..ec5df1e 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -22,6 +22,7 @@ basecommonapi.cpp \ biz_device_manage_serve.cpp \ check_data_manage_serve.cpp \ + checkdevice.cpp \ create_tasks_serve.cpp \ my_tasks_serve.cpp \ technique_file_serve.cpp \ @@ -62,6 +63,7 @@ basecommonapi.h \ biz_device_manage_serve.h \ check_data_manage_serve.h \ + checkdevice.h \ create_tasks_serve.h \ my_tasks_serve.h \ technique_file_serve.h \ @@ -98,6 +100,7 @@ FORMS += \ beexamined_deviceitem.ui \ + checkdevice.ui \ checkmethodmanage.ui \ checkwindow.ui \ create_task.ui \ diff --git a/softwareDirectory/AutoVerScheme/checkdevice.cpp b/softwareDirectory/AutoVerScheme/checkdevice.cpp new file mode 100644 index 0000000..a5dcc78 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/checkdevice.cpp @@ -0,0 +1,43 @@ +#include "checkdevice.h" +#include "ui_checkdevice.h" +#include "biz_device_manage_serve.h" +#include + +CheckDevice::CheckDevice(QWidget *parent) : + QWidget(parent), + ui(new Ui::CheckDevice) +{ + ui->setupUi(this); + ui->tableWidget_3->setColumnWidth(0, 80); + for(int i=1;i<4;i++) + ui->tableWidget_3->horizontalHeader()->setSectionResizeMode(i,QHeaderView::Stretch); + ui->tableWidget_4->setColumnWidth(0, 80); + for(int i=1;i<5;i++) + ui->tableWidget_4->horizontalHeader()->setSectionResizeMode(i,QHeaderView::Stretch); + getStandardDevice(); +} + +CheckDevice::~CheckDevice() +{ + delete ui; +} + +void CheckDevice::getStandardDevice() +{ + BizDeviceManage dbManager; + // 调用数据库管理器的函数获取数据 + int rowCount=0; + int row=0; + QList data = dbManager.getBizDeviceManage(); + for (const BizDevice& bizDevice : data) { + rowCount = ui->tableWidget_4->rowCount(); + ui->tableWidget_4->insertRow(rowCount); + QCheckBox *checkBox = new QCheckBox; + ui->tableWidget_4->setCellWidget(row, 0, checkBox); + ui->tableWidget_4->setItem(row, 1, new QTableWidgetItem(bizDevice.equipment_name)); + ui->tableWidget_4->setItem(row, 2, new QTableWidgetItem(bizDevice.model)); + ui->tableWidget_4->setItem(row, 3, new QTableWidgetItem(bizDevice.manufacture_no)); + ui->tableWidget_4->setItem(row, 4, new QTableWidgetItem(bizDevice.manufacturer)); + row++; + } +} diff --git a/softwareDirectory/AutoVerScheme/checkdevice.h b/softwareDirectory/AutoVerScheme/checkdevice.h new file mode 100644 index 0000000..fc42d90 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/checkdevice.h @@ -0,0 +1,25 @@ +#ifndef CHECKDEVICE_H +#define CHECKDEVICE_H + +#include + +namespace Ui { +class CheckDevice; +} + +class CheckDevice : public QWidget +{ + Q_OBJECT + +public: + explicit CheckDevice(QWidget *parent = nullptr); + ~CheckDevice(); + +private: + void getStandardDevice(); + +private: + Ui::CheckDevice *ui; +}; + +#endif // CHECKDEVICE_H diff --git a/softwareDirectory/AutoVerScheme/checkdevice.ui b/softwareDirectory/AutoVerScheme/checkdevice.ui new file mode 100644 index 0000000..b996323 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/checkdevice.ui @@ -0,0 +1,488 @@ + + + CheckDevice + + + + 0 + 0 + 949 + 593 + + + + 选择设备 + + + background-color: rgb(255, 255, 255); + + + + + + background-color: rgb(51, 69, 130); + + + + 10 + + + + + + 0 + 0 + + + + + 48 + 48 + + + + image: url(:/image/Index/u7538.svg); + + + + + + + + + + + 1 + 0 + + + + + 18 + 75 + true + + + + color: rgb(255, 255, 255); + + + 选择设备 + + + + + + + + + + + + + + + + + 12 + + + + 选择被检设备: + + + + + + + + 1 + 0 + + + + + 72 + 26 + + + + + 12 + 75 + true + + + + color: rgb(255, 255, 255); +background-color: rgb(74, 102, 186); +border-radius:5px; + + + 查询 + + + + + + + + 0 + 0 + + + + + 72 + 26 + + + + + 12 + 75 + true + + + + color: rgb(255, 255, 255); +background-color: rgb(207, 132, 33); +border-radius:5px; + + + 重置 + + + + + + + + + + + + 12 + + + + 设备名称 + + + + + + + + 12 + + + + 型号规格 + + + + + + + + 12 + + + + 出厂编号 + + + + + + + + + + 选择 + + + + 12 + + + + + + 设备名称 + + + + 12 + + + + + + 型号规格 + + + + 12 + + + + + + 辅助字段 + + + + 12 + + + + + + + + + + + + + + + + 12 + + + + 选择标准设备: + + + + + + + + 1 + 0 + + + + + 72 + 26 + + + + + 12 + 75 + true + + + + color: rgb(255, 255, 255); +background-color: rgb(74, 102, 186); +border-radius:5px; + + + 查询 + + + + + + + + 0 + 0 + + + + + 72 + 26 + + + + + 12 + 75 + true + + + + color: rgb(255, 255, 255); +background-color: rgb(207, 132, 33); +border-radius:5px; + + + 重置 + + + + + + + + + + + + 12 + + + + 设备名称 + + + + + + + + 12 + + + + 型号规格 + + + + + + + + 12 + + + + 出厂编号 + + + + + + + + + + 选择 + + + + 12 + + + + + + 设备名称 + + + + 12 + + + + + + 型号规格 + + + + 12 + + + + + + 出厂编号 + + + + 12 + + + + + + 生产厂家 + + + + 12 + + + + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 1 + 0 + + + + + 72 + 26 + + + + + 12 + 75 + true + + + + color: rgb(255, 255, 255); +background-color: rgb(74, 102, 186); +border-radius:5px; + + + 保存 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + diff --git a/softwareDirectory/AutoVerScheme/checkmethodmanage.cpp b/softwareDirectory/AutoVerScheme/checkmethodmanage.cpp index 298d310..5b7a728 100644 --- a/softwareDirectory/AutoVerScheme/checkmethodmanage.cpp +++ b/softwareDirectory/AutoVerScheme/checkmethodmanage.cpp @@ -23,3 +23,4 @@ checkWindow->setWindowModality(Qt::ApplicationModal); checkWindow->show(); } + diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 5bd9a15..ec5df1e 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -22,6 +22,7 @@ basecommonapi.cpp \ biz_device_manage_serve.cpp \ check_data_manage_serve.cpp \ + checkdevice.cpp \ create_tasks_serve.cpp \ my_tasks_serve.cpp \ technique_file_serve.cpp \ @@ -62,6 +63,7 @@ basecommonapi.h \ biz_device_manage_serve.h \ check_data_manage_serve.h \ + checkdevice.h \ create_tasks_serve.h \ my_tasks_serve.h \ technique_file_serve.h \ @@ -98,6 +100,7 @@ FORMS += \ beexamined_deviceitem.ui \ + checkdevice.ui \ checkmethodmanage.ui \ checkwindow.ui \ create_task.ui \ diff --git a/softwareDirectory/AutoVerScheme/checkdevice.cpp b/softwareDirectory/AutoVerScheme/checkdevice.cpp new file mode 100644 index 0000000..a5dcc78 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/checkdevice.cpp @@ -0,0 +1,43 @@ +#include "checkdevice.h" +#include "ui_checkdevice.h" +#include "biz_device_manage_serve.h" +#include + +CheckDevice::CheckDevice(QWidget *parent) : + QWidget(parent), + ui(new Ui::CheckDevice) +{ + ui->setupUi(this); + ui->tableWidget_3->setColumnWidth(0, 80); + for(int i=1;i<4;i++) + ui->tableWidget_3->horizontalHeader()->setSectionResizeMode(i,QHeaderView::Stretch); + ui->tableWidget_4->setColumnWidth(0, 80); + for(int i=1;i<5;i++) + ui->tableWidget_4->horizontalHeader()->setSectionResizeMode(i,QHeaderView::Stretch); + getStandardDevice(); +} + +CheckDevice::~CheckDevice() +{ + delete ui; +} + +void CheckDevice::getStandardDevice() +{ + BizDeviceManage dbManager; + // 调用数据库管理器的函数获取数据 + int rowCount=0; + int row=0; + QList data = dbManager.getBizDeviceManage(); + for (const BizDevice& bizDevice : data) { + rowCount = ui->tableWidget_4->rowCount(); + ui->tableWidget_4->insertRow(rowCount); + QCheckBox *checkBox = new QCheckBox; + ui->tableWidget_4->setCellWidget(row, 0, checkBox); + ui->tableWidget_4->setItem(row, 1, new QTableWidgetItem(bizDevice.equipment_name)); + ui->tableWidget_4->setItem(row, 2, new QTableWidgetItem(bizDevice.model)); + ui->tableWidget_4->setItem(row, 3, new QTableWidgetItem(bizDevice.manufacture_no)); + ui->tableWidget_4->setItem(row, 4, new QTableWidgetItem(bizDevice.manufacturer)); + row++; + } +} diff --git a/softwareDirectory/AutoVerScheme/checkdevice.h b/softwareDirectory/AutoVerScheme/checkdevice.h new file mode 100644 index 0000000..fc42d90 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/checkdevice.h @@ -0,0 +1,25 @@ +#ifndef CHECKDEVICE_H +#define CHECKDEVICE_H + +#include + +namespace Ui { +class CheckDevice; +} + +class CheckDevice : public QWidget +{ + Q_OBJECT + +public: + explicit CheckDevice(QWidget *parent = nullptr); + ~CheckDevice(); + +private: + void getStandardDevice(); + +private: + Ui::CheckDevice *ui; +}; + +#endif // CHECKDEVICE_H diff --git a/softwareDirectory/AutoVerScheme/checkdevice.ui b/softwareDirectory/AutoVerScheme/checkdevice.ui new file mode 100644 index 0000000..b996323 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/checkdevice.ui @@ -0,0 +1,488 @@ + + + CheckDevice + + + + 0 + 0 + 949 + 593 + + + + 选择设备 + + + background-color: rgb(255, 255, 255); + + + + + + background-color: rgb(51, 69, 130); + + + + 10 + + + + + + 0 + 0 + + + + + 48 + 48 + + + + image: url(:/image/Index/u7538.svg); + + + + + + + + + + + 1 + 0 + + + + + 18 + 75 + true + + + + color: rgb(255, 255, 255); + + + 选择设备 + + + + + + + + + + + + + + + + + 12 + + + + 选择被检设备: + + + + + + + + 1 + 0 + + + + + 72 + 26 + + + + + 12 + 75 + true + + + + color: rgb(255, 255, 255); +background-color: rgb(74, 102, 186); +border-radius:5px; + + + 查询 + + + + + + + + 0 + 0 + + + + + 72 + 26 + + + + + 12 + 75 + true + + + + color: rgb(255, 255, 255); +background-color: rgb(207, 132, 33); +border-radius:5px; + + + 重置 + + + + + + + + + + + + 12 + + + + 设备名称 + + + + + + + + 12 + + + + 型号规格 + + + + + + + + 12 + + + + 出厂编号 + + + + + + + + + + 选择 + + + + 12 + + + + + + 设备名称 + + + + 12 + + + + + + 型号规格 + + + + 12 + + + + + + 辅助字段 + + + + 12 + + + + + + + + + + + + + + + + 12 + + + + 选择标准设备: + + + + + + + + 1 + 0 + + + + + 72 + 26 + + + + + 12 + 75 + true + + + + color: rgb(255, 255, 255); +background-color: rgb(74, 102, 186); +border-radius:5px; + + + 查询 + + + + + + + + 0 + 0 + + + + + 72 + 26 + + + + + 12 + 75 + true + + + + color: rgb(255, 255, 255); +background-color: rgb(207, 132, 33); +border-radius:5px; + + + 重置 + + + + + + + + + + + + 12 + + + + 设备名称 + + + + + + + + 12 + + + + 型号规格 + + + + + + + + 12 + + + + 出厂编号 + + + + + + + + + + 选择 + + + + 12 + + + + + + 设备名称 + + + + 12 + + + + + + 型号规格 + + + + 12 + + + + + + 出厂编号 + + + + 12 + + + + + + 生产厂家 + + + + 12 + + + + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 1 + 0 + + + + + 72 + 26 + + + + + 12 + 75 + true + + + + color: rgb(255, 255, 255); +background-color: rgb(74, 102, 186); +border-radius:5px; + + + 保存 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + diff --git a/softwareDirectory/AutoVerScheme/checkmethodmanage.cpp b/softwareDirectory/AutoVerScheme/checkmethodmanage.cpp index 298d310..5b7a728 100644 --- a/softwareDirectory/AutoVerScheme/checkmethodmanage.cpp +++ b/softwareDirectory/AutoVerScheme/checkmethodmanage.cpp @@ -23,3 +23,4 @@ checkWindow->setWindowModality(Qt::ApplicationModal); checkWindow->show(); } + diff --git a/softwareDirectory/AutoVerScheme/newcheckmethod.cpp b/softwareDirectory/AutoVerScheme/newcheckmethod.cpp index 3a96129..9f0160a 100644 --- a/softwareDirectory/AutoVerScheme/newcheckmethod.cpp +++ b/softwareDirectory/AutoVerScheme/newcheckmethod.cpp @@ -1,5 +1,7 @@ #include "newcheckmethod.h" #include "ui_newcheckmethod.h" +#include "checkdevice.h" +#include "qfiledialog.h" NewCheckMethod::NewCheckMethod(QWidget *parent) : QWidget(parent), @@ -12,3 +14,29 @@ { delete ui; } + +void NewCheckMethod::showCheckDevice() +{ + CheckDevice *checkWindow = new CheckDevice; + checkWindow->setWindowState(Qt::WindowMaximized); + checkWindow->setWindowModality(Qt::ApplicationModal); + checkWindow->show(); +} + +void NewCheckMethod::choosePicture() +{ + QString sName = QFileDialog::getOpenFileName(this,"选择图片","","Image File(*.bmp *.jpg *.jpeg *.png)"); + //第一个参数:标准文件对话框的父窗口;第二个参数:标准文件对话框的标题;第三个参数:指定默认的目录;第四个参数:文件过滤器 + QImage img(sName); + //int WindowW = this->width(); + //int WindowH = this->height(); + //ui->label->setGeometry(0, 0, WindowW, WindowH); + QImage scalimg = img.scaled(ui->label_11->size(), Qt::KeepAspectRatio, Qt::SmoothTransformation); + ui->label_11->setPixmap(QPixmap::fromImage(scalimg)); + //ui->label_11->setPixmap(QPixmap(sName)); +} + +void NewCheckMethod::deletePicture() +{ + ui->label_11->clear(); +} diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 5bd9a15..ec5df1e 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -22,6 +22,7 @@ basecommonapi.cpp \ biz_device_manage_serve.cpp \ check_data_manage_serve.cpp \ + checkdevice.cpp \ create_tasks_serve.cpp \ my_tasks_serve.cpp \ technique_file_serve.cpp \ @@ -62,6 +63,7 @@ basecommonapi.h \ biz_device_manage_serve.h \ check_data_manage_serve.h \ + checkdevice.h \ create_tasks_serve.h \ my_tasks_serve.h \ technique_file_serve.h \ @@ -98,6 +100,7 @@ FORMS += \ beexamined_deviceitem.ui \ + checkdevice.ui \ checkmethodmanage.ui \ checkwindow.ui \ create_task.ui \ diff --git a/softwareDirectory/AutoVerScheme/checkdevice.cpp b/softwareDirectory/AutoVerScheme/checkdevice.cpp new file mode 100644 index 0000000..a5dcc78 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/checkdevice.cpp @@ -0,0 +1,43 @@ +#include "checkdevice.h" +#include "ui_checkdevice.h" +#include "biz_device_manage_serve.h" +#include + +CheckDevice::CheckDevice(QWidget *parent) : + QWidget(parent), + ui(new Ui::CheckDevice) +{ + ui->setupUi(this); + ui->tableWidget_3->setColumnWidth(0, 80); + for(int i=1;i<4;i++) + ui->tableWidget_3->horizontalHeader()->setSectionResizeMode(i,QHeaderView::Stretch); + ui->tableWidget_4->setColumnWidth(0, 80); + for(int i=1;i<5;i++) + ui->tableWidget_4->horizontalHeader()->setSectionResizeMode(i,QHeaderView::Stretch); + getStandardDevice(); +} + +CheckDevice::~CheckDevice() +{ + delete ui; +} + +void CheckDevice::getStandardDevice() +{ + BizDeviceManage dbManager; + // 调用数据库管理器的函数获取数据 + int rowCount=0; + int row=0; + QList data = dbManager.getBizDeviceManage(); + for (const BizDevice& bizDevice : data) { + rowCount = ui->tableWidget_4->rowCount(); + ui->tableWidget_4->insertRow(rowCount); + QCheckBox *checkBox = new QCheckBox; + ui->tableWidget_4->setCellWidget(row, 0, checkBox); + ui->tableWidget_4->setItem(row, 1, new QTableWidgetItem(bizDevice.equipment_name)); + ui->tableWidget_4->setItem(row, 2, new QTableWidgetItem(bizDevice.model)); + ui->tableWidget_4->setItem(row, 3, new QTableWidgetItem(bizDevice.manufacture_no)); + ui->tableWidget_4->setItem(row, 4, new QTableWidgetItem(bizDevice.manufacturer)); + row++; + } +} diff --git a/softwareDirectory/AutoVerScheme/checkdevice.h b/softwareDirectory/AutoVerScheme/checkdevice.h new file mode 100644 index 0000000..fc42d90 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/checkdevice.h @@ -0,0 +1,25 @@ +#ifndef CHECKDEVICE_H +#define CHECKDEVICE_H + +#include + +namespace Ui { +class CheckDevice; +} + +class CheckDevice : public QWidget +{ + Q_OBJECT + +public: + explicit CheckDevice(QWidget *parent = nullptr); + ~CheckDevice(); + +private: + void getStandardDevice(); + +private: + Ui::CheckDevice *ui; +}; + +#endif // CHECKDEVICE_H diff --git a/softwareDirectory/AutoVerScheme/checkdevice.ui b/softwareDirectory/AutoVerScheme/checkdevice.ui new file mode 100644 index 0000000..b996323 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/checkdevice.ui @@ -0,0 +1,488 @@ + + + CheckDevice + + + + 0 + 0 + 949 + 593 + + + + 选择设备 + + + background-color: rgb(255, 255, 255); + + + + + + background-color: rgb(51, 69, 130); + + + + 10 + + + + + + 0 + 0 + + + + + 48 + 48 + + + + image: url(:/image/Index/u7538.svg); + + + + + + + + + + + 1 + 0 + + + + + 18 + 75 + true + + + + color: rgb(255, 255, 255); + + + 选择设备 + + + + + + + + + + + + + + + + + 12 + + + + 选择被检设备: + + + + + + + + 1 + 0 + + + + + 72 + 26 + + + + + 12 + 75 + true + + + + color: rgb(255, 255, 255); +background-color: rgb(74, 102, 186); +border-radius:5px; + + + 查询 + + + + + + + + 0 + 0 + + + + + 72 + 26 + + + + + 12 + 75 + true + + + + color: rgb(255, 255, 255); +background-color: rgb(207, 132, 33); +border-radius:5px; + + + 重置 + + + + + + + + + + + + 12 + + + + 设备名称 + + + + + + + + 12 + + + + 型号规格 + + + + + + + + 12 + + + + 出厂编号 + + + + + + + + + + 选择 + + + + 12 + + + + + + 设备名称 + + + + 12 + + + + + + 型号规格 + + + + 12 + + + + + + 辅助字段 + + + + 12 + + + + + + + + + + + + + + + + 12 + + + + 选择标准设备: + + + + + + + + 1 + 0 + + + + + 72 + 26 + + + + + 12 + 75 + true + + + + color: rgb(255, 255, 255); +background-color: rgb(74, 102, 186); +border-radius:5px; + + + 查询 + + + + + + + + 0 + 0 + + + + + 72 + 26 + + + + + 12 + 75 + true + + + + color: rgb(255, 255, 255); +background-color: rgb(207, 132, 33); +border-radius:5px; + + + 重置 + + + + + + + + + + + + 12 + + + + 设备名称 + + + + + + + + 12 + + + + 型号规格 + + + + + + + + 12 + + + + 出厂编号 + + + + + + + + + + 选择 + + + + 12 + + + + + + 设备名称 + + + + 12 + + + + + + 型号规格 + + + + 12 + + + + + + 出厂编号 + + + + 12 + + + + + + 生产厂家 + + + + 12 + + + + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 1 + 0 + + + + + 72 + 26 + + + + + 12 + 75 + true + + + + color: rgb(255, 255, 255); +background-color: rgb(74, 102, 186); +border-radius:5px; + + + 保存 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + diff --git a/softwareDirectory/AutoVerScheme/checkmethodmanage.cpp b/softwareDirectory/AutoVerScheme/checkmethodmanage.cpp index 298d310..5b7a728 100644 --- a/softwareDirectory/AutoVerScheme/checkmethodmanage.cpp +++ b/softwareDirectory/AutoVerScheme/checkmethodmanage.cpp @@ -23,3 +23,4 @@ checkWindow->setWindowModality(Qt::ApplicationModal); checkWindow->show(); } + diff --git a/softwareDirectory/AutoVerScheme/newcheckmethod.cpp b/softwareDirectory/AutoVerScheme/newcheckmethod.cpp index 3a96129..9f0160a 100644 --- a/softwareDirectory/AutoVerScheme/newcheckmethod.cpp +++ b/softwareDirectory/AutoVerScheme/newcheckmethod.cpp @@ -1,5 +1,7 @@ #include "newcheckmethod.h" #include "ui_newcheckmethod.h" +#include "checkdevice.h" +#include "qfiledialog.h" NewCheckMethod::NewCheckMethod(QWidget *parent) : QWidget(parent), @@ -12,3 +14,29 @@ { delete ui; } + +void NewCheckMethod::showCheckDevice() +{ + CheckDevice *checkWindow = new CheckDevice; + checkWindow->setWindowState(Qt::WindowMaximized); + checkWindow->setWindowModality(Qt::ApplicationModal); + checkWindow->show(); +} + +void NewCheckMethod::choosePicture() +{ + QString sName = QFileDialog::getOpenFileName(this,"选择图片","","Image File(*.bmp *.jpg *.jpeg *.png)"); + //第一个参数:标准文件对话框的父窗口;第二个参数:标准文件对话框的标题;第三个参数:指定默认的目录;第四个参数:文件过滤器 + QImage img(sName); + //int WindowW = this->width(); + //int WindowH = this->height(); + //ui->label->setGeometry(0, 0, WindowW, WindowH); + QImage scalimg = img.scaled(ui->label_11->size(), Qt::KeepAspectRatio, Qt::SmoothTransformation); + ui->label_11->setPixmap(QPixmap::fromImage(scalimg)); + //ui->label_11->setPixmap(QPixmap(sName)); +} + +void NewCheckMethod::deletePicture() +{ + ui->label_11->clear(); +} diff --git a/softwareDirectory/AutoVerScheme/newcheckmethod.h b/softwareDirectory/AutoVerScheme/newcheckmethod.h index 9041b36..e923401 100644 --- a/softwareDirectory/AutoVerScheme/newcheckmethod.h +++ b/softwareDirectory/AutoVerScheme/newcheckmethod.h @@ -14,6 +14,10 @@ public: explicit NewCheckMethod(QWidget *parent = nullptr); ~NewCheckMethod(); +private slots: + void showCheckDevice(); + void choosePicture(); + void deletePicture(); private: Ui::NewCheckMethod *ui; diff --git a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro index 5bd9a15..ec5df1e 100644 --- a/softwareDirectory/AutoVerScheme/AutoVerScheme.pro +++ b/softwareDirectory/AutoVerScheme/AutoVerScheme.pro @@ -22,6 +22,7 @@ basecommonapi.cpp \ biz_device_manage_serve.cpp \ check_data_manage_serve.cpp \ + checkdevice.cpp \ create_tasks_serve.cpp \ my_tasks_serve.cpp \ technique_file_serve.cpp \ @@ -62,6 +63,7 @@ basecommonapi.h \ biz_device_manage_serve.h \ check_data_manage_serve.h \ + checkdevice.h \ create_tasks_serve.h \ my_tasks_serve.h \ technique_file_serve.h \ @@ -98,6 +100,7 @@ FORMS += \ beexamined_deviceitem.ui \ + checkdevice.ui \ checkmethodmanage.ui \ checkwindow.ui \ create_task.ui \ diff --git a/softwareDirectory/AutoVerScheme/checkdevice.cpp b/softwareDirectory/AutoVerScheme/checkdevice.cpp new file mode 100644 index 0000000..a5dcc78 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/checkdevice.cpp @@ -0,0 +1,43 @@ +#include "checkdevice.h" +#include "ui_checkdevice.h" +#include "biz_device_manage_serve.h" +#include + +CheckDevice::CheckDevice(QWidget *parent) : + QWidget(parent), + ui(new Ui::CheckDevice) +{ + ui->setupUi(this); + ui->tableWidget_3->setColumnWidth(0, 80); + for(int i=1;i<4;i++) + ui->tableWidget_3->horizontalHeader()->setSectionResizeMode(i,QHeaderView::Stretch); + ui->tableWidget_4->setColumnWidth(0, 80); + for(int i=1;i<5;i++) + ui->tableWidget_4->horizontalHeader()->setSectionResizeMode(i,QHeaderView::Stretch); + getStandardDevice(); +} + +CheckDevice::~CheckDevice() +{ + delete ui; +} + +void CheckDevice::getStandardDevice() +{ + BizDeviceManage dbManager; + // 调用数据库管理器的函数获取数据 + int rowCount=0; + int row=0; + QList data = dbManager.getBizDeviceManage(); + for (const BizDevice& bizDevice : data) { + rowCount = ui->tableWidget_4->rowCount(); + ui->tableWidget_4->insertRow(rowCount); + QCheckBox *checkBox = new QCheckBox; + ui->tableWidget_4->setCellWidget(row, 0, checkBox); + ui->tableWidget_4->setItem(row, 1, new QTableWidgetItem(bizDevice.equipment_name)); + ui->tableWidget_4->setItem(row, 2, new QTableWidgetItem(bizDevice.model)); + ui->tableWidget_4->setItem(row, 3, new QTableWidgetItem(bizDevice.manufacture_no)); + ui->tableWidget_4->setItem(row, 4, new QTableWidgetItem(bizDevice.manufacturer)); + row++; + } +} diff --git a/softwareDirectory/AutoVerScheme/checkdevice.h b/softwareDirectory/AutoVerScheme/checkdevice.h new file mode 100644 index 0000000..fc42d90 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/checkdevice.h @@ -0,0 +1,25 @@ +#ifndef CHECKDEVICE_H +#define CHECKDEVICE_H + +#include + +namespace Ui { +class CheckDevice; +} + +class CheckDevice : public QWidget +{ + Q_OBJECT + +public: + explicit CheckDevice(QWidget *parent = nullptr); + ~CheckDevice(); + +private: + void getStandardDevice(); + +private: + Ui::CheckDevice *ui; +}; + +#endif // CHECKDEVICE_H diff --git a/softwareDirectory/AutoVerScheme/checkdevice.ui b/softwareDirectory/AutoVerScheme/checkdevice.ui new file mode 100644 index 0000000..b996323 --- /dev/null +++ b/softwareDirectory/AutoVerScheme/checkdevice.ui @@ -0,0 +1,488 @@ + + + CheckDevice + + + + 0 + 0 + 949 + 593 + + + + 选择设备 + + + background-color: rgb(255, 255, 255); + + + + + + background-color: rgb(51, 69, 130); + + + + 10 + + + + + + 0 + 0 + + + + + 48 + 48 + + + + image: url(:/image/Index/u7538.svg); + + + + + + + + + + + 1 + 0 + + + + + 18 + 75 + true + + + + color: rgb(255, 255, 255); + + + 选择设备 + + + + + + + + + + + + + + + + + 12 + + + + 选择被检设备: + + + + + + + + 1 + 0 + + + + + 72 + 26 + + + + + 12 + 75 + true + + + + color: rgb(255, 255, 255); +background-color: rgb(74, 102, 186); +border-radius:5px; + + + 查询 + + + + + + + + 0 + 0 + + + + + 72 + 26 + + + + + 12 + 75 + true + + + + color: rgb(255, 255, 255); +background-color: rgb(207, 132, 33); +border-radius:5px; + + + 重置 + + + + + + + + + + + + 12 + + + + 设备名称 + + + + + + + + 12 + + + + 型号规格 + + + + + + + + 12 + + + + 出厂编号 + + + + + + + + + + 选择 + + + + 12 + + + + + + 设备名称 + + + + 12 + + + + + + 型号规格 + + + + 12 + + + + + + 辅助字段 + + + + 12 + + + + + + + + + + + + + + + + 12 + + + + 选择标准设备: + + + + + + + + 1 + 0 + + + + + 72 + 26 + + + + + 12 + 75 + true + + + + color: rgb(255, 255, 255); +background-color: rgb(74, 102, 186); +border-radius:5px; + + + 查询 + + + + + + + + 0 + 0 + + + + + 72 + 26 + + + + + 12 + 75 + true + + + + color: rgb(255, 255, 255); +background-color: rgb(207, 132, 33); +border-radius:5px; + + + 重置 + + + + + + + + + + + + 12 + + + + 设备名称 + + + + + + + + 12 + + + + 型号规格 + + + + + + + + 12 + + + + 出厂编号 + + + + + + + + + + 选择 + + + + 12 + + + + + + 设备名称 + + + + 12 + + + + + + 型号规格 + + + + 12 + + + + + + 出厂编号 + + + + 12 + + + + + + 生产厂家 + + + + 12 + + + + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 1 + 0 + + + + + 72 + 26 + + + + + 12 + 75 + true + + + + color: rgb(255, 255, 255); +background-color: rgb(74, 102, 186); +border-radius:5px; + + + 保存 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + diff --git a/softwareDirectory/AutoVerScheme/checkmethodmanage.cpp b/softwareDirectory/AutoVerScheme/checkmethodmanage.cpp index 298d310..5b7a728 100644 --- a/softwareDirectory/AutoVerScheme/checkmethodmanage.cpp +++ b/softwareDirectory/AutoVerScheme/checkmethodmanage.cpp @@ -23,3 +23,4 @@ checkWindow->setWindowModality(Qt::ApplicationModal); checkWindow->show(); } + diff --git a/softwareDirectory/AutoVerScheme/newcheckmethod.cpp b/softwareDirectory/AutoVerScheme/newcheckmethod.cpp index 3a96129..9f0160a 100644 --- a/softwareDirectory/AutoVerScheme/newcheckmethod.cpp +++ b/softwareDirectory/AutoVerScheme/newcheckmethod.cpp @@ -1,5 +1,7 @@ #include "newcheckmethod.h" #include "ui_newcheckmethod.h" +#include "checkdevice.h" +#include "qfiledialog.h" NewCheckMethod::NewCheckMethod(QWidget *parent) : QWidget(parent), @@ -12,3 +14,29 @@ { delete ui; } + +void NewCheckMethod::showCheckDevice() +{ + CheckDevice *checkWindow = new CheckDevice; + checkWindow->setWindowState(Qt::WindowMaximized); + checkWindow->setWindowModality(Qt::ApplicationModal); + checkWindow->show(); +} + +void NewCheckMethod::choosePicture() +{ + QString sName = QFileDialog::getOpenFileName(this,"选择图片","","Image File(*.bmp *.jpg *.jpeg *.png)"); + //第一个参数:标准文件对话框的父窗口;第二个参数:标准文件对话框的标题;第三个参数:指定默认的目录;第四个参数:文件过滤器 + QImage img(sName); + //int WindowW = this->width(); + //int WindowH = this->height(); + //ui->label->setGeometry(0, 0, WindowW, WindowH); + QImage scalimg = img.scaled(ui->label_11->size(), Qt::KeepAspectRatio, Qt::SmoothTransformation); + ui->label_11->setPixmap(QPixmap::fromImage(scalimg)); + //ui->label_11->setPixmap(QPixmap(sName)); +} + +void NewCheckMethod::deletePicture() +{ + ui->label_11->clear(); +} diff --git a/softwareDirectory/AutoVerScheme/newcheckmethod.h b/softwareDirectory/AutoVerScheme/newcheckmethod.h index 9041b36..e923401 100644 --- a/softwareDirectory/AutoVerScheme/newcheckmethod.h +++ b/softwareDirectory/AutoVerScheme/newcheckmethod.h @@ -14,6 +14,10 @@ public: explicit NewCheckMethod(QWidget *parent = nullptr); ~NewCheckMethod(); +private slots: + void showCheckDevice(); + void choosePicture(); + void deletePicture(); private: Ui::NewCheckMethod *ui; diff --git a/softwareDirectory/AutoVerScheme/newcheckmethod.ui b/softwareDirectory/AutoVerScheme/newcheckmethod.ui index 5d6efa9..516b62e 100644 --- a/softwareDirectory/AutoVerScheme/newcheckmethod.ui +++ b/softwareDirectory/AutoVerScheme/newcheckmethod.ui @@ -215,13 +215,34 @@ - + + + + 0 + 0 + + background-color: rgb(255, 255, 255); + + 12 + + + 18 + + + 18 + + + 18 + + + 18 + @@ -299,17 +320,48 @@ - + + + + 0 + 0 + + + + + + + + + 0 + 0 + + background-color: rgb(255, 255, 255); + + 12 + + + 18 + + + 18 + + + 18 + + + 18 + @@ -507,5 +559,59 @@ - + + + pushButton_7 + clicked() + NewCheckMethod + showCheckDevice() + + + 1255 + 221 + + + 1333 + 200 + + + + + pushButton_6 + clicked() + NewCheckMethod + choosePicture() + + + 287 + 184 + + + 266 + 156 + + + + + pushButton_5 + clicked() + NewCheckMethod + deletePicture() + + + 375 + 189 + + + 385 + 158 + + + + + + showCheckDevice() + choosePicture() + deletePicture() +