Aggiunto check force deroga

This commit is contained in:
Samuele Locatelli
2023-10-26 17:02:16 +02:00
parent 95913cd74e
commit 2e2ce2e9f3
10 changed files with 142 additions and 22 deletions
+18
View File
@@ -2,6 +2,7 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using MP.Data.DatabaseModels;
using MP.Data.Objects;
using NLog;
using System;
using System.Collections.Generic;
@@ -1248,6 +1249,23 @@ namespace MP.Data.Controllers
return dbResult;
}
public bool SetDerogaSt(StCheckOverride deroga)
{
bool fatto = false;
#if false
try
{
string keyDerogaST = memLayer.ML.redHash($"DerogaSt:{user_std.UtSn.utente}:{deroga.IdxST:000}");
string rawData = JsonConvert.SerializeObject(deroga);
memLayer.ML.setRSV(keyDerogaST, rawData, 60 * 2);
fatto = true;
}
catch
{ }
#endif
return fatto;
}
/// <summary>
/// Elenco causali scarto
/// </summary>