From b03ede8d9ef14386f9c57c7407d45458affafe97 Mon Sep 17 00:00:00 2001 From: bobpan Date: Fri, 2 Jul 2021 15:41:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0lpReort=E6=8A=A5=E8=A1=A8?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E8=BD=AF=E4=BB=B6=20=E5=BC=95=E5=AF=BC?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tpvs17/tpMain/lpMainWin.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tpvs17/tpMain/lpMainWin.cpp b/tpvs17/tpMain/lpMainWin.cpp index d71782a..8187b8a 100644 --- a/tpvs17/tpMain/lpMainWin.cpp +++ b/tpvs17/tpMain/lpMainWin.cpp @@ -20,6 +20,7 @@ #include "qpulpewidget.h" #include "QZkJsonParser.h" +#include #define VERSION_HUB "3.0.0.2" #define VERSION_ALG "3.0.0.2" @@ -826,7 +827,14 @@ Q_SLOT void lpMainWin::onActionClicked() } } else if ("action_checkdata" == strObj) {//历史数据查询 - + QProcess process; + process.setWorkingDirectory(QCoreApplication::applicationDirPath()); +#ifdef _DEBUG + QString strTaskName = "lpReportd.exe"; +#else + QString strTaskName = "lpReport.exe"; +#endif + process.startDetached(strTaskName); } else if ("action_modelmgr" == strObj) {//模板管理 if (m_pModelMgrDlg)