Add UserOperationLog.

This commit is contained in:
sunwen
2023-09-05 16:32:38 +08:00
parent d8ffe7b10e
commit 17cc9e5297
18 changed files with 103 additions and 50 deletions

View File

@@ -100,6 +100,6 @@ bool ChangePasswordFormDialog::updateReferenceData()
User::Current()->restorePassword(encryptPwd);
return false;
}
LOG_USER_OPERATION(ChangePassword);
LOG_USER_OPERATION("Change Password");
return true;
}

View File

@@ -95,7 +95,7 @@ void GUIMessageDialog::startLoading() {
}
accept();
EventCenter::Default()->triggerEvent(GUIEvents::RequestFullScanStop, nullptr, nullptr);
LOG_USER_OPERATION(Stop);
LOG_USER_OPERATION("Stop Scan");
});
mTimerID = startTimer(100);
mBtnMain->setVisible(true);
@@ -117,7 +117,7 @@ void GUIMessageDialog::showExitButton() {
mTimerID = -1;
}
accept();
LOG_USER_OPERATION(ConfirmError);
LOG_USER_OPERATION("Confirm Error");
});
}

View File

@@ -15,6 +15,7 @@
#include "components/ULineEdit.h"
#include "action/GetWorkListAction.h"
#include "action/ActionCreator.h"
#include "log/UserOperationLog.h"
GetWorkListDialog::GetWorkListDialog(QSqlTableModel* aSqlModel, QTableView* aTableView, QWidget* aParent, Qt::WindowFlags aFlags)
: AsyncActionDialog(ActionCreator::getAsyncAction<GetWorkListAction>("GetWorkListAction"),"Work List", aParent, aFlags)
@@ -254,4 +255,5 @@ void GetWorkListDialog::insertPatient(PatientInformationPointer aPatient)
mErrorLabel->show();
}
mTableView->selectRow(0);
LOG_USER_OPERATION(QString("Add Patient, ID:%1").arg(aPatient->ID));
}