STATS:
- FluxType: aggiunto in modello - filtro x fluxType gestito - cablato x analysis il filtro a "Energy"
This commit is contained in:
@@ -284,8 +284,9 @@ namespace MP.Data.Controllers
|
||||
/// <param name="IdxMacchina">Macchina singola, se "" = tutte</param>
|
||||
/// <param name="DtStart">Data inizio selezione odl (inizio/fine)</param>
|
||||
/// <param name="DtEnd">Data fine selezione odl (inizio/fine)</param>
|
||||
/// <param name="fluxType">Tipo Flusso, "" = tutti</param>
|
||||
/// <returns></returns>
|
||||
public List<FLModel> FluxLogRawData(string IdxMacchina, DateTime DtStart, DateTime DtEnd)
|
||||
public List<FLModel> FluxLogRawData(string IdxMacchina, DateTime DtStart, DateTime DtEnd, string fluxType)
|
||||
{
|
||||
List<FLModel> dbResult = new List<FLModel>();
|
||||
using (var dbCtx = new MoonPro_STATSContext(_configuration))
|
||||
@@ -293,7 +294,10 @@ namespace MP.Data.Controllers
|
||||
|
||||
dbResult = dbCtx
|
||||
.DbSetFL
|
||||
.Where(x => (IdxMacchina=="*" || x.IdxMacchina == IdxMacchina) && (x.dtEvento >= DtStart && x.dtEvento <= DtEnd))
|
||||
.Where(x =>
|
||||
(IdxMacchina == "*" || x.IdxMacchina == IdxMacchina)
|
||||
&& (fluxType == "" || x.FluxType == fluxType)
|
||||
&& (x.dtEvento >= DtStart && x.dtEvento <= DtEnd))
|
||||
.ToList();
|
||||
}
|
||||
return dbResult;
|
||||
|
||||
Reference in New Issue
Block a user