Aggiunto metodo reset della chaive ODL corrente in redis in IO
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user