From 93a4fa4d8ef07002c4b3b28acc2fe1df5b539836 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Mon, 30 Sep 2019 18:28:53 +0200 Subject: [PATCH] Aggiunta decodifica BP (bin PROCESSED) e sec screen --- AppData/DataLayer.cs | 18 ++++++++++++++++++ AppData/Utils.cs | 4 +++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/AppData/DataLayer.cs b/AppData/DataLayer.cs index f9412cb..251a865 100644 --- a/AppData/DataLayer.cs +++ b/AppData/DataLayer.cs @@ -139,6 +139,24 @@ namespace AppData answ.codeInt = codeInt; answ.description = $"Bin: {answ.code}"; } + else if (bcValue.StartsWith("BP")) + { + answ.codeType = codeType.BinProcessed; + answ.code = bcValue.Replace("BP", ""); + int codeInt = 0; + int.TryParse(answ.code, NumberStyles.HexNumber, CultureInfo.InvariantCulture, out codeInt); + answ.codeInt = codeInt; + answ.description = $"Processed Bin: {answ.code}"; + } + else if (bcValue.StartsWith("SS")) + { + answ.codeType = codeType.SecScreen; + answ.code = bcValue.Replace("SS", ""); + int codeInt = 0; + int.TryParse(answ.code, NumberStyles.HexNumber, CultureInfo.InvariantCulture, out codeInt); + answ.codeInt = codeInt; + answ.description = $"Secondary Screen : {answ.code}"; + } return answ; } diff --git a/AppData/Utils.cs b/AppData/Utils.cs index f031c53..78097ad 100644 --- a/AppData/Utils.cs +++ b/AppData/Utils.cs @@ -188,7 +188,9 @@ public enum codeType Stack, Batch, Cart, - Bin + Bin, + BinProcessed, + SecScreen } /// /// tipologia di report (FILE rdlc) gestito in stampa...