#ifndef SEARCHINFO_H
|
#define SEARCHINFO_H
|
|
#include <QMainWindow>
|
#include <QMap>
|
#include "QSqlDatabase"
|
#include <QStandardItemModel>
|
|
|
namespace Ui {
|
class SearchInfo;
|
}
|
|
class SearchInfo : public QMainWindow
|
{
|
Q_OBJECT
|
|
public:
|
explicit SearchInfo(QWidget *parent = 0);
|
~SearchInfo();
|
void createSqlite();
|
void createTableHasEvidences(QString tableName); // 有佐证的表
|
void createTableNoEvidences(QString tableName); // 无佐证的表
|
void createTableHasUnit(QString tableName); // 无佐证的表且有计量单位的表
|
void searchComName();
|
QVector<QVector<QString>> getResult(QString &sql,int colCnt);
|
void setLabels();
|
|
void createTableAllComInfo(QString tableName); // 单位信息表全
|
void createTableRectifyResultInfo(QString tableName); // 整改结果信息表
|
void createTableProblemListInfo(QString tableName); // 问题清单列表信息表
|
void createTableComprehensiveEntryInfo(QString tableName); // 综合录入信息表
|
|
private slots:
|
void on_pushButton_search_clicked();
|
|
void on_pushButton_export_clicked();
|
|
void on_comboBox_currentIndexChanged(const QString &arg1);
|
|
void on_toolButton_seleceExcel_clicked();
|
|
void on_comboBox_company_currentIndexChanged(const QString &arg1);
|
|
void addComName(QString name);
|
|
void on_checkBox_clicked();
|
|
private:
|
Ui::SearchInfo *ui;
|
QSqlDatabase m_db;
|
QMap<QString,int> m_comInfo;
|
QMap<QString,QString> m_comCode;
|
QMap<QString,QString> m_itemAndTable;
|
QStandardItemModel *m_model;
|
QMap<QString,QStringList> m_labels;
|
};
|
|
#endif // SEARCHINFO_H
|