Aggiunto metodo reset della chaive ODL corrente in redis in IO

This commit is contained in:
Samuele E. Locatelli
2018-07-18 12:08:35 +02:00
parent ca27b7deb7
commit 9e024e0534
2 changed files with 30 additions and 0 deletions
+11
View File
@@ -162,6 +162,17 @@ namespace MP_IO.Controllers
answ = "NO";
}
return answ;
}/// <summary>
/// Effettua RESET dell'ODL corrente x macchina:
///
/// GET: IOB/getCurrODL/5
///
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public string resetCurrODL(string id)
{
return DataLayer.emptyCurrODL(id);
}
/// <summary>
/// Recupera COUNTER x macchina:
+19
View File
@@ -864,6 +864,25 @@ namespace MapoDb
return answ;
}
/// <summary>
/// Rimuove Key dell'ODL corrente x una data macchina IOB
/// </summary>
/// <param name="idxMacchina"></param>
/// <returns></returns>
public static string emptyCurrODL(string idxMacchina)
{
string answ = "";
try
{
memLayer.ML.redDelKey(currODLHash(idxMacchina));
answ = "OK";
}
catch
{
answ = "KO";
}
return answ;
}
/// <summary>
/// Processa registrazione di un counter x una data macchina IOB
/// </summary>
/// <param name="idxMacchina"></param>