Food, User
This commit is contained in:
@@ -32,21 +32,23 @@ public class ConsoleMain {
|
||||
}
|
||||
|
||||
public static void defaultMenu(){
|
||||
System.out.println("0: Programm beenden");
|
||||
System.out.println("1: Login");
|
||||
System.out.println("2: Essensplan anzeigen");
|
||||
System.out.println("3: Programm beenden");
|
||||
System.out.println("3: Registrieren");
|
||||
|
||||
System.out.print("Auswahl: ");
|
||||
Scanner sc = new Scanner(System.in);
|
||||
String selection = sc.nextLine();
|
||||
switch (selection) {
|
||||
case "0" -> currentUserId = -2;
|
||||
case "1" -> {
|
||||
currentUserId = ConsoleLib.loginPrompt();
|
||||
isWorker = AccountMgr.isWorker(String.valueOf(currentUserId));
|
||||
isParent = AccountMgr.isParent(String.valueOf(currentUserId));
|
||||
}
|
||||
case "2" -> ConsoleLib.showFood_planPrompt();
|
||||
case "3" -> currentUserId = -2;
|
||||
case "3" -> ConsoleLib.createParentPrompt();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,14 +59,14 @@ public class ConsoleMain {
|
||||
System.out.println("3: Ein neues Kind anlegen");
|
||||
System.out.println("4: Kind einem Elternteil zuordnen");
|
||||
System.out.println("5: Ein neues Essen anlegen");
|
||||
System.out.println("6: Table");
|
||||
System.out.println("7: Einen Essensplan erstellen");
|
||||
System.out.println("8: Essensplan anzeigen");
|
||||
System.out.println("9: Löschen");
|
||||
System.out.println("10: Essen auswählen");
|
||||
System.out.println("11: Bestellungen des Tages sammeln");
|
||||
System.out.println("12: Monatsabrechnung");
|
||||
System.out.println("13: Preis ändern");
|
||||
System.out.println("6: Einen Essensplan erstellen");
|
||||
System.out.println("7: Essensplan anzeigen");
|
||||
System.out.println("8: Essen auswählen");
|
||||
System.out.println("9: Bestellungen des Tages sammeln");
|
||||
System.out.println("10: Monatsabrechnung");
|
||||
System.out.println("11: Preis ändern");
|
||||
System.out.println("x1: Table");
|
||||
System.out.println("x2: Löschen");
|
||||
|
||||
|
||||
System.out.print("Auswahl: ");
|
||||
@@ -81,14 +83,14 @@ public class ConsoleMain {
|
||||
case "3" -> ConsoleLib.createChildPrompt(String.valueOf(currentUserId));
|
||||
case "4" -> ConsoleLib.matchParentChildPrompt(String.valueOf(currentUserId));
|
||||
case "5" -> ConsoleLib.createFoodPrompt();
|
||||
case "6" -> ConsoleLib.tablePrompt();
|
||||
case "7" -> ConsoleLib.createFood_planPrompt();
|
||||
case "8" -> ConsoleLib.showFood_planPrompt();
|
||||
case "9" -> ConsoleLib.deletePrompt();
|
||||
case "10" -> ConsoleLib.createFood_selectionPrompt();
|
||||
case "11" -> ConsoleLib.dayOrderPrompt();
|
||||
case "12" -> ConsoleLib.invoicePrompt();
|
||||
case "13" -> ConsoleLib.changePricePrompt();
|
||||
case "6" -> ConsoleLib.createFood_planPrompt();
|
||||
case "7" -> ConsoleLib.showFood_planPrompt();
|
||||
case "8" -> ConsoleLib.createFood_selectionPrompt();
|
||||
case "9" -> ConsoleLib.dayOrderPrompt();
|
||||
case "10" -> ConsoleLib.invoicePrompt();
|
||||
case "11" -> ConsoleLib.changePricePrompt();
|
||||
case "x1" -> ConsoleLib.tablePrompt();
|
||||
case "x2" -> ConsoleLib.deletePrompt();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -96,7 +98,8 @@ public class ConsoleMain {
|
||||
public static void parentMenu(){
|
||||
System.out.println("0: Ausloggen");
|
||||
System.out.println("3: Ein neues Kind anlegen");
|
||||
System.out.println("4: Kind einem Elternteil zuordnen");
|
||||
System.out.println("7: Essensplan anzeigen");
|
||||
System.out.println("8: Essen auswählen");
|
||||
|
||||
|
||||
System.out.print("Auswahl: ");
|
||||
@@ -109,10 +112,9 @@ public class ConsoleMain {
|
||||
isParent = false;
|
||||
}
|
||||
case "3" -> ConsoleLib.createChildPrompt(String.valueOf(currentUserId));
|
||||
case "4" -> ConsoleLib.matchParentChildPrompt(String.valueOf(currentUserId));
|
||||
case "6" -> ConsoleLib.tablePrompt();
|
||||
default -> {
|
||||
}
|
||||
case "7" -> ConsoleLib.showFood_planPrompt();
|
||||
case "8" -> ConsoleLib.createFood_selectionPrompt();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user