Hallo
This commit is contained in:
@@ -140,7 +140,7 @@ public class BestelluebersichtMitarbeiter {
|
||||
*/
|
||||
|
||||
public void onAbmelden(ActionEvent event) {
|
||||
VerwaltungApplication.abmelden();
|
||||
//VerwaltungApplication.abmelden();
|
||||
}
|
||||
|
||||
public void onZurueck(ActionEvent actionEvent) {
|
||||
|
@@ -0,0 +1,38 @@
|
||||
package de.subway_surfers.vpr_app;
|
||||
|
||||
import javafx.event.ActionEvent;
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.control.TextField;
|
||||
import javafx.scene.paint.Color;
|
||||
|
||||
public class ErsteLoginViewController {
|
||||
@FXML
|
||||
private Label text;
|
||||
@FXML
|
||||
private TextField passwort;
|
||||
@FXML
|
||||
private TextField bpasswort;
|
||||
@FXML
|
||||
private Label fehlertext;
|
||||
private String benutzername;
|
||||
public void initialize(){
|
||||
benutzername = "Test";
|
||||
text.setText("Willkommen, "+benutzername+"\n\nUm Sie und Ihre Kinder zu schützen, bitten wir Sie darum Ihr Einmalpasswort zu ändern.");
|
||||
}
|
||||
|
||||
public void onAbmelden(ActionEvent actionEvent) {
|
||||
VerwaltungApplication.abmelden();
|
||||
}
|
||||
|
||||
public void onbestaetigen(ActionEvent actionEvent) {
|
||||
if(passwort.getText().equals(bpasswort.getText())){
|
||||
|
||||
}
|
||||
else{
|
||||
fehlertext.setText("Die Eingaben müssen identisch sein");
|
||||
fehlertext.setTextFill(Color.color(1, 0, 0));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,17 @@
|
||||
package de.subway_surfers.vpr_app;
|
||||
|
||||
import javafx.event.ActionEvent;
|
||||
|
||||
public class EssensverwaltungElternController {
|
||||
|
||||
public void onFilter(ActionEvent actionEvent) {}
|
||||
|
||||
public void pfeilLinks(ActionEvent actionEvent) {}
|
||||
|
||||
public void pfeilRechts(ActionEvent actionEvent) {}
|
||||
|
||||
public void onAbmelden(ActionEvent actionEvent) {}
|
||||
|
||||
public void onZurueck(ActionEvent actionEvent) {}
|
||||
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
package de.subway_surfers.vpr_app;
|
||||
|
||||
import Logik.Tagesplan;
|
||||
import RestAPISchnittstelle.RestApiClient;
|
||||
import javafx.event.ActionEvent;
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.layout.GridPane;
|
||||
import javafx.scene.text.TextAlignment;
|
||||
|
||||
import java.text.DateFormat;
|
||||
import java.util.Date;
|
||||
|
||||
public class HauptmenueElternController {
|
||||
@FXML
|
||||
private GridPane wochenplan;
|
||||
private String date;
|
||||
private String day;
|
||||
private String month;
|
||||
private String year;
|
||||
|
||||
public void initialize(){
|
||||
wochenuebersichtFuellen();
|
||||
}
|
||||
|
||||
public void wochenuebersichtFuellen(){
|
||||
String dateanzeige;
|
||||
DateFormat dateFormat = DateFormat.getDateInstance();
|
||||
date = dateFormat.format(new Date());
|
||||
date = date.replace('.', '-');
|
||||
day = date.split("-")[0];
|
||||
month = date.split("-")[1];
|
||||
year = date.split("-")[2];
|
||||
date = String.format("%s-%s-%s", year, month, day);
|
||||
dateanzeige = String.format("%s.%s.%s",day,month,year);
|
||||
Tagesplan t = new RestApiClient().getGerichteOnTag(date);
|
||||
for(int i=0;i<5;i++){
|
||||
Label tag = new Label();
|
||||
wochenplan.add(tag, i, 0);
|
||||
tag.setText(dateanzeige);
|
||||
for(int j=0; j<t.getGerichte().size();j++){
|
||||
Label name = new Label();
|
||||
name.setWrapText(true);
|
||||
wochenplan.add(name, i, j+1);
|
||||
name.setText(t.getGerichte().get(j).getName());
|
||||
name.setPrefHeight(75);
|
||||
name.setTextAlignment(TextAlignment.CENTER);
|
||||
}
|
||||
day = String.valueOf(Integer.parseInt(day)+1);
|
||||
date = String.format("%s-%s-%s", year, month, day);
|
||||
dateanzeige = String.format("%s.%s.%s",day,month,year);
|
||||
t = new RestApiClient().getGerichteOnTag(date);
|
||||
}
|
||||
}
|
||||
public void onAbmelden(ActionEvent actionEvent) {}
|
||||
|
||||
public void onBestellungPlanen(ActionEvent actionEvent) {}
|
||||
|
||||
public void onBestellhistorieAnzeigen(ActionEvent actionEvent) {}
|
||||
|
||||
}
|
@@ -63,7 +63,7 @@ public class HauptmenueMitarbeiterView {
|
||||
}
|
||||
|
||||
public void onAbmelden(ActionEvent actionEvent) {
|
||||
VerwaltungApplication.abmelden();
|
||||
//VerwaltungApplication.abmelden();
|
||||
}
|
||||
|
||||
public void onAccountAnlegenClick(ActionEvent actionEvent) {
|
||||
|
@@ -21,7 +21,7 @@ public class VerwaltungApplication extends Application {
|
||||
|
||||
@Override
|
||||
public void start(Stage stage) throws IOException {
|
||||
FXMLLoader fxmlLoader = new FXMLLoader(VerwaltungApplication.class.getResource("login-view.fxml"));
|
||||
FXMLLoader fxmlLoader = new FXMLLoader(VerwaltungApplication.class.getResource("essensverwaltung_eltern-view.fxml"));
|
||||
Scene scene = new Scene(fxmlLoader.load());
|
||||
|
||||
stage.setWidth(960);
|
||||
|
Reference in New Issue
Block a user