Aggiunta preliminare repository x nuove tab statistiche
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using EgwCoreLib.Utils;
|
||||
using MP.Data.DbModels.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MP.Data.Repository.Utils
|
||||
{
|
||||
/// <summary>
|
||||
/// Gestione statistica StatusCode HTML
|
||||
/// </summary>
|
||||
public interface IStatsCodeRepository
|
||||
{
|
||||
/// <summary>
|
||||
/// Recupera l'elenco delle statistiche StatusCode per un periodo specifico.
|
||||
/// </summary>
|
||||
/// <param name="dtStart">La data di inizio del periodo.</param>
|
||||
/// <param name="dtEnd">La data di fine del periodo.</param>
|
||||
/// <returns>L'elenco delle statistiche aggregate ordinate cronologicamente.</returns>
|
||||
Task<List<StatsStatusCodeModel>> GetFiltAsync(DateTime dtStart, DateTime dtEnd);
|
||||
|
||||
/// <summary>
|
||||
/// Recupera l'intervallo temporale disponibile nel database per le statistiche StatusCode.
|
||||
/// </summary>
|
||||
/// <returns>L'intervallo di date (minima e massima ora presente).</returns>
|
||||
Task<DtUtils.Periodo> GetRangeAsync();
|
||||
|
||||
/// <summary>
|
||||
/// Inserisce o aggiorna in blocco le statistiche StatusCode nel database.
|
||||
/// </summary>
|
||||
/// <param name="listRecords">L'elenco dei record da inserire.</param>
|
||||
/// <param name="removeOld">Se true, elimina preventivamente i record nel periodo richiesto.</param>
|
||||
/// <returns>Il numero di record inseriti.</returns>
|
||||
Task<int> UpsertManyAsync(List<StatsStatusCodeModel> listRecords, bool removeOld);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using EgwCoreLib.Utils;
|
||||
using MP.Data.DbModels.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MP.Data.Repository.Utils
|
||||
{
|
||||
/// <summary>
|
||||
/// Gestione statistiche errori
|
||||
/// </summary>
|
||||
public interface IStatsErrRepository
|
||||
{
|
||||
/// <summary>
|
||||
/// Recupera l'elenco delle statistiche errori per un periodo specifico.
|
||||
/// </summary>
|
||||
/// <param name="dtStart">La data di inizio del periodo.</param>
|
||||
/// <param name="dtEnd">La data di fine del periodo.</param>
|
||||
/// <returns>L'elenco delle statistiche errori ordinate cronologicamente.</returns>
|
||||
Task<List<StatsErrorModel>> GetFiltAsync(DateTime dtStart, DateTime dtEnd);
|
||||
|
||||
/// <summary>
|
||||
/// Recupera l'intervallo temporale disponibile nel database per le statistiche errore.
|
||||
/// </summary>
|
||||
/// <returns>L'intervallo di date (minima e massima ora presente).</returns>
|
||||
Task<DtUtils.Periodo> GetRangeAsync();
|
||||
|
||||
/// <summary>
|
||||
/// Inserisce o aggiorna in blocco le statistiche errore nel database.
|
||||
/// </summary>
|
||||
/// <param name="listRecords">L'elenco dei record da inserire.</param>
|
||||
/// <param name="removeOld">Se true, elimina preventivamente i record nel periodo richiesto.</param>
|
||||
/// <returns>Il numero di record inseriti.</returns>
|
||||
Task<int> UpsertManyAsync(List<StatsErrorModel> listRecords, bool removeOld);
|
||||
}
|
||||
}
|
||||
@@ -4054,7 +4054,7 @@ namespace MP.IOC.Data
|
||||
{
|
||||
Log.Info($"upsertCurrObjItems | idxMacchina: {idxMacchina} | {innovations.Count} innovations");
|
||||
// leggo i valori attuali...
|
||||
List<ObjItemDTO> actValues = MachineParamList(idxMacchina);
|
||||
List<ObjItemDTO> actValues = await MachineParamListAsync(idxMacchina);
|
||||
// per ogni valOut passatomi faccio insert o update rispetto elenco valori correnti in REDIS
|
||||
foreach (var item in actValues)
|
||||
{
|
||||
@@ -4078,7 +4078,7 @@ namespace MP.IOC.Data
|
||||
string serVal = JsonConvert.SerializeObject(innovations);
|
||||
|
||||
var currKey = Utils.RedKeyCurrObjItems(idxMacchina, MpIoNS);
|
||||
RedisValue rawData = redisDb.StringSet(currKey, serVal);
|
||||
RedisValue rawData = await redisDb.StringSetAsync(currKey, serVal);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<RootNamespace>MP.RIOC</RootNamespace>
|
||||
<Version>8.16.2605.1108</Version>
|
||||
<Version>8.16.2605.1109</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>Modulo MP-RIOC </i>
|
||||
<h4>Versione: 8.16.2605.1108</h4>
|
||||
<h4>Versione: 8.16.2605.1109</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
8.16.2605.1108
|
||||
8.16.2605.1109
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>8.16.2605.1108</version>
|
||||
<version>8.16.2605.1109</version>
|
||||
<url>https://nexus.steamware.net/repository/SWS/MP-RIOC/stable/LAST/MP.RIOC.zip</url>
|
||||
<changelog>https://nexus.steamware.net/repository/SWS/MP-RIOC/stable/LAST/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
Reference in New Issue
Block a user