Compare commits
No commits in common. "0550482a6b09ad99da6114e8ff216be52f06d4e0" and "a039bb09fc8acc52ebbafa4e697babe85fd13855" have entirely different histories.
0550482a6b
...
a039bb09fc
@ -1,43 +1,4 @@
|
|||||||
package com.bib.essensbestellungsverwaltung;
|
package com.bib.essensbestellungsverwaltung;
|
||||||
|
|
||||||
import javafx.scene.control.PasswordField;
|
|
||||||
import javafx.scene.control.TextField;
|
|
||||||
|
|
||||||
public class AdminController {
|
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};
|
|
||||||
|
|
||||||
Address adresse = new Address(st,nr,plzString,cityString);
|
|
||||||
|
|
||||||
Worker worker = new Worker(ln,fn,pw,emailString,adresse);
|
|
||||||
|
|
||||||
AccountMgr.createWorker(worker);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
package com.bib.essensbestellungsverwaltung;
|
package com.bib.essensbestellungsverwaltung;
|
||||||
|
|
||||||
public class ParentController{
|
public class ParentController{
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -9,15 +9,15 @@
|
|||||||
<?import javafx.scene.layout.VBox?>
|
<?import javafx.scene.layout.VBox?>
|
||||||
<?import javafx.scene.text.Font?>
|
<?import javafx.scene.text.Font?>
|
||||||
|
|
||||||
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="860.0" prefWidth="850.0" stylesheets="@createCoworker.css" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.bib.essensbestellungsverwaltung.AdminController">
|
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="479.0" prefWidth="719.0" stylesheets="@createCoworker.css" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1">
|
||||||
<children>
|
<children>
|
||||||
<Label layoutX="301.0" layoutY="49.0" />
|
<Label layoutX="301.0" layoutY="49.0" />
|
||||||
<Label layoutX="223.0" layoutY="76.0" prefHeight="28.0" prefWidth="220.0" text="Mitarbeiter hinzufügen">
|
<Label layoutX="230.0" layoutY="30.0" prefHeight="28.0" prefWidth="220.0" text="Mitarbeiter hinzufügen">
|
||||||
<font>
|
<font>
|
||||||
<Font size="18.0" />
|
<Font size="18.0" />
|
||||||
</font>
|
</font>
|
||||||
</Label>
|
</Label>
|
||||||
<VBox layoutX="223.0" layoutY="149.0" prefHeight="317.0" prefWidth="514.0">
|
<VBox layoutX="119.0" layoutY="95.0" prefHeight="317.0" prefWidth="331.0">
|
||||||
<children>
|
<children>
|
||||||
<HBox prefHeight="43.0" prefWidth="331.0">
|
<HBox prefHeight="43.0" prefWidth="331.0">
|
||||||
<children>
|
<children>
|
||||||
@ -26,7 +26,7 @@
|
|||||||
<Font size="16.0" />
|
<Font size="16.0" />
|
||||||
</font>
|
</font>
|
||||||
</Label>
|
</Label>
|
||||||
<TextField id="lastname" prefHeight="25.0" prefWidth="194.0" />
|
<TextField prefHeight="25.0" prefWidth="194.0" />
|
||||||
</children>
|
</children>
|
||||||
</HBox>
|
</HBox>
|
||||||
<HBox prefHeight="60.0" prefWidth="331.0">
|
<HBox prefHeight="60.0" prefWidth="331.0">
|
||||||
@ -39,7 +39,7 @@
|
|||||||
<Font size="16.0" />
|
<Font size="16.0" />
|
||||||
</font>
|
</font>
|
||||||
</Label>
|
</Label>
|
||||||
<TextField id="firstname" prefHeight="25.0" prefWidth="193.0">
|
<TextField prefHeight="25.0" prefWidth="193.0">
|
||||||
<HBox.margin>
|
<HBox.margin>
|
||||||
<Insets top="10.0" />
|
<Insets top="10.0" />
|
||||||
</HBox.margin>
|
</HBox.margin>
|
||||||
@ -56,7 +56,7 @@
|
|||||||
<Insets top="10.0" />
|
<Insets top="10.0" />
|
||||||
</padding>
|
</padding>
|
||||||
</Label>
|
</Label>
|
||||||
<TextField id="street" prefHeight="25.0" prefWidth="195.0">
|
<TextField prefHeight="25.0" prefWidth="195.0">
|
||||||
<HBox.margin>
|
<HBox.margin>
|
||||||
<Insets top="10.0" />
|
<Insets top="10.0" />
|
||||||
</HBox.margin>
|
</HBox.margin>
|
||||||
@ -73,7 +73,7 @@
|
|||||||
<Insets top="10.0" />
|
<Insets top="10.0" />
|
||||||
</padding>
|
</padding>
|
||||||
</Label>
|
</Label>
|
||||||
<TextField id="number" prefHeight="25.0" prefWidth="87.0">
|
<TextField prefHeight="25.0" prefWidth="87.0">
|
||||||
<HBox.margin>
|
<HBox.margin>
|
||||||
<Insets top="10.0" />
|
<Insets top="10.0" />
|
||||||
</HBox.margin>
|
</HBox.margin>
|
||||||
@ -87,7 +87,7 @@
|
|||||||
<Font size="16.0" />
|
<Font size="16.0" />
|
||||||
</font>
|
</font>
|
||||||
</Label>
|
</Label>
|
||||||
<TextField id="plz" prefHeight="25.0" prefWidth="87.0">
|
<TextField prefHeight="25.0" prefWidth="87.0">
|
||||||
<HBox.margin>
|
<HBox.margin>
|
||||||
<Insets />
|
<Insets />
|
||||||
</HBox.margin>
|
</HBox.margin>
|
||||||
@ -104,7 +104,7 @@
|
|||||||
<Font size="16.0" />
|
<Font size="16.0" />
|
||||||
</font>
|
</font>
|
||||||
</Label>
|
</Label>
|
||||||
<TextField id="city" prefHeight="13.0" prefWidth="194.0">
|
<TextField prefHeight="13.0" prefWidth="194.0">
|
||||||
<HBox.margin>
|
<HBox.margin>
|
||||||
<Insets top="5.0" />
|
<Insets top="5.0" />
|
||||||
</HBox.margin>
|
</HBox.margin>
|
||||||
@ -124,14 +124,14 @@
|
|||||||
<Insets top="10.0" />
|
<Insets top="10.0" />
|
||||||
</padding>
|
</padding>
|
||||||
</Label>
|
</Label>
|
||||||
<TextField id="email" prefHeight="25.0" prefWidth="196.0">
|
<TextField prefHeight="25.0" prefWidth="196.0">
|
||||||
<HBox.margin>
|
<HBox.margin>
|
||||||
<Insets top="10.0" />
|
<Insets top="10.0" />
|
||||||
</HBox.margin>
|
</HBox.margin>
|
||||||
</TextField>
|
</TextField>
|
||||||
</children>
|
</children>
|
||||||
</HBox>
|
</HBox>
|
||||||
<HBox prefHeight="100.0" prefWidth="471.0">
|
<HBox prefHeight="100.0" prefWidth="200.0">
|
||||||
<children>
|
<children>
|
||||||
<Label prefHeight="35.0" prefWidth="122.0" text="Passwort">
|
<Label prefHeight="35.0" prefWidth="122.0" text="Passwort">
|
||||||
<font>
|
<font>
|
||||||
@ -141,7 +141,7 @@
|
|||||||
<Insets top="10.0" />
|
<Insets top="10.0" />
|
||||||
</padding>
|
</padding>
|
||||||
</Label>
|
</Label>
|
||||||
<TextField id="password" accessibleRole="PASSWORD_FIELD" prefHeight="25.0" prefWidth="194.0">
|
<TextField prefHeight="25.0" prefWidth="194.0">
|
||||||
<HBox.margin>
|
<HBox.margin>
|
||||||
<Insets top="10.0" />
|
<Insets top="10.0" />
|
||||||
</HBox.margin>
|
</HBox.margin>
|
||||||
@ -150,7 +150,7 @@
|
|||||||
</HBox>
|
</HBox>
|
||||||
</children>
|
</children>
|
||||||
</VBox>
|
</VBox>
|
||||||
<Button id="btCreateCoworker" layoutX="216.0" layoutY="533.0" mnemonicParsing="false" prefHeight="44.0" prefWidth="158.0" text="Mitarbeiter hinzufügen" />
|
<Button id="btCreateCoworker" layoutX="119.0" layoutY="412.0" mnemonicParsing="false" prefHeight="44.0" prefWidth="158.0" text="Mitarbeiter hinzufügen" />
|
||||||
<Button id="btCancelCoworker" layoutX="443.0" layoutY="533.0" mnemonicParsing="false" prefHeight="44.0" prefWidth="158.0" text="Abbrechen" />
|
<Button id="btCancelCoworker" layoutX="357.0" layoutY="412.0" mnemonicParsing="false" prefHeight="44.0" prefWidth="158.0" text="Abbrechen" />
|
||||||
</children>
|
</children>
|
||||||
</AnchorPane>
|
</AnchorPane>
|
||||||
|
Loading…
Reference in New Issue
Block a user