diff --git a/MP-MAG/SMART/PLScanner.aspx b/MP-MAG/SMART/PLScanner.aspx index 927435ab..f6eead91 100644 --- a/MP-MAG/SMART/PLScanner.aspx +++ b/MP-MAG/SMART/PLScanner.aspx @@ -5,7 +5,7 @@
- +
\ No newline at end of file diff --git a/MP-MAG/SMART/PLScanner.aspx.designer.cs b/MP-MAG/SMART/PLScanner.aspx.designer.cs index 5ef1773f..447324e7 100644 --- a/MP-MAG/SMART/PLScanner.aspx.designer.cs +++ b/MP-MAG/SMART/PLScanner.aspx.designer.cs @@ -1,10 +1,10 @@ //------------------------------------------------------------------------------ -// -// Codice generato da uno strumento. +// +// This code was generated by a tool. // -// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se -// il codice viene rigenerato. -// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// //------------------------------------------------------------------------------ namespace MP_MAG.SMART @@ -15,11 +15,11 @@ namespace MP_MAG.SMART { /// - /// Controllo cmp_PLScanner. + /// cmp_PLScanner control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::MP_MAG.WebUserControls.cmp_PLScanner cmp_PLScanner; } diff --git a/MP-MAG/WebUserControls/cmp_PLScanner.ascx.cs b/MP-MAG/WebUserControls/cmp_PLScanner.ascx.cs index 93ee88c2..4fc2352e 100644 --- a/MP-MAG/WebUserControls/cmp_PLScanner.ascx.cs +++ b/MP-MAG/WebUserControls/cmp_PLScanner.ascx.cs @@ -212,7 +212,7 @@ namespace MP_MAG.WebUserControls case codeType.Pedana: case codeType.Udc: cmp_barcode.showOutput("badge badge-success", $"{decoData.description}"); - processSuggestion(decoData.codeType, decoData.rawData, decoData.codeInt); + processSuggestion(decoData.codeType, decoData.rawData, decoData.code, decoData.codeInt); doRaiseEv = true; break; @@ -231,8 +231,9 @@ namespace MP_MAG.WebUserControls /// /// /// + /// /// - private void processSuggestion(codeType tipoCod, string rawData, int codeInt) + private void processSuggestion(codeType tipoCod, string rawData, string code, int codeInt) { bool allOk = false; // processo suggerimenti @@ -365,22 +366,22 @@ namespace MP_MAG.WebUserControls else { // verifico esista - var tabUDC = MagDataLayer.man.taEUdc.getByKey(rawData); + var tabUDC = MagDataLayer.man.taEUdc.getByKey(code); if (tabUDC.Rows.Count == 0) { - cmp_barcode.showOutput("badge badge-warning", $"Errore: UDC non trovato: {rawData}"); + cmp_barcode.showOutput("badge badge-warning", $"Errore: UDC non trovato: {code}"); } else { // ...e NON sia stato TRASFERITO if (tabUDC[0].IdxPosizione > 0) { - cmp_barcode.showOutput("badge badge-warning", $"Errore: UDC già trasferito: {rawData}"); + cmp_barcode.showOutput("badge badge-warning", $"Errore: UDC già trasferito: {code}"); } else { // cerco AL se sia quello selezionato... - var tabAL = MagDataLayer.man.taEAL.getByUdc(rawData); + var tabAL = MagDataLayer.man.taEAL.getByUdc(code); // se non trovo --> associo if (tabAL.Rows.Count == 0) { @@ -396,7 +397,7 @@ namespace MP_MAG.WebUserControls else { // se siamo in seconda lettura --> OK x spostamento - if (LastUDC == rawData) + if (LastUDC == code) { allOk = true; LastUDC = ""; @@ -411,8 +412,8 @@ namespace MP_MAG.WebUserControls // chiedo seconda lettura SE AL "libero" else { - cmp_barcode.showOutput("badge badge-info", $"Attenzione: UDC {rawData} già associato ad AL ({tabAL[0].AL}), rileggere per confermare ({SelPedana})"); - LastUDC = rawData; + cmp_barcode.showOutput("badge badge-info", $"Attenzione: UDC {code} già associato ad AL ({tabAL[0].AL}), rileggere per confermare ({SelPedana})"); + LastUDC = code; } } } @@ -421,7 +422,7 @@ namespace MP_MAG.WebUserControls // ...e seleziono udc if (allOk) { - SelUDC = rawData; + SelUDC = code; tryLinkAlUdc(); } }