From 9e4db23e7ae434ccf3e1203598dc818a0201afbd Mon Sep 17 00:00:00 2001 From: pbs2h21asc Date: Mon, 30 Jan 2023 14:57:57 +0100 Subject: [PATCH] =?UTF-8?q?View=20=C3=BCberarbeitet=20Controller=20AdminCo?= =?UTF-8?q?ntroller=20anfangen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AdminController.java | 35 +++++++++++++++++++ .../ParentController.java | 2 ++ .../createCoworker-view.fxml | 28 +++++++-------- 3 files changed, 51 insertions(+), 14 deletions(-) diff --git a/src/main/java/com/bib/essensbestellungsverwaltung/AdminController.java b/src/main/java/com/bib/essensbestellungsverwaltung/AdminController.java index 6494355..5897efe 100644 --- a/src/main/java/com/bib/essensbestellungsverwaltung/AdminController.java +++ b/src/main/java/com/bib/essensbestellungsverwaltung/AdminController.java @@ -1,4 +1,39 @@ package com.bib.essensbestellungsverwaltung; +import javafx.scene.control.PasswordField; +import javafx.scene.control.TextField; + public class AdminController { + + private TextField lastname; + private TextField firstname; + private TextField street; + private TextField number; + private TextField city; + private TextField plz; + private TextField email; + private PasswordField password; + + + + protected void onBtSignUp(){ + + String ln = lastname.toString(); + String fn = firstname.toString(); + String st = street.toString(); + String nr = number.toString(); + String cityString = city.toString(); + String plzString = plz.toString(); + String emailString = email.toString(); + String pw = password.toString(); + + String[] userData = new String[]{ln,fn,pw,emailString}; + String[] addressData = new String[]{st,nr,plzString,cityString}; + + AccountMgr.createWorker(userData, addressData); + + } + + } + diff --git a/src/main/java/com/bib/essensbestellungsverwaltung/ParentController.java b/src/main/java/com/bib/essensbestellungsverwaltung/ParentController.java index e862560..9639516 100644 --- a/src/main/java/com/bib/essensbestellungsverwaltung/ParentController.java +++ b/src/main/java/com/bib/essensbestellungsverwaltung/ParentController.java @@ -1,4 +1,6 @@ package com.bib.essensbestellungsverwaltung; public class ParentController{ + + } diff --git a/src/main/resources/com/bib/essensbestellungsverwaltung/createCoworker-view.fxml b/src/main/resources/com/bib/essensbestellungsverwaltung/createCoworker-view.fxml index 54f3aee..6d518a1 100644 --- a/src/main/resources/com/bib/essensbestellungsverwaltung/createCoworker-view.fxml +++ b/src/main/resources/com/bib/essensbestellungsverwaltung/createCoworker-view.fxml @@ -9,15 +9,15 @@ - + @@ -39,7 +39,7 @@ - + @@ -56,7 +56,7 @@ - + @@ -73,7 +73,7 @@ - + @@ -87,7 +87,7 @@ - + @@ -104,7 +104,7 @@ - + @@ -124,14 +124,14 @@ - + - + - + @@ -150,7 +150,7 @@ -