Creazione pagina per la visualizzazione Dossier
con relativi filtri
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
using Microsoft.Data.SqlClient;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using MP.Data.DatabaseModels;
|
||||
using NLog;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text.Json;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MP.Data.Controllers
|
||||
@@ -310,6 +312,19 @@ namespace MP.Data.Controllers
|
||||
return ListLinkFilt("SpecLink");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Effettua deserializzaizone in fluxlog dei dati ricevuti come stringa json
|
||||
/// </summary>
|
||||
/// <param name="value"></param>
|
||||
/// <returns></returns>
|
||||
public List<DatabaseModels.FluxLog> convertToFluxLog(string value)
|
||||
{
|
||||
var fluxDeserialize = JsonSerializer.Deserialize<FluxLog>(value);
|
||||
List<DatabaseModels.FluxLog> listFlux = new List<DatabaseModels.FluxLog>();
|
||||
listFlux.Add(fluxDeserialize);
|
||||
return listFlux;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Elenco ultimi n record flux log dato macchina e flusso (ordinato x data registrazione)
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user