Abbozzato detail, NON CONCLUDE caricamento...

This commit is contained in:
Samuele Locatelli
2021-06-23 20:18:46 +02:00
parent 004bbe2dbe
commit 8b83f93ba4
6 changed files with 105 additions and 33 deletions
+49
View File
@@ -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
<div class="row">
@if (currList == null)
{
<LoadingData></LoadingData>
}
else if (currList.Count == 0)
{
<div class="alert alert-warning text-center display-4">-</div>
}
else
{
<h2>B</h2>
foreach (var item in currList)
{
<h3>C</h3>
<div class="col">
@item.Plant.PlantCode<br />
@item.Note
</div>
}
}
</div>
@code {
protected List<WeekPlanModel> _currList { get; set; } = new List<WeekPlanModel>();
[Parameter]
public List<WeekPlanModel> currList
{
get
{
return _currList = null;
}
set
{
_currList = value;
}
}
}
+41 -30
View File
@@ -18,37 +18,48 @@
{
<WeekPlanEditor currItem="@currRecord" DataReset="ResetData" DataUpdated="UpdateData"></WeekPlanEditor>
}
<div class="row">
<div class="col-10 text-center">
<table class="table table-sm table-striped">
<tr>
<th></th>
<th>LUN</th>
<th>MAR</th>
<th>MER</th>
<th>GIO</th>
<th>VEN</th>
<th>SAB</th>
<th>DOM</th>
</tr>
@for (int i = 8; i < 22; i++)
{
<tr class="small">
<td>@i</td>
<td>a</td>
<td>a</td>
<td>a</td>
<td>a</td>
<td>a</td>
<td>a</td>
<td>a</td>
@if (ListRecords == null)
{
<LoadingData></LoadingData>
}
else if (totalCount == 0)
{
<div class="alert alert-warning text-center display-4">Nessun record trovato</div>
}
else
{
<div class="row">
<div class="col-10 text-center">
<table class="table table-sm table-striped">
<tr>
<th></th>
<th>LUN</th>
<th>MAR</th>
<th>MER</th>
<th>GIO</th>
<th>VEN</th>
<th>SAB</th>
<th>DOM</th>
</tr>
}
</table>
@for (int i = 8; i < 22; i++)
{
<tr class="small">
<td>@i</td>
<td><ItemPlanDetail currList="@SlotList(DayOfWeek.Monday, i)"></ItemPlanDetail></td>
<td><ItemPlanDetail currList="@SlotList(@DayOfWeek.Tuesday, i)"></ItemPlanDetail></td>
<td><ItemPlanDetail currList="@SlotList(@DayOfWeek.Wednesday, i)"></ItemPlanDetail></td>
<td><ItemPlanDetail currList="@SlotList(@DayOfWeek.Thursday, i)"></ItemPlanDetail></td>
<td><ItemPlanDetail currList="@SlotList(@DayOfWeek.Friday, i)"></ItemPlanDetail></td>
<td><ItemPlanDetail currList="@SlotList(@DayOfWeek.Saturday, i)"></ItemPlanDetail></td>
<td><ItemPlanDetail currList="@SlotList(@DayOfWeek.Sunday, i)"></ItemPlanDetail></td>
</tr>
}
</table>
</div>
<div class="col-2 text-center">
Legenda
</div>
</div>
<div class="col-2 text-center">
Legenda
</div>
</div>
}
</div>
</div>
+12
View File
@@ -219,6 +219,18 @@ namespace GWMS.UI.Pages
currRecord = selRecord;
}
protected List<WeekPlanModel> SlotList(DayOfWeek Giorno, int Ora)
{
List<WeekPlanModel> 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;
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo statistiche MAPO</i>
<h4>Versione: 1.0.2106.2319</h4>
<h4>Versione: 1.0.2106.2320</h4>
<br />
Note di rilascio:
<ul>
+1 -1
View File
@@ -1 +1 @@
1.0.2106.2319
1.0.2106.2320
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>1.0.2106.2319</version>
<version>1.0.2106.2320</version>
<url>http://nexus.steamware.net/repository/SWS/MP-STATS/stable/0/GWMS.UI.zip</url>
<changelog>http://nexus.steamware.net/repository/SWS/MP-STATS/stable/0/ChangeLog.html</changelog>
<mandatory>false</mandatory>