- @if (currRecord != null)
+
+ @if (totalCount == 0 || ListRecords == null || ListRecords.Count() == 0)
{
- @*
*@
- }
- @if (ListRecords == null)
- {
-
+
}
else
{
-
-
-
-
-
-
-
-
- @* | *@
- Macchina |
- Data |
- ODL/Commessa |
- Articolo |
- Stato |
- Durata |
- Pezzi |
- @*Operatore | *@
-
-
-
- @foreach (var record in ListRecords)
+
+
+
+
+
+
+
+
+ | Macchina |
+ Data |
+ ODL/Commessa |
+ Articolo |
+ Stato |
+ Durata |
+ Pezzi |
+
+
+
+ @foreach (var record in ListRecords)
{
- @*| | *@
@record.CodMacchina
@record.IdxMacchina
@@ -61,13 +58,13 @@
| @record.TotPzProd |
}
-
-
-
-
+
+
+
+
}
\ No newline at end of file
diff --git a/MP.Stats/Pages/Diario.razor.cs b/MP.Stats/Pages/Diario.razor.cs
index e94b882d..69ea6466 100644
--- a/MP.Stats/Pages/Diario.razor.cs
+++ b/MP.Stats/Pages/Diario.razor.cs
@@ -2,6 +2,7 @@ using Microsoft.AspNetCore.Components;
using Microsoft.JSInterop;
using MP.Stats.Data;
using System;
+using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
@@ -13,9 +14,8 @@ namespace MP.Stats.Pages
private MP.Data.DatabaseModels.DdbTurni currRecord = null;
- private MP.Data.DatabaseModels.DdbTurni[] ListRecords;
-
- private MP.Data.DatabaseModels.DdbTurni[] SearchRecords;
+ private List