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.
59 lines
1.3 KiB
C
59 lines
1.3 KiB
C
|
5 years ago
|
#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;
|
||
|
|
QLabel *check_showImg_label;
|
||
|
|
QTextBrowser *textBrowser;
|
||
|
|
StationDB *m_db;
|
||
|
|
QStandardItemModel *m_tableModel;
|
||
|
|
QTableView *tableView;
|
||
|
|
QDateTimeEdit *pStartTimeEdit;
|
||
|
|
QDateTimeEdit *pEndTimeEdit;
|
||
|
|
|
||
|
|
QMap<QString, QString> m_strMap;
|
||
|
|
int nPrevNum;
|
||
|
|
int nTotlaNumber;
|
||
|
|
|
||
|
|
QTpGraphView *m_ViewImg;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // QCHECKDATADLG_H
|