Update selezione filtro tipo flusso in Trend

This commit is contained in:
Samuele Locatelli
2025-03-12 07:27:17 +01:00
parent e2d1a3f63e
commit d07747368a
16 changed files with 312 additions and 211 deletions
+21 -1
View File
@@ -296,13 +296,33 @@ namespace MP.Data.Controllers
.DbSetFL
.Where(x =>
(IdxMacchina == "*" || x.IdxMacchina == IdxMacchina)
&& (fluxType == "" || x.FluxType == fluxType)
&& (fluxType == "*" || x.FluxType == fluxType)
&& (x.dtEvento >= DtStart && x.dtEvento <= DtEnd))
.ToList();
}
return dbResult;
}
/// <summary>
/// Elenco di tipi flusso disponibili
/// </summary>
/// <returns></returns>
public List<string> FluxTypeList()
{
List<string> dbResult = new List<string>();
using (var dbCtx = new MoonPro_STATSContext(_configuration))
{
dbResult = dbCtx
.DbSetFL
.Select(x => x.FluxType)
.Distinct()
.OrderBy(x => x)
.ToList();
}
return dbResult;
}
/// <summary>
/// Elenco tabella ODL da filtro
/// </summary>