Some display setting and logic
This commit is contained in:
@@ -103,15 +103,6 @@ void DeviceManager::startScan(const char* json, bool empty) {
|
||||
static QString msg = "Start scan...";
|
||||
AppGlobalValues::setInProcessing(true);
|
||||
TRIGGER_EVENT(GUIEvents::InvokeOperationStart, nullptr, (QObject*)&msg);
|
||||
qDebug() << "SetScanInfo>>>>>>>>>>>>>>>>>>>>";
|
||||
AppGlobalValues::setEmptyScanFlag(empty);
|
||||
int ret = SetScanInfo(json, empty ? 1 : 0);
|
||||
if (ret) {
|
||||
qDebug() << ">>>>>>>>>>>>>>>>>>>>SetScanInfo failed";
|
||||
THROW_ERROR("Transfer patient information fail!")
|
||||
return;
|
||||
}
|
||||
qDebug() << ">>>>>>>>>>>>>>>>>>>>SetScanInfo success";
|
||||
postScanCommand();
|
||||
}
|
||||
|
||||
@@ -188,24 +179,6 @@ void DeviceManager::prepareFinishScan() {
|
||||
// stop normal scan with prompt
|
||||
TRIGGER_EVENT(InvokeOperationEnd, nullptr, (QObject *) &var);
|
||||
AppGlobalValues::setInProcessing(false);
|
||||
|
||||
// get output data path
|
||||
QString outputPath = GetDeviceInfo(DEV_OUTPATH);
|
||||
outputPath = outputPath.replace("\\", "/");
|
||||
// get scan ID from path
|
||||
if (outputPath.endsWith('/')) outputPath = outputPath.remove(outputPath.length() - 1, 1);
|
||||
QStringList list = outputPath.split('/');
|
||||
if (list.length()) {
|
||||
if (AppGlobalValues::EmptyScanFlag().toBool()) {
|
||||
ScanJson::Current()->setEmptyScanID(list.last().toStdString().c_str());
|
||||
} else {
|
||||
ScanJson::Current()->setScanID(list.last().toStdString().c_str());
|
||||
}
|
||||
// save json
|
||||
ScanJson::Current()->save();
|
||||
} else {
|
||||
THROW_ERROR("Scan Output Path error!")
|
||||
}
|
||||
}
|
||||
|
||||
void DeviceManager::stopScan() {
|
||||
|
||||
Reference in New Issue
Block a user