zwischenschritt
This commit is contained in:
@@ -9,6 +9,7 @@ import javafx.scene.layout.Background;
|
||||
import javafx.scene.layout.GridPane;
|
||||
import javafx.scene.layout.HBox;
|
||||
import javafx.scene.layout.VBox;
|
||||
import com.google.gson.Gson;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
@@ -127,6 +128,10 @@ public class AccounterstellungMitarbeiter {
|
||||
|
||||
String json = String.format("{\"name\":\"%s\", \"email\":\"%s\", \"passwort\":\"%d\", \"rid\":\"%d\"}",
|
||||
accountname.getText(), email.getText(), einmalpw.getText().hashCode(), (typMitarbeiter.isSelected() ? 0:1));
|
||||
|
||||
//Gson gson = new Gson();
|
||||
//String jay = gson.toJson(this);
|
||||
|
||||
System.out.println(json);
|
||||
RestApiClient api = new RestApiClient();
|
||||
api.post("Benutzerkonto", json);
|
||||
|
@@ -41,7 +41,9 @@ public class EssensverwaltungMitarbeiterView {
|
||||
}
|
||||
|
||||
public void onFilter(ActionEvent actionEvent) {
|
||||
VerwaltungApplication.sceneWechseln(new Stage(), 600, 400, "inhaltsstoffe_filtern-view.fxml");
|
||||
Stage stage = new Stage();
|
||||
VerwaltungApplication.sceneWechseln(stage, 450, 400, "inhaltsstoffe_filtern-view.fxml");
|
||||
|
||||
}
|
||||
|
||||
public void onHinzufuegen(ActionEvent actionEvent) {
|
||||
|
Reference in New Issue
Block a user