Update gestione allarmi: deduplica prima dir ecuperare

Update visualizzazione ordini (/mostra richiesta sel)
Update gestione buttons vari
This commit is contained in:
Samuele Locatelli
2025-10-15 16:02:20 +02:00
parent 45ecc0f796
commit 11751c2adb
12 changed files with 562 additions and 482 deletions
+24
View File
@@ -30,6 +30,30 @@ namespace GWMS.Data.Controllers
#region Public Methods
/// <summary>
/// Esegue pulizia allarmi impianto richiesto
/// </summary>
/// <param name="PlantId"></param>
/// <returns></returns>
public int AlarmLogCleanDup(int PlantId)
{
int numMod = 0;
using (GWMSContext localDbCtx = new GWMSContext(_configuration))
{
try
{
// eseguo stored
string sqlCommand = $"CALL stp_deleteDuplicatedAlarms ({PlantId});";
numMod = localDbCtx.Database.ExecuteSqlRaw(sqlCommand);
}
catch (Exception exc)
{
Log.Error($"Eccezione in AlarmLogCleanDup{Environment.NewLine}{exc}");
}
}
return numMod;
}
/// <summary>
/// Recupero elenco allarmi (ultimi?)
/// </summary>