modifiche per grafica pagina PARAMS
This commit is contained in:
@@ -13,7 +13,7 @@ else
|
||||
{
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<table class="table table-sm table-striped">
|
||||
<table class="table table-sm table-striped small">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
@@ -22,7 +22,7 @@ else
|
||||
<th>Data</th>
|
||||
<th>Macchina</th>
|
||||
<th>Flusso</th>
|
||||
<th>Valore</th>
|
||||
<th style="text-align: right">Valore</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -42,8 +42,8 @@ else
|
||||
<td>
|
||||
@record.CodFlux
|
||||
</td>
|
||||
<td>
|
||||
@record.Valore
|
||||
<td style="text-align: right">
|
||||
<b>@record.Valore</b>
|
||||
</td>
|
||||
<td>
|
||||
@*@if (ArticoloDelEnabled(record.CodArticolo))
|
||||
|
||||
@@ -131,8 +131,6 @@ namespace MP.SPEC.Components
|
||||
|
||||
private List<FluxLog>? SearchRecords;
|
||||
|
||||
private List<FluxLog>? a;
|
||||
|
||||
#endregion Private Fields
|
||||
|
||||
#region Private Properties
|
||||
|
||||
+18
-19
@@ -4,10 +4,14 @@
|
||||
<div class="card-header table-primary">
|
||||
<div class="row">
|
||||
<div class="col-5">
|
||||
<div class="d-flex justify-content-between">
|
||||
<div class="d-flex justify-content-around">
|
||||
<div class="px-2">
|
||||
<h3><b>PARAMETERS</b></h3>
|
||||
<h3><b>PARAMETERS</b></h3>
|
||||
</div>
|
||||
<button class="btn btn-primary" type="button" >
|
||||
<span class="spinner-grow spinner-grow-sm" role="status" aria-hidden="true"></span>
|
||||
Valori live
|
||||
</button>
|
||||
<div class="px-2">
|
||||
@*<button class="btn btn-success" disabled="!@addEnabled" @onclick="() => reqNewPODL()">Nuovo ODL <i class="bi bi-plus-square"></i></button>*@
|
||||
</div><div class="px-2">
|
||||
@@ -25,7 +29,7 @@
|
||||
@*</div>*@
|
||||
</div>
|
||||
<div class="px-2">
|
||||
<select @bind="@selStato" class="form-select">
|
||||
<select @bind="@selMacchina" class="form-select">
|
||||
<option value="*">--- Tutti ---</option>
|
||||
@if (ListMacchine != null)
|
||||
{
|
||||
@@ -36,30 +40,25 @@
|
||||
}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@*@if (reqNew)
|
||||
{
|
||||
<div class="d-flex justify-content-around">
|
||||
<div class="px-2">
|
||||
<div class="input-group input-group-sm">
|
||||
<span class="input-group-text" id="inputGroup-sizing-sm">Azienda</span>
|
||||
<select @bind="@currAzienda" class="form-select">
|
||||
@if (ListAziende != null)
|
||||
<div class="px-2">
|
||||
<select @bind="@selMacchina" class="form-select">
|
||||
<option value="*">--- Tutti ---</option>
|
||||
@if (ListFlux != null)
|
||||
{
|
||||
foreach (var item in ListAziende.Where(x => x.CodGruppo != "*").ToList())
|
||||
foreach (var item in ListFlux)
|
||||
{
|
||||
<option value="@item.CodGruppo">@item.DescrGruppo</option>
|
||||
<option value="@item">@item</option>
|
||||
}
|
||||
}
|
||||
</select>
|
||||
<span class="input-group-text" id="inputGroup-sizing-sm">Art Search</span>
|
||||
<input type="text" class="form-control" aria-label="Art search" aria-describedby="inputGroup-sizing-sm">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@*@if (reqNew)
|
||||
{
|
||||
|
||||
</div>
|
||||
<div class="d-flex justify-content-around">
|
||||
<div class="px-2">
|
||||
<div class="input-group input-group-sm">
|
||||
|
||||
@@ -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<MP.Data.DatabaseModels.AnagGruppi>? ListAziende;
|
||||
|
||||
@@ -111,6 +113,8 @@ namespace MP.SPEC.Pages
|
||||
|
||||
private List<MP.Data.DatabaseModels.Macchine>? ListMacchine;
|
||||
|
||||
private List<string>? 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<string>();
|
||||
}
|
||||
isLoading = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user