zwischenschritt

This commit is contained in:
2024-01-11 12:10:07 +01:00
parent 2a3ac1498b
commit 042c78e0d4
5 changed files with 17 additions and 3 deletions

View File

@@ -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);

View File

@@ -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) {