diff --git a/MP.SPEC/Components/ListODL.razor.cs b/MP.SPEC/Components/ListODL.razor.cs index a339bc42..35159bb7 100644 --- a/MP.SPEC/Components/ListODL.razor.cs +++ b/MP.SPEC/Components/ListODL.razor.cs @@ -1,9 +1,7 @@ using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.WebUtilities; using Microsoft.JSInterop; using MP.Data.DatabaseModels; using MP.SPEC.Data; -using MP.SPEC.Pages; using MP.SPEC.Services; using NLog; @@ -74,15 +72,10 @@ namespace MP.SPEC.Components [Inject] protected IOApiService MpIoApiCall { get; set; } = null!; - [Inject] - protected NavigationManager NavManager { get; set; } = null!; - #endregion Protected Properties #region Protected Methods - protected int odlCercato = 0; - /// /// Registra chiusura ODL alla data indicata /// @@ -145,14 +138,6 @@ namespace MP.SPEC.Components protected override async Task OnInitializedAsync() { - if (NavManager.Uri.Contains("ODL?")) - { - var uri = NavManager.ToAbsoluteUri(NavManager.Uri); - if (QueryHelpers.ParseQuery(uri.Query).TryGetValue("IdxOdl", out var _idxOdl)) - { - odlCercato = int.Parse(_idxOdl); - } - } ListStati = await MDService.AnagStatiComm(); } @@ -426,14 +411,7 @@ namespace MP.SPEC.Components isLoading = true; SearchRecords = await MDService.ListODLFilt(currFilter.IsActive, currFilter.SearchVal, currFilter.CodFase, currFilter.CodReparto, currFilter.IdxMacchina, currFilter.DtStart, currFilter.DtEnd); totalCount = SearchRecords.Count; - if (NavManager.Uri.Contains("ODL?")) - { - ListRecords = SearchRecords.Where(x => x.IdxOdl == odlCercato).Skip(numRecord * (currPage - 1)).Take(numRecord).ToList(); - } - else - { - ListRecords = SearchRecords.Skip(numRecord * (currPage - 1)).Take(numRecord).ToList(); - } + ListRecords = SearchRecords.Skip(numRecord * (currPage - 1)).Take(numRecord).ToList(); await Task.Delay(1); await InvokeAsync(() => StateHasChanged()); isLoading = false; diff --git a/MP.SPEC/Components/ListPODL.razor.cs b/MP.SPEC/Components/ListPODL.razor.cs index d2ef2f67..7d48ffdf 100644 --- a/MP.SPEC/Components/ListPODL.razor.cs +++ b/MP.SPEC/Components/ListPODL.razor.cs @@ -80,7 +80,7 @@ namespace MP.SPEC.Components currRecord = null; currRecord = selRec; await RecordSel.InvokeAsync(Utils.POdlExt.clone(selRec)); - header = "Nuovo PODL"; + header = "Duplica PODL"; } /// diff --git a/MP.SPEC/MP.SPEC.csproj b/MP.SPEC/MP.SPEC.csproj index b06244a5..fa781fe8 100644 --- a/MP.SPEC/MP.SPEC.csproj +++ b/MP.SPEC/MP.SPEC.csproj @@ -5,7 +5,7 @@ enable enable MP.SPEC - 6.16.2212.114 + 6.16.2212.115 diff --git a/MP.SPEC/Pages/PODL.razor b/MP.SPEC/Pages/PODL.razor index 77590ffc..4c6744de 100644 --- a/MP.SPEC/Pages/PODL.razor +++ b/MP.SPEC/Pages/PODL.razor @@ -60,7 +60,7 @@ {
-
+
@header
@@ -76,20 +76,22 @@
Articolo
@@ -145,6 +147,7 @@
Macchina