info + refresh post udpate barcode
This commit is contained in:
@@ -67,28 +67,33 @@ namespace NKC_WF.WebUserControls
|
||||
bool doRaiseEv = false;
|
||||
// processo evento..
|
||||
lastCmd = cmp_barcode.inputAcquired.ToUpper();
|
||||
if (lastCmd == "") doRaiseEv = true;
|
||||
// processiamo barcode letto
|
||||
decodedData decoData = DataLayer.man.decodeBcode(lastCmd);
|
||||
switch (decoData.codeType)
|
||||
{
|
||||
case codeType.UNK:
|
||||
cmp_barcode.showOutput("text-danger", "Unknown Data");
|
||||
cmp_barcode.showOutput("text-danger", $"Unknown Data: {decoData.rawData} --> no action");
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.Item:
|
||||
cmp_barcode.showOutput("text-warning", "Item - ignored");
|
||||
cmp_barcode.showOutput("text-warning", $"Item - ignored: {decoData.description}");
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.Material:
|
||||
cmp_barcode.showOutput("badge badge-warning", $"Material - ignored, {decoData.description}");
|
||||
cmp_barcode.showOutput("badge badge-warning", $"Material - ignored: {decoData.description}");
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.Sheet:
|
||||
cmp_barcode.showOutput("badge badge-warning", "Sheet - ignored");
|
||||
cmp_barcode.showOutput("badge badge-warning", $"Sheet - ignored: {decoData.description}");
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.Stack:
|
||||
// verifico SE lo stack esista...
|
||||
DS_App.StackListDataTable tabStack = DataLayer.man.taSTL.getByKey(decoData.codeInt);
|
||||
if (tabStack.Count == 0)
|
||||
{
|
||||
cmp_barcode.showOutput("badge badge-danger", $"BUNK NOT FOUND, {decoData.description}");
|
||||
cmp_barcode.showOutput("badge badge-danger", $"BUNK NOT FOUND: {decoData.description}");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -146,9 +151,11 @@ namespace NKC_WF.WebUserControls
|
||||
//cmp_barcode.showOutput("badge badge-warning", "Stack - ignored");
|
||||
break;
|
||||
case codeType.Batch:
|
||||
cmp_barcode.showOutput("badge badge-warning", "Batch - ignored");
|
||||
cmp_barcode.showOutput("badge badge-warning", $"Batch - ignored: {decoData.description}");
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
default:
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
}
|
||||
// reset comando
|
||||
|
||||
Reference in New Issue
Block a user