161 lines
3.7 KiB
C++
161 lines
3.7 KiB
C++
#ifndef MICJISHU_H
|
|
#define MICJISHU_H
|
|
|
|
#include <QWidget>
|
|
#include <QtSql/QSql>
|
|
#include <QtSql/QSqlDatabase>
|
|
#include <QtSql/QSqlQueryModel>
|
|
#include <QtSql/QSqlError>
|
|
#include <QSqlQuery>
|
|
#include <QSqlTableModel>
|
|
#include <QDebug>
|
|
#include "michistoricalrecords.h"
|
|
#include "cammer.h"
|
|
#include "ziwai.h"
|
|
#include <QSerialPort>
|
|
#include <QSerialPortInfo>
|
|
#include<QTimer>
|
|
#include "maxtu.h"
|
|
#include<QLabel>
|
|
#include<QTableWidget>
|
|
#include<QListWidgetItem>
|
|
#include "zidingyi.h"
|
|
#include<QMessageBox>
|
|
#include "msgbox.h"
|
|
#include "printpage.h"
|
|
// extern int x;
|
|
// extern int y;
|
|
namespace Ui {
|
|
class micjishu;
|
|
}
|
|
|
|
class micjishu : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit micjishu(QWidget *parent = nullptr);
|
|
~micjishu();
|
|
void getshui();
|
|
void usepython();
|
|
void usepython2();
|
|
//void paizhao();
|
|
void savezhao();
|
|
void savezhao2();
|
|
bool jixu=true;
|
|
private slots:
|
|
void getming(QString s);
|
|
void on_tableWidget_3_itemClicked(QTableWidgetItem *item);
|
|
|
|
void on_comboBox_currentIndexChanged(const QString &arg1);
|
|
|
|
void on_pushButton_4_clicked();
|
|
|
|
void on_pushButton_2_clicked();
|
|
|
|
void on_pushButton_5_clicked();
|
|
|
|
void on_comboBox_currentTextChanged(const QString &arg1);
|
|
|
|
void on_pushButton_3_clicked();
|
|
|
|
void on_pushButton_clicked();
|
|
|
|
void on_radioButton_clicked();
|
|
|
|
// void on_pushButton_6_clicked();
|
|
|
|
// void on_pushButton_7_clicked();
|
|
void getguan();
|
|
|
|
void on_checkBox_clicked();
|
|
|
|
void on_checkBox_2_clicked();
|
|
|
|
void on_pushButton_6_clicked();
|
|
|
|
void on_pushButton_7_clicked();
|
|
|
|
void getkai();
|
|
void on_lineEdit_editingFinished();
|
|
|
|
void on_pushButton_8_clicked();
|
|
|
|
void on_pushButton_9_clicked();
|
|
|
|
void on_radioButton_2_clicked();
|
|
|
|
void on_pushButton_10_clicked();
|
|
|
|
|
|
void on_pushButton_11_clicked();
|
|
void setbiaoge();
|
|
void on_pushButton_12_clicked();
|
|
|
|
private:
|
|
|
|
printpage *m_pp=new printpage();
|
|
QString savePath; //自定义原图
|
|
QString savePath2;//自定义结果图
|
|
QString savePath3;//未定义原图
|
|
QString savePath4;//未定义结果图
|
|
QString savePath5;//自定义表格
|
|
QString savePath6;//未定义表格
|
|
QString savePath11;
|
|
QString savePath33;
|
|
QString savePath22;//自定义处理图
|
|
QString savePath44;//未定义处理图
|
|
Ui::micjishu *ui;
|
|
|
|
// QStringList headers= QStringList() << "序号"<<"抗菌药物(中文名)" << "抗菌药物(英文名)" << "MIC值(μg/ml)" << "结果解释";;
|
|
QStringList headers=QStringList() << "序号"<<"抗菌药物(中文名)" << "抗菌药物(英文名)" << "MIC值(μg/ml)" <<"ECV"<<"S"<<"I"<<"SDD"<<"R"<<"结果";
|
|
QStringList xuhao = QStringList()<<"1"<<"2"<<"3"<<"4"<<"5"<<"6"<<"7"<<"8"<<"9"<<"10";
|
|
QTimer *timer;
|
|
msgBox *m_msgBox;
|
|
|
|
michistoricalrecords *m_michistoricalrecords;
|
|
QStringList chineseNames;
|
|
QStringList englishNames;
|
|
QStringList micValues;
|
|
QStringList explanations;
|
|
QStringList positionStrList;
|
|
|
|
QStringList ECVList;
|
|
QStringList SList;
|
|
QStringList IList;
|
|
|
|
QStringList SDDList;
|
|
|
|
QStringList RList;
|
|
void MICzhi();
|
|
void kongzhi();
|
|
QString zhong;
|
|
QString shu;
|
|
QString getname();
|
|
QString gettime();
|
|
cammer m_cammer;
|
|
ziwai *m_ziwai;
|
|
QSerialPort SerialPort;
|
|
QSerialPort SerialPort4;
|
|
maxtu *m_maxtu;
|
|
QString getLabelSubstring(QLabel *label, int start, int end) ;
|
|
void get();
|
|
int x;
|
|
int y;
|
|
int row=0;
|
|
void exportTableWidgetToCsv(QTableWidget* tableWidget, const QString& filePath);
|
|
void loadCsvToTableWidget(const QString& filePath, QTableWidget* tableWidget);
|
|
void fenge();
|
|
zidingyi *m_zidingyi;
|
|
signals:
|
|
void biaoge();
|
|
void yuan(QPixmap p);
|
|
void shuaxin();
|
|
void tuichu();
|
|
void print(QString s);
|
|
protected:
|
|
void mouseDoubleClickEvent(QMouseEvent *event);
|
|
};
|
|
|
|
#endif // MICJISHU_H
|