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 @@
- +