feat: Add start scan process without recon connect while configured.
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
"AnonymousMode": false
|
||||
},
|
||||
"protocol": {
|
||||
"default": "1",
|
||||
"default": "0",
|
||||
"lists": "0;1;2;3"
|
||||
},
|
||||
"storagepolicy": {
|
||||
@@ -45,36 +45,37 @@
|
||||
"usercode": ""
|
||||
},
|
||||
"worklist": {
|
||||
"ae": "DCM4CHEE",
|
||||
"ip": "192.168.1.10",
|
||||
"localAE": "gui",
|
||||
"ae": "WORKLIST",
|
||||
"ip": "192.168.1.6",
|
||||
"localAE": "gui2",
|
||||
"port": "11112"
|
||||
},
|
||||
"pacs": {
|
||||
"ae": "ORTHANC",
|
||||
"ip": "192.168.1.10",
|
||||
"localAE": "Radiant",
|
||||
"port": "4242"
|
||||
"ae": "DCM4CHEE",
|
||||
"ip": "192.168.1.6",
|
||||
"localAE": "server9D",
|
||||
"port": "11112"
|
||||
},
|
||||
"recon": {
|
||||
"ae": "krad",
|
||||
"ip": "192.168.1.10",
|
||||
"ae": "server9D",
|
||||
"ip": "192.168.1.153",
|
||||
"localAE": "3D recon",
|
||||
"port": "5003",
|
||||
"transferPath": "/home/eq9/Tools/ReconTest/storage/Raw"
|
||||
"transferPath": "",
|
||||
"scancanwithoutrecon": false
|
||||
},
|
||||
"mpps": {
|
||||
"open": false,
|
||||
"ae": "mpps",
|
||||
"ip": "192.168.1.15",
|
||||
"localAE": "Mpps Server",
|
||||
"port": "5002"
|
||||
"open": true,
|
||||
"ae": "WORKLIST",
|
||||
"ip": "192.168.1.6",
|
||||
"localAE": "gui2",
|
||||
"port": "11112"
|
||||
},
|
||||
"address": {
|
||||
"device": "eth0",
|
||||
"Dhcp": true,
|
||||
"ip": "192.168.1.197",
|
||||
"gateway": "192.168.1.197",
|
||||
"Dhcp": false,
|
||||
"ip": "192.168.1.14",
|
||||
"gateway": "0.0.0.0",
|
||||
"mask": "255.255.255.0",
|
||||
"ae": "MOON",
|
||||
"name": "daq",
|
||||
|
||||
@@ -22,7 +22,9 @@ QString dateToFileName(QString date)
|
||||
return QString("./log/UserOperationLog/") + date + QString("-op.log");
|
||||
}
|
||||
|
||||
UserOperationLogForm::UserOperationLogForm(QWidget* parent) {
|
||||
UserOperationLogForm::UserOperationLogForm(QWidget* parent)
|
||||
: QWidget (parent)
|
||||
{
|
||||
layout = new QVBoxLayout(this);
|
||||
QWidget* header = new QWidget(this);
|
||||
QHBoxLayout* headerLayout = new QHBoxLayout(header);
|
||||
|
||||
@@ -1292,9 +1292,10 @@ void DeviceManager::updateReconConnectionState(bool aIsConnected)
|
||||
void DeviceManager::startScanProcess()
|
||||
{
|
||||
LOG_SYS_OPERATION("Start scan process.");
|
||||
if( !UsctStateManager::getInstance()->getState(ReconConnectionState) ||
|
||||
!UsctStateManager::getInstance()->getState(ReconState) ||
|
||||
!UsctStateManager::getInstance()->getState(ReconDBState))
|
||||
if( !JsonObject::Instance()->getScanCanWithoutRecon() &&
|
||||
(!UsctStateManager::getInstance()->getState(ReconConnectionState) ||
|
||||
!UsctStateManager::getInstance()->getState(ReconState) ||
|
||||
!UsctStateManager::getInstance()->getState(ReconDBState)))
|
||||
{
|
||||
QString errorMessage = tr("Recon error, can't start scan process");
|
||||
LOG_SYS_OPERATION(errorMessage)
|
||||
|
||||
@@ -100,6 +100,7 @@ void JsonObject::init()
|
||||
{
|
||||
mReconTransferPath.chop(1);
|
||||
}
|
||||
mScanCanWithoutRecon = getBool("recon", "scancanwithoutrecon");
|
||||
|
||||
mMppsHost.ae = QString(getJsonString("mpps", "ae"));
|
||||
mMppsHost.ip = QString(getJsonString("mpps", "ip"));
|
||||
@@ -659,3 +660,8 @@ QString JsonObject::getReconTransferPath()
|
||||
{
|
||||
return mReconTransferPath;
|
||||
}
|
||||
|
||||
bool JsonObject::getScanCanWithoutRecon()
|
||||
{
|
||||
return mScanCanWithoutRecon;
|
||||
}
|
||||
|
||||
@@ -126,6 +126,8 @@ public:
|
||||
|
||||
QString getReconTransferPath();
|
||||
|
||||
bool getScanCanWithoutRecon();
|
||||
|
||||
|
||||
private:
|
||||
void setJsonString(const char* catergory, const char* stringName, const char* stringValue, bool save = true);
|
||||
@@ -184,6 +186,7 @@ private:
|
||||
bool mAnonymousMode;
|
||||
bool mScreenSaverMode;
|
||||
bool mMppsOpen;
|
||||
bool mScanCanWithoutRecon;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -13,10 +13,13 @@ void LogFileTableModel::setFileName(QString fileName) {
|
||||
qDebug()<<fileName;
|
||||
QFile f;
|
||||
f.setFileName(fileName);
|
||||
if (!f.exists()) return;
|
||||
if (!f.exists())
|
||||
{
|
||||
endResetModel();
|
||||
return;
|
||||
}
|
||||
if(f.open(QFile::OpenModeFlag::ReadOnly | QFile::OpenModeFlag::Text))
|
||||
{
|
||||
|
||||
QTextStream in(&f);
|
||||
while(!in.atEnd()){
|
||||
logdata.push_back(in.readLine().split("\t"));
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include <QFontDatabase>
|
||||
#include <QDebug>
|
||||
#include <QThread>
|
||||
#include <QProcess>
|
||||
#include <QTimer>
|
||||
#include "log/UserOperationLog.h"
|
||||
#include <QTranslator>
|
||||
@@ -46,7 +47,7 @@ int main(int argc, char* argv[])
|
||||
#endif // CUTE_STYLE
|
||||
|
||||
//qputenv("QT_LOGGING_RULES", QByteArray("qt.virtualkeyboard=true"));
|
||||
|
||||
QProcess::startDetached("./backup.sh");
|
||||
const char* dicomDictPath = "/usr/local/share/dcmtk/dicom.dic";
|
||||
setenv("DCMDICTPATH", dicomDictPath, 1);
|
||||
UsctApplication a(argc, argv);
|
||||
@@ -95,6 +96,7 @@ int main(int argc, char* argv[])
|
||||
MainWindow w;
|
||||
DialogManager::Default()->init(&w);
|
||||
UserOperationLog::Default()->init();
|
||||
LOG_USER_OPERATION("GUI Started");
|
||||
SystemOperationLog::getInstance();
|
||||
|
||||
QObject::connect(TouchScreenSignalSender::getInstance(), SIGNAL(touchScreen()), Locker::getInstance(), SLOT(refreshTimer()));
|
||||
|
||||
Reference in New Issue
Block a user