41 lines
829 B
C
41 lines
829 B
C
|
|
#ifndef REPORTFORM_H
|
||
|
|
#define REPORTFORM_H
|
||
|
|
|
||
|
|
#include <QWidget>
|
||
|
|
#include "BaseWgt.h"
|
||
|
|
#include "CreateReport.h"
|
||
|
|
#include "msgbox.h"
|
||
|
|
#include "QMessageBox"
|
||
|
|
#include "global.h"
|
||
|
|
|
||
|
|
namespace Ui {
|
||
|
|
class ReportForm;
|
||
|
|
}
|
||
|
|
|
||
|
|
class ReportForm : public BaseWgt
|
||
|
|
{
|
||
|
|
Q_OBJECT
|
||
|
|
|
||
|
|
public:
|
||
|
|
explicit ReportForm(QWidget *parent = nullptr);
|
||
|
|
~ReportForm();
|
||
|
|
void InitReport(QString Path,QStringList& strImagePathList,QString ReportName,REPORT_INFO& reportInfo);
|
||
|
|
private slots:
|
||
|
|
void ChoosePath();
|
||
|
|
void ChoosePDF(bool flag);
|
||
|
|
void ChooseWord(bool flag);
|
||
|
|
void Report();
|
||
|
|
private:
|
||
|
|
Ui::ReportForm *ui;
|
||
|
|
QString m_strReportName;
|
||
|
|
QString m_filePath;
|
||
|
|
CreateReport cp;
|
||
|
|
REPORT_INFO _reportInfo;
|
||
|
|
QStringList strImagePath;
|
||
|
|
signals:
|
||
|
|
void ReportPDF(QStringList strResult,QString filePath);
|
||
|
|
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // REPORTFORM_H
|