Explorar el Código

Refactored Patienten Handler eingebunden.

testBranch
padre
commit
ee355e264c
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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 Ver fichero

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


Cargando…
Cancelar
Guardar