Update gestione allarmi: deduplica prima dir ecuperare
Update visualizzazione ordini (/mostra richiesta sel) Update gestione buttons vari
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user