Просмотр исходного кода

Refactored Patienten Handler eingebunden.

testBranch
Nils Dittberner 10 лет назад
Родитель
Сommit
ee355e264c
1 измененных файлов: 2 добавлений и 2 удалений
  1. +2
    -2
      src/main/java/de/uniluebeck/mi/projmi6/controller/PatientEditorController.java

+ 2
- 2
src/main/java/de/uniluebeck/mi/projmi6/controller/PatientEditorController.java Просмотреть файл

@@ -195,7 +195,7 @@ public class PatientEditorController {
patient = new Patient();
copyFieldDataIntoPatient(patient);
try {
DBHandler.insertPatient(patient, mainController.getCurrentMitarbeiter().getMitarbID());
DBHandler.setPatient(patient, mainController.getCurrentMitarbeiter().getMitarbID(), false);
mainController.getPatientTablesController().updatePatientsFromDb();
((Stage) patNachname.getScene().getWindow()).close();
} catch (SQLException e) {
@@ -204,7 +204,7 @@ public class PatientEditorController {
} else {
copyFieldDataIntoPatient(patient);
try {
DBHandler.updatePatient(patient, mainController.getCurrentMitarbeiter().getMitarbID());
DBHandler.setPatient(patient, mainController.getCurrentMitarbeiter().getMitarbID(), true);
((Stage) patNachname.getScene().getWindow()).close();
} catch (SQLException e) {
e.printStackTrace();


Загрузка…
Отмена
Сохранить