You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
valvedetect/tpvs17/Report/qcheckdatadlg.h

59 lines
1.4 KiB
C

#ifndef QCHECKDATADLG_H
#define QCHECKDATADLG_H
#include <QDialog>
#include "ui_qcheckdatadlg.h"
#include "stationdb.h"
#include "qsqlquery.h"
#include "qstandarditemmodel.h"
#include "qtableview.h"
#include "qdatetimeedit.h"
#include "QTextBrowser.h"
#include "cunstomgraphview.h"
class QCheckDataDlg : public QDialog
{
Q_OBJECT
public:
QCheckDataDlg(QWidget *parent = 0);
~QCheckDataDlg();
void setDbPtr(StationDB *pDb){ m_db = pDb; };
void setStationNames(QStringList listNames);
private:
Q_SLOT void onChenckButton();
Q_SLOT void onCheckOutData();
Q_SLOT void onTBUI_ItemClick(const QModelIndex & index);
Q_SLOT void onSlowPixmap(QSqlQuery sql);
private:
int getLimitNumber();
int getTotalNumber();
int getErrorType();
QString getStationName();
void createHeader();
void updateModelShowLog(QSqlQuery &sql);
void onCheckOutData(int nLimitNum, int nPrenum);
void setPageShow(int page, int totalPage);
private:
Ui::QCheckDataDlg ui;
QLabel *pShowName_label{ nullptr };
QLabel *check_showImg_label{ nullptr };
QTextBrowser *textBrowser{ nullptr };
StationDB *m_db{ nullptr };
QStandardItemModel *m_tableModel{ nullptr };
QTableView *tableView{ nullptr };
QDateTimeEdit *pStartTimeEdit{ nullptr };
QDateTimeEdit *pEndTimeEdit{ nullptr };
QMap<QString, QString> m_strMap;
int nPrevNum;
int nTotlaNumber;
QTpGraphView *m_ViewImg{ nullptr };
};
#endif // QCHECKDATADLG_H