Aggiunta decodifica BP (bin PROCESSED) e sec screen

This commit is contained in:
Samuele E. Locatelli
2019-09-30 18:28:53 +02:00
parent f1465c2ca7
commit 93a4fa4d8e
2 changed files with 21 additions and 1 deletions
+18
View File
@@ -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;
}
+3 -1
View File
@@ -188,7 +188,9 @@ public enum codeType
Stack,
Batch,
Cart,
Bin
Bin,
BinProcessed,
SecScreen
}
/// <summary>
/// tipologia di report (FILE rdlc) gestito in stampa...