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