Procházet zdrojové kódy

Refactored Patienten Handler eingebunden.

testBranch
rodič
revize
ee355e264c
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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 Zobrazit soubor

@@ -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();


Načítá se…
Zrušit
Uložit