From 591a3922912b488ed0c267ea1acb1d0f6e0607c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20S=C3=A4ume?= Date: Mon, 29 Apr 2024 14:58:23 +0200 Subject: [PATCH] NOTICKET: Connect Nurse Module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Dominik Säume --- db/nursingHome.db | Bin 20480 -> 20480 bytes src/main/java/de/hitec/nhplus/Main.java | 2 +- .../nhplus/main/MainWindowController.java | 26 +++++++++++++++++- .../nhplus/{ => main}/MainWindowView.fxml | 4 +++ .../de/hitec/nhplus/nurse/AllNurseView.fxml | 13 ++++----- 5 files changed, 35 insertions(+), 10 deletions(-) rename src/main/resources/de/hitec/nhplus/{ => main}/MainWindowView.fxml (83%) diff --git a/db/nursingHome.db b/db/nursingHome.db index 49707f4ed52ea72b2027af5df72c7f23da27e603..238897213929fdb2652c3a0ed809fadad8817601 100644 GIT binary patch delta 132 zcmZozz}T>Wae}m<3IhWJD-gqg?L-}8MwN{Ti9C!FlMnICV-(+<$h)4AOM(roqA^Wu zvlRbx0bc$q49xt;IrxwBKj8ncSx{jozcx1qvovEtVo7FdUI|Dw7iV5+QE_T+DlaFq XJYz{wYGO$)P>PFWae}lU4+8@OD-gqg`9vLKMxKoci9C#=lMnICV-(q($h)4AOOy?)qA^W) zvlRbx0bU@Fng0qa|6~3u{2w+8I_%<~7{DXP%f>9vSW=XlSdyEXSHi{3$}G)TkXVul O loadPatientPage()); treatmentTab.setOnSelectionChanged(event -> loadTreatmentsPage()); + nurseTab.setOnSelectionChanged(event -> loadNursePage()); + } private void loadPatientPage() { @@ -57,4 +66,19 @@ public class MainWindowController { exception.printStackTrace(); } } + + private void loadNursePage() { + try { + BorderPane nursePane = FXMLLoader.load( + Main.class.getResource("/de/hitec/nhplus/nurse/AllNurseView.fxml") + ); + nursePage.getChildren().setAll(nursePane); + AnchorPane.setTopAnchor(nursePane, 0d); + AnchorPane.setBottomAnchor(nursePane, 0d); + AnchorPane.setLeftAnchor(nursePane, 0d); + AnchorPane.setRightAnchor(nursePane, 0d); + } catch (IOException exception) { + exception.printStackTrace(); + } + } } diff --git a/src/main/resources/de/hitec/nhplus/MainWindowView.fxml b/src/main/resources/de/hitec/nhplus/main/MainWindowView.fxml similarity index 83% rename from src/main/resources/de/hitec/nhplus/MainWindowView.fxml rename to src/main/resources/de/hitec/nhplus/main/MainWindowView.fxml index 00eab26..7d1697d 100644 --- a/src/main/resources/de/hitec/nhplus/MainWindowView.fxml +++ b/src/main/resources/de/hitec/nhplus/main/MainWindowView.fxml @@ -4,6 +4,7 @@ + + + diff --git a/src/main/resources/de/hitec/nhplus/nurse/AllNurseView.fxml b/src/main/resources/de/hitec/nhplus/nurse/AllNurseView.fxml index c775e66..95e23c9 100644 --- a/src/main/resources/de/hitec/nhplus/nurse/AllNurseView.fxml +++ b/src/main/resources/de/hitec/nhplus/nurse/AllNurseView.fxml @@ -4,11 +4,10 @@ - - + @@ -19,8 +18,7 @@ - + @@ -29,8 +27,7 @@