From b8161cbd4d471d3da54cff42d55aeca31628c320 Mon Sep 17 00:00:00 2001 From: "zaccaria.majid" Date: Mon, 28 Nov 2022 09:22:25 +0100 Subject: [PATCH] pulizia filtri inutilizzati --- MP.SPEC/Components/SelFilterPODL.razor | 72 -------------- MP.SPEC/Components/SelFilterPODL.razor.cs | 114 ---------------------- MP.SPEC/Components/SelFilterXDL.razor | 2 +- MP.SPEC/Data/SelectOdlParams.cs | 77 --------------- MP.SPEC/Data/SelectPOdlParams.cs | 92 ----------------- MP.SPEC/MP.SPEC.csproj | 2 +- MP.SPEC/Resources/ChangeLog.html | 2 +- MP.SPEC/Resources/VersNum.txt | 2 +- MP.SPEC/Resources/manifest.xml | 2 +- 9 files changed, 5 insertions(+), 360 deletions(-) delete mode 100644 MP.SPEC/Components/SelFilterPODL.razor delete mode 100644 MP.SPEC/Components/SelFilterPODL.razor.cs delete mode 100644 MP.SPEC/Data/SelectOdlParams.cs delete mode 100644 MP.SPEC/Data/SelectPOdlParams.cs diff --git a/MP.SPEC/Components/SelFilterPODL.razor b/MP.SPEC/Components/SelFilterPODL.razor deleted file mode 100644 index 83b8b75d..00000000 --- a/MP.SPEC/Components/SelFilterPODL.razor +++ /dev/null @@ -1,72 +0,0 @@ - -
-
-

FILTRI

- -
-
-
-
- Seleziona i filtri per: -
-
-
- -
- -
-
- - -
-
-
- -
- -
-
- - -
-
-
- -
- -
-
- - -
-
-
-
- diff --git a/MP.SPEC/Components/SelFilterPODL.razor.cs b/MP.SPEC/Components/SelFilterPODL.razor.cs deleted file mode 100644 index 7ac096f7..00000000 --- a/MP.SPEC/Components/SelFilterPODL.razor.cs +++ /dev/null @@ -1,114 +0,0 @@ -using Blazored.LocalStorage; -using Microsoft.AspNetCore.Components; -using MP.Data.DatabaseModels; -using MP.SPEC.Data; - -namespace MP.SPEC.Components -{ - public partial class SelFilterPODL - { - #region Public Properties - - [Parameter] - public SelectPOdlParams currFilter { get; set; } = new SelectPOdlParams(); - - [Parameter] - public EventCallback FilterChanged { get; set; } - - [Parameter] - public List? ListGruppiFase { get; set; } = null; - - [Parameter] - public List? ListMacchine { get; set; } = null; - - [Parameter] - public List? ListStati { get; set; } = null; - - #endregion Public Properties - - #region Protected Properties - - [Inject] - protected ILocalStorageService localStorage { get; set; } = null!; - protected async Task getReparto() - { - string keyStor = "reparto"; - string localReparto = await localStorage.GetItemAsync(keyStor); - if (!string.IsNullOrEmpty(localReparto)) - { - selReparto = localReparto; - } - else - { - await localStorage.SetItemAsync(keyStor, selReparto); - } - } - protected bool hasOdl - { - get => currFilter.hasOdl; - } - - - #endregion Protected Properties - - #region Private Properties - - private string selMacchina - { - get => currFilter.IdxMacchina; - set - { - if (currFilter.IdxMacchina != value) - { - currFilter.IdxMacchina = value; - Task.Delay(1); - reportChange(); - } - } - } - - private string selReparto - { - get => currFilter.CodReparto; - set - { - if (currFilter.CodReparto != value) - { - currFilter.CodReparto = value; - Task.Delay(1); - reportChange(); - } - } - } - - private string selStato - { - get => currFilter.CodFase; - set - { - if (currFilter.CodFase != value) - { - currFilter.CodFase = value; - Task.Delay(1); - reportChange(); - } - } - } - protected override async Task OnInitializedAsync() - { - await Task.Delay(1); - //selReparto = localStorage.GetItemAsync("reparto").ToString(); - await getReparto(); - } - #endregion Private Properties - - #region Private Methods - - private void reportChange() - { - FilterChanged.InvokeAsync(currFilter); - } - - #endregion Private Methods - } -} \ No newline at end of file diff --git a/MP.SPEC/Components/SelFilterXDL.razor b/MP.SPEC/Components/SelFilterXDL.razor index e658b944..526b89cc 100644 --- a/MP.SPEC/Components/SelFilterXDL.razor +++ b/MP.SPEC/Components/SelFilterXDL.razor @@ -16,7 +16,7 @@
- +