From a4b3d481ca1a3819d0cc6e5e3aa12ae9c822bd75 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 24 Sep 2019 16:45:32 +0200 Subject: [PATCH] info + refresh post udpate barcode --- .../WebUserControls/cmp_stackLoading.ascx.cs | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/NKC_WF/WebUserControls/cmp_stackLoading.ascx.cs b/NKC_WF/WebUserControls/cmp_stackLoading.ascx.cs index 36dc1a0..e3c5889 100644 --- a/NKC_WF/WebUserControls/cmp_stackLoading.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_stackLoading.ascx.cs @@ -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