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.

58 lines
1.3 KiB
C++

/*!
*FileName: lpReport.h
*Author: Pan Yingdong
*Email: bob.pan@hzleaper.com
*Created:2021/4/6 11:54
*Note:数据查询 报表模块
*/
#ifndef _H_LPREPORT_H_
#define _H_LPREPORT_H_
#include <QtWidgets/QMainWindow>
#include "ui_lpReport.h"
#include <QDateTime>
#include "InfoFile.h"
#include "checkdata.h"
#include <QMessageBox>
#include "DetectDataDB.h"
#include <QSettings>
#include <QTranslator>
#include "ModeCheckDlg.h"
#include "ModeCountDlg.h"
#include "ValueCheckDlg.h"
class lpReport : public QMainWindow
{
Q_OBJECT
public:
lpReport(QWidget *parent = Q_NULLPTR);
~lpReport();
protected:
//国际化
void SetLanguage(QString strLangage);
void SearchQmFile(const QString & strDir);
void SetTranslator(const QString strPath);
virtual void timerEvent(QTimerEvent *event);
Q_SLOT void onSetCurrentIndex(int nIndex);
signals:
void sgSetCurrentIndex(int);
private:
Ui::lpReportClass ui;
QVector<QTranslator* > m_VecTranPtr;//国际化语言包管理
protected:
QMap<QString, TimeStruct> m_Totaltime;//班次时间表
QStringList m_strListModelName;
class DetectDataDB *m_pDb{ nullptr };
class ModelDB *m_pModeDB{ nullptr };
ModeCheckDlg *m_pModeCheckUI{ nullptr };//型号识别历史数据查询页面
ModeCountDlg *m_pModeCountUI{ nullptr };//型号识别统计数据页面
ValueCheckDlg *m_pValueUI{ nullptr };//定位数据查询页面
};
#endif