diff --git a/MP.SPEC/Components/ListPARAMS.razor b/MP.SPEC/Components/ListPARAMS.razor index 0902540c..abd14f91 100644 --- a/MP.SPEC/Components/ListPARAMS.razor +++ b/MP.SPEC/Components/ListPARAMS.razor @@ -13,7 +13,7 @@ else {
- +
- + @@ -42,8 +42,8 @@ else -
@@ -22,7 +22,7 @@ else Data Macchina FlussoValoreValore
@record.CodFlux - @record.Valore + + @record.Valore @*@if (ArticoloDelEnabled(record.CodArticolo)) diff --git a/MP.SPEC/Components/ListPARAMS.razor.cs b/MP.SPEC/Components/ListPARAMS.razor.cs index 1b11848e..01b1fdf3 100644 --- a/MP.SPEC/Components/ListPARAMS.razor.cs +++ b/MP.SPEC/Components/ListPARAMS.razor.cs @@ -131,8 +131,6 @@ namespace MP.SPEC.Components private List? SearchRecords; - private List? a; - #endregion Private Fields #region Private Properties diff --git a/MP.SPEC/Pages/PARAMS.razor b/MP.SPEC/Pages/PARAMS.razor index e5fc1f46..47d947fb 100644 --- a/MP.SPEC/Pages/PARAMS.razor +++ b/MP.SPEC/Pages/PARAMS.razor @@ -4,10 +4,14 @@
-
+
-

PARAMETERS

+

PARAMETERS

+
@**@
@@ -25,7 +29,7 @@ @*
*@
- @if (ListMacchine != null) { @@ -36,30 +40,25 @@ }
-
-
-
- - @*@if (reqNew) - { -
-
-
- Azienda - + + @if (ListFlux != null) { - foreach (var item in ListAziende.Where(x => x.CodGruppo != "*").ToList()) + foreach (var item in ListFlux) { - + } } - Art Search -
+
+ @*@if (reqNew) + { + +
diff --git a/MP.SPEC/Pages/PARAMS.razor.cs b/MP.SPEC/Pages/PARAMS.razor.cs index 10a1a219..da9a2b44 100644 --- a/MP.SPEC/Pages/PARAMS.razor.cs +++ b/MP.SPEC/Pages/PARAMS.razor.cs @@ -1,5 +1,6 @@ using Microsoft.AspNetCore.Components; using Microsoft.JSInterop; +using MP.Data.DatabaseModels; using MP.SPEC.Components; using MP.SPEC.Data; @@ -91,15 +92,16 @@ namespace MP.SPEC.Pages MsgService.ShowSearch = true; // resetto search MsgService.SearchVal = ""; - ListAziende = await MDService.ElencoAziende(); - ListStati = await MDService.AnagStatiComm(); + //ListAziende = await MDService.ElencoAziende(); + //ListStati = await MDService.AnagStatiComm(); ListMacchine = await MDService.MacchineGetAll(); + ListFlux = await MDService.ParametriGetFilt(selMacchina); // carico dati await reloadData(); } - private string currAzienda { get; set; } = "*"; + private string currMacchina { get; set; } = "*"; private List? ListAziende; @@ -111,6 +113,8 @@ namespace MP.SPEC.Pages private List? ListMacchine; + private List? ListFlux; + #endregion Private Fields #region Private Properties @@ -131,7 +135,7 @@ namespace MP.SPEC.Pages set => MsgService.numRecord = value; } - private string selStato { get; set; } = "*"; + private string selMacchina { get; set; } = "*"; #if false private string selStato { @@ -172,6 +176,14 @@ namespace MP.SPEC.Pages { isLoading = true; await Task.Delay(1); + if (currMacchina != "*") + { + ListFlux = await MDService.ParametriGetFilt(selMacchina); + } + else + { + ListFlux = new List(); + } isLoading = false; }