Empty Scan ID Initial check.

This commit is contained in:
Krad
2022-05-17 16:16:01 +08:00
parent b691cfb1e3
commit 1d9c414dd9
5 changed files with 32 additions and 2 deletions

View File

@@ -16,6 +16,7 @@
#include <qdebug.h>
#include "log/UserOperationLog.h"
#include <QLabel>
#include "json/jsonobject.h"
#ifdef WIN32
#else
@@ -229,6 +230,11 @@ ScanFormWidget::ScanFormWidget(QWidget* parent) : TabFormWidget(parent) {
connect(btnScan, &QToolButton::clicked, [=]() {
QString patientInf(patient_information->getCurrentPatientJsonString(false));
LOG_USER_OPERATION(StartScan);
if (!JsonObject::Instance()->getEmptyScanID()){
QString msg(tr("No refresh data exists, please do Refresh operation first."));
EventCenter::Default()->triggerEvent(GUIEvents::DeviceErrorRaise, nullptr, (QObject*)(&msg));
return;
}
EventCenter::Default()->triggerEvent(GUIEvents::RequestPatientScan, nullptr, (QObject*)(&patientInf));
});
connect(btnStop, &QToolButton::clicked, [=]() {