Update gestione doppia lettura UDC evitato con redis cache
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+807
-807
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user