Update gestione doppia lettura UDC evitato con redis cache

This commit is contained in:
Samuele Locatelli
2022-03-31 18:24:43 +02:00
parent c5d90ad386
commit 5b9ab2ecdd
2 changed files with 835 additions and 809 deletions
+28 -2
View File
@@ -1,4 +1,5 @@
using MagData;
using SteamWare;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -120,6 +121,21 @@ namespace MP_MAG.WebUserControls
}
}
/// <summary>
/// UDC appena processato (in redis x 1 sec)
/// </summary>
protected string ProcUDC
{
get
{
return memLayer.ML.getRSV("LastProcUdc");
}
set
{
memLayer.ML.setRSV("LastProcUdc", value, 1);
}
}
#endregion Protected Properties
#region Private Methods
@@ -335,8 +351,17 @@ namespace MP_MAG.WebUserControls
// se uguale OK
else if (tabAL[0].AL == SelPedana)
{
// 2022.03.25 modifica: se è già associato --> giallo!
cmp_barcode.showOutput("badge badge-warning", $"Attenzione: UDC già caricato su Pedana/AL ({tabAL[0].AL})");
// se siamo in seconda lettura --> OK x spostamento
if (ProcUDC == code)
{
allOk = true;
//LastUDC = "";
}
else
{
// 2022.03.25 modifica: se è già associato --> giallo!
cmp_barcode.showOutput("badge badge-warning", $"Attenzione: UDC già caricato su Pedana/AL ({tabAL[0].AL})");
}
#if false
// tutto ok
allOk = true;
@@ -371,6 +396,7 @@ namespace MP_MAG.WebUserControls
if (allOk)
{
SelUDC = code;
ProcUDC = code;
tryLinkAlUdc();
}
}
+807 -807
View File
File diff suppressed because it is too large Load Diff