From 8b83f93ba47cff0b8f0e2bfec2dd8a4d79f4822e Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Wed, 23 Jun 2021 20:18:46 +0200 Subject: [PATCH] Abbozzato detail, NON CONCLUDE caricamento... --- GWMS.UI/Components/ItemPlanDetail.razor | 49 +++++++++++++++++ GWMS.UI/Pages/WeekPlan.razor | 71 ++++++++++++++----------- GWMS.UI/Pages/WeekPlan.razor.cs | 12 +++++ Resources/ChangeLog.html | 2 +- Resources/VersNum.txt | 2 +- Resources/manifest.xml | 2 +- 6 files changed, 105 insertions(+), 33 deletions(-) create mode 100644 GWMS.UI/Components/ItemPlanDetail.razor diff --git a/GWMS.UI/Components/ItemPlanDetail.razor b/GWMS.UI/Components/ItemPlanDetail.razor new file mode 100644 index 0000000..7af9bf3 --- /dev/null +++ b/GWMS.UI/Components/ItemPlanDetail.razor @@ -0,0 +1,49 @@ +@using GWMS.UI.Components +@using GWMS.Data.DatabaseModels +@using System.Security.Claims +@using Microsoft.AspNetCore.Components.Authorization +@using GWMS.UI.Data +@using GWMS.Data.DTO +@using Microsoft.Extensions.Configuration + +
+ @if (currList == null) + { + + } + else if (currList.Count == 0) + { +
-
+ } + else + { +

B

+ foreach (var item in currList) + { +

C

+
+ @item.Plant.PlantCode
+ @item.Note +
+ } + } +
+ +@code { + + protected List _currList { get; set; } = new List(); + + [Parameter] + public List currList + { + get + { + return _currList = null; + } + set + { + _currList = value; + } + } + +} \ No newline at end of file diff --git a/GWMS.UI/Pages/WeekPlan.razor b/GWMS.UI/Pages/WeekPlan.razor index 60e453a..eebf723 100644 --- a/GWMS.UI/Pages/WeekPlan.razor +++ b/GWMS.UI/Pages/WeekPlan.razor @@ -18,37 +18,48 @@ { } -
-
- - - - - - - - - - - - @for (int i = 8; i < 22; i++) - { - - - - - - - - - + @if (ListRecords == null) + { + + } + else if (totalCount == 0) + { +
Nessun record trovato
+ } + else + { +
+
+
LUNMARMERGIOVENSABDOM
@iaaaaaaa
+ + + + + + + + + - } -
LUNMARMERGIOVENSABDOM
+ @for (int i = 8; i < 22; i++) + { + + @i + + + + + + + + + } + +
+
+ Legenda +
-
- Legenda -
- + } \ No newline at end of file diff --git a/GWMS.UI/Pages/WeekPlan.razor.cs b/GWMS.UI/Pages/WeekPlan.razor.cs index 4f46faf..21fc4ca 100644 --- a/GWMS.UI/Pages/WeekPlan.razor.cs +++ b/GWMS.UI/Pages/WeekPlan.razor.cs @@ -219,6 +219,18 @@ namespace GWMS.UI.Pages currRecord = selRecord; } + protected List SlotList(DayOfWeek Giorno, int Ora) + { + List result = new(); + if (ListRecords != null && ListRecords.Count > 0) + { + result = ListRecords + .Where(x => x.DayNum == Giorno && x.DeliveryHour == Ora) + .ToList(); + } + return result; + } + protected async Task UpdateData() { currRecord = null; diff --git a/Resources/ChangeLog.html b/Resources/ChangeLog.html index 64f9062..f502af2 100644 --- a/Resources/ChangeLog.html +++ b/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo statistiche MAPO -

Versione: 1.0.2106.2319

+

Versione: 1.0.2106.2320


Note di rilascio:
    diff --git a/Resources/VersNum.txt b/Resources/VersNum.txt index 01534bc..3f34dda 100644 --- a/Resources/VersNum.txt +++ b/Resources/VersNum.txt @@ -1 +1 @@ -1.0.2106.2319 +1.0.2106.2320 diff --git a/Resources/manifest.xml b/Resources/manifest.xml index 9dbce28..83e8c86 100644 --- a/Resources/manifest.xml +++ b/Resources/manifest.xml @@ -1,6 +1,6 @@ - 1.0.2106.2319 + 1.0.2106.2320 http://nexus.steamware.net/repository/SWS/MP-STATS/stable/0/GWMS.UI.zip http://nexus.steamware.net/repository/SWS/MP-STATS/stable/0/ChangeLog.html false