diff --git a/MP.SPEC/Components/ListODL.razor b/MP.SPEC/Components/ListODL.razor index eda270ca..f5e4b7ba 100644 --- a/MP.SPEC/Components/ListODL.razor +++ b/MP.SPEC/Components/ListODL.razor @@ -55,8 +55,31 @@ else } -
ODL @($"{record.IdxOdl:000000}")
-
PODL @($"{getPodl(record.IdxOdl):000000}")
+
+
+
+ ODL +
+
+ @($"{record.IdxOdl.ToString(padCodXdl)}") +
+
+
+
+ PODL +
+ @if (getPodl(record.IdxOdl) > 0) + { +
+ @($"{getPodl(record.IdxOdl).ToString(padCodXdl)}") +
+ } + else + { +

------

+ } +
+
@record.CodArticolo diff --git a/MP.SPEC/Components/ListODL.razor.cs b/MP.SPEC/Components/ListODL.razor.cs index 6f11213c..7e776432 100644 --- a/MP.SPEC/Components/ListODL.razor.cs +++ b/MP.SPEC/Components/ListODL.razor.cs @@ -14,6 +14,9 @@ namespace MP.SPEC.Components [Parameter] public SelectOdlParams currFilter { get; set; } = null!; + [Parameter] + public string padCodXdl { get; set; } = "0000"; + [Parameter] public EventCallback PagerResetReq { get; set; } @@ -122,6 +125,17 @@ namespace MP.SPEC.Components await reloadData(); } + protected int getPodl(int idxOdl) + { + int answ = 0; + var pOdlData = MDService.PODL_getByOdl(idxOdl); + if (pOdlData != null) + { + answ = pOdlData.IdxPromessa; + } + return answ; + } + protected override async Task OnInitializedAsync() { ListStati = await MDService.AnagStatiComm(); @@ -253,17 +267,6 @@ namespace MP.SPEC.Components } } - protected int getPodl(int idxOdl) - { - int answ = 0; - var pOdlData = MDService.PODL_getByOdl(idxOdl); - if (pOdlData != null) - { - answ = pOdlData.IdxPromessa; - } - return answ; - } - private bool hideSpenta { get; set; } = false; /// diff --git a/MP.SPEC/Components/ListPODL.razor.cs b/MP.SPEC/Components/ListPODL.razor.cs index 0e946e2f..33539043 100644 --- a/MP.SPEC/Components/ListPODL.razor.cs +++ b/MP.SPEC/Components/ListPODL.razor.cs @@ -4,6 +4,7 @@ using MP.Data.DatabaseModels; using MP.SPEC.Data; using MP.SPEC.Services; using NLog; +using StackExchange.Redis; namespace MP.SPEC.Components { @@ -198,11 +199,19 @@ namespace MP.SPEC.Components await Task.Delay(1); await callSyncDb(selRec.IdxMacchina); await Task.Delay(1); + + // svuoto memorie pagina... + await MDService.FlushRedisCache(); + NavManager.NavigateTo(NavManager.Uri, true); } } } } + + [Inject] + protected NavigationManager NavManager { get; set; } = null!; + protected async Task UpdateData() { currRecord = null; diff --git a/MP.SPEC/Data/MpDataService.cs b/MP.SPEC/Data/MpDataService.cs index e3810edd..e76e0a6b 100644 --- a/MP.SPEC/Data/MpDataService.cs +++ b/MP.SPEC/Data/MpDataService.cs @@ -527,6 +527,7 @@ namespace MP.SPEC.Data return answ; } + /// /// Elenco ultimi n record flux log dato macchina e flusso (ordinato x data registrazione) /// diff --git a/MP.SPEC/Pages/ODL.razor b/MP.SPEC/Pages/ODL.razor index b31a35a4..bd021744 100644 --- a/MP.SPEC/Pages/ODL.razor +++ b/MP.SPEC/Pages/ODL.razor @@ -113,7 +113,7 @@
- +