diff --git a/prototype/src/main/java/org/hso/ecommerce/app/RequestController.java b/prototype/src/main/java/org/hso/ecommerce/app/RequestController.java index 658a5cf..961ebba 100644 --- a/prototype/src/main/java/org/hso/ecommerce/app/RequestController.java +++ b/prototype/src/main/java/org/hso/ecommerce/app/RequestController.java @@ -18,6 +18,8 @@ import java.util.UUID; @Controller public class RequestController { + static int notSoRandom = 0; + @GetMapping("/") public String home() { return "redirect:/shop/"; @@ -209,11 +211,36 @@ public class RequestController { @GetMapping("/intern/warehouse/") public String accountingWarehouse() { - return "/intern/warehouse/"; + return "/intern/warehouse/index"; + } + + @GetMapping("/intern/warehouse/todo") + public String accountingWarehouseTodo() { + return "/intern/warehouse/todo"; } @GetMapping("/intern/warehouse/addManual") public String accountingWarehouseAddManual() { return "/intern/warehouse/addManual"; } + + @PostMapping("/intern/warehouse/progress/{id}") + public String accountingWarehouseProgressIdPost(HttpServletResponse response) { + if((notSoRandom++) % 2 == 1) { + return "redirect:/intern/warehouse/progress/450"; + } else { + response.setStatus(409); + return "/intern/warehouse/error_progress_failed"; + } + } + + @GetMapping("/intern/warehouse/progress/{id}") + public String accountingWarehouseProgressId() { + return "/intern/warehouse/id_progress"; + } + + @GetMapping("/intern/warehouse/slots/") + public String accountingWarehouseSlots() { + return "/intern/warehouse/slots/index"; + } } diff --git a/prototype/src/main/resources/static/css/ecom.css b/prototype/src/main/resources/static/css/ecom.css index 3cd1f51..f82a680 100644 --- a/prototype/src/main/resources/static/css/ecom.css +++ b/prototype/src/main/resources/static/css/ecom.css @@ -360,6 +360,8 @@ input[type="password"]::placeholder { } button, .button { + display: inline-block; + font-family: "Fira Mono"; font-weight: bold; text-decoration: none; @@ -535,7 +537,7 @@ input[type="number"]:focus { .detailgrid { display: grid; - grid-auto-flow: dense; + grid-auto-flow: row; min-width: 20rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); grid-template-rows: auto; @@ -842,6 +844,16 @@ input[type="number"]:focus { display: block; } +th.r, +td.r { + text-align: right; +} + +th.l, +td.l { + text-align: left; +} + /*** THE UGLY diff --git a/prototype/src/main/resources/static/img/undraw_cancel_u1it.svg b/prototype/src/main/resources/static/img/undraw_cancel_u1it.svg new file mode 100644 index 0000000..1983df9 --- /dev/null +++ b/prototype/src/main/resources/static/img/undraw_cancel_u1it.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/prototype/src/main/resources/templates/fragments/intern.html b/prototype/src/main/resources/templates/fragments/intern.html index a984212..9f1ff87 100644 --- a/prototype/src/main/resources/templates/fragments/intern.html +++ b/prototype/src/main/resources/templates/fragments/intern.html @@ -43,6 +43,15 @@ +
+
+
+ Diese Seite leitet sie automatisch nach 3 Sekunden weiter. +
+ Zurück ++
Zeitpunkt | +Artikel | +Anzahl | +Von | +Nach | +
---|---|---|---|---|
2020-01-12 12:18 | +
+ Bestellung 8408
+
+ Hans Maier
+ + Hauptstraße 12 + 74880 Musterstadt + Deutschland + |
+ |||
Kamera | +1 | +Lagherplatz 01 | +- | +|
Spielzeugauto | +2 | +Lagherplatz 02 | +- | +
+ Die Lagerbestände nach Artikel können Sie unter den gelisteten Artikeln einsehen. +
++
+ + | +||||||
---|---|---|---|---|---|---|
Zeitpunkt | +Artikel | +Anzahl | +Von | +Nach | +Status | +|
2020-01-12 12:18 | ++ Bestellung 8408 + | +Auf Warteliste + |
+ ||||
+ | Kamera | +1 | +Lagherplatz 01 | +- | ++ | |
+ | Spielzeugauto | +2 | +Lagherplatz 02 | +- | ++ | |
2020-01-12 12:15 | ++ Manuell: Ware war defekt. + | +In Arbeit + |
+ ||||
+ | Kamera | +1 | +Lagherplatz 01 | +- | ++ | |
2020-01-12 12:11 | ++ Lieferung 4545 + | +Fertig |
+ ||||
+ | Kamera | +10 | +- | +Lagherplatz 01 + | + | |
+ | Kamera | +1 | +- | +Lagherplatz 04 | ++ |
+
+ + | +||||||
---|---|---|---|---|---|---|
Lagerplatz | +Bild | +Artikel | +Anzahl | +Max. | +||
1 |
+ Kamera | +20 | +20 | +|||
2 |
+ Kamera | +1 | +20 | +|||
3 |
+ + | + | 0 | ++ | ||
4 |
+ + | + | 0 | ++ | ||
5 |
+ Usb-Ding | +1 | +10 | +|||
6 |
+ Stativ | +3 | +5 | +
+
+ + | +||||||
---|---|---|---|---|---|---|
Zeitpunkt | +Artikel | +Anzahl | +Von | +Nach | +Status | +|
2020-01-12 12:18 | +
+ Bestellung 8408
+
+ Hans Maier
+ + Hauptstraße 12 + 74880 Musterstadt + Deutschland + |
+ + + | +||||
Kamera | +1 | +Lagherplatz 01 | +- | ++ | +||
Spielzeugauto | +2 | +Lagherplatz 02 | +- | ++ | ||
2020-01-12 12:15 | ++ Manuell: Ware war defekt. + | +Abschließen + | +||||
Kamera | +1 | +Lagherplatz 01 | +- | ++ |