Add UserOperationLog.
This commit is contained in:
@@ -122,12 +122,13 @@ void SelectFormWidget::editPatient() {
|
||||
if (addFlag){
|
||||
mPatTable->selectRow(0);
|
||||
mModel->selectRow(0);
|
||||
LOG_USER_OPERATION(QString("Add Patient, ID: %1").arg(patientDetailForm->getPatientInformation()->ID))
|
||||
}
|
||||
else{
|
||||
mPatTable->clicked(mPatTable->currentIndex());
|
||||
setPatientDetail(mPatTable, mModel, patientDetailForm);
|
||||
LOG_USER_OPERATION(QString("Edit Patient, ID: %1").arg(patientDetailForm->getPatientInformation()->ID))
|
||||
}
|
||||
LOG_USER_OPERATION(AddPatient)
|
||||
mBtnSelect->setEnabled(true);
|
||||
}
|
||||
}
|
||||
@@ -154,7 +155,7 @@ void SelectFormWidget::delPatient() {
|
||||
mPatTable->selectRow(0);
|
||||
mModel->selectRow(0);
|
||||
setPatientDetail(mPatTable, mModel, patientDetailForm);
|
||||
LOG_USER_OPERATION(DeletePatient)
|
||||
LOG_USER_OPERATION(QString("Delete Patient, ID: %1").arg(patientDetailForm->getPatientInformation()->ID))
|
||||
}
|
||||
} else {
|
||||
//TODO:error handle
|
||||
@@ -166,7 +167,7 @@ void SelectFormWidget::delPatient() {
|
||||
void SelectFormWidget::selectPatient() {
|
||||
EventCenter::Default()->triggerEvent(PatientSelected, nullptr, patientDetailForm->getPatientInformation()->Copy());
|
||||
selectedPatientUID = patientDetailForm->getPatientInformation()->PatientUID;
|
||||
LOG_USER_OPERATION(SelectPatient)
|
||||
LOG_USER_OPERATION(QString("Select Patient, ID: %1").arg(patientDetailForm->getPatientInformation()->ID))
|
||||
}
|
||||
|
||||
void SelectFormWidget::initDetailPanel(QHBoxLayout *contentLayout) {// prepare edit panel
|
||||
|
||||
Reference in New Issue
Block a user