Aggiunto metodo caricamento CART

This commit is contained in:
Samuele E. Locatelli
2020-07-20 16:17:38 +02:00
parent 1202034f42
commit a1e964fd8f
5 changed files with 142 additions and 48 deletions
@@ -1,5 +1,6 @@
using AppData;
using NKC_SDK;
using SteamWare;
using System;
namespace NKC_WF.WebUserControls
@@ -286,6 +287,7 @@ namespace NKC_WF.WebUserControls
switch (tipoCod)
{
case codeType.OtherItem:
lastObject = "";
var tabOtherItem = DataLayer.man.taOtItem.getByKey(codeInt);
if (tabOtherItem.Count == 1)
{
@@ -293,6 +295,7 @@ namespace NKC_WF.WebUserControls
}
break;
case codeType.Item:
lastObject = "";
tabItem = DataLayer.man.taIL.getBySearch(codeInt, rawData, 0, 999);
if (tabItem.Count == 1)
{
@@ -304,6 +307,7 @@ namespace NKC_WF.WebUserControls
}
break;
case codeType.ItemGeneric:
lastObject = "";
// PRIMA CERCSE ne ho in stato 1..3
tabItem = DataLayer.man.taIL.getBySearch(0, rawData, 1, 3);
if (tabItem.Count == 0)
@@ -358,13 +362,14 @@ namespace NKC_WF.WebUserControls
{
var rigaCheck = tabPLCheck[0];
// verifico penalty (vedere stored: pezzi da leggere >= pezzi del cart...)
if(rigaCheck.NumPenalty==0)
if (rigaCheck.NumPenalty == 0)
{
// verifico se sia SECONDA lettura
if (lastObject == rawData)
{
// --> metto cart in scarico e registro LOG come se avesse appena letto 1:1 ogni Dtmx
displError($"OK: CART acquired {rawData}", true);
DataLayer.man.taPLog.acquireCart(rawData, currIpAddress(), user_std.UtSn.userNameAD);
displError($"OK: CART acquired {rawData} - item confirmed", true);
lastObject = "";
}
else
@@ -411,6 +416,7 @@ namespace NKC_WF.WebUserControls
#endif
break;
case codeType.Bin:
lastObject = "";
// verifico NON SIA richiesto PAINT
if (showCart)
{
@@ -436,6 +442,7 @@ namespace NKC_WF.WebUserControls
}
break;
default:
lastObject = "";
break;
}