소스 검색

Refactored Patienten Handler eingebunden.

testBranch
부모
커밋
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();


불러오는 중...
취소
저장