COmpletata modifica barcode x visual reset con css managed

This commit is contained in:
Samuele E. Locatelli
2020-08-19 17:57:44 +02:00
parent f3f22b52d5
commit 0e19ff4c4c
12 changed files with 120 additions and 88 deletions
@@ -62,12 +62,12 @@ namespace NKC_WF.WebUserControls
switch (decoData.codeType)
{
case codeType.UNK:
cmp_barcode.showOutput("text-danger", traduci("UnkownData"));
cmp_barcode.showOutput(cssClass.danger, traduci("UnkownData"));
doRaiseEv = true;
break;
case codeType.Item:
case codeType.ItemGeneric:
cmp_barcode.showOutput("text-warning", $"{traduci("Part")} - {traduci("Ignored")}");
cmp_barcode.showOutput(cssClass.warning, $"{traduci("Part")} - {traduci("Ignored")}");
doRaiseEv = true;
break;
case codeType.Material:
@@ -76,7 +76,7 @@ namespace NKC_WF.WebUserControls
// se tab vuota --> HO FINITO!!!!
if (nextTbl.Count == 0)
{
cmp_barcode.showOutput("badge badge-warning", $"{traduci("BunkCompleted")}, {decoData.description}");
cmp_barcode.showOutput(cssClass.warning, $"{traduci("BunkCompleted")}, {decoData.description}");
}
// se ho valori --> controllo se corretto...
else
@@ -84,27 +84,27 @@ namespace NKC_WF.WebUserControls
string codReq = nextTbl[0].MatExtCode.ToString();
if (codReq == decoData.codeInt.ToString())
{
cmp_barcode.showOutput("badge badge-success", $"{traduci("SheetRecorded")}: {decoData.description}");
cmp_barcode.showOutput(cssClass.success, $"{traduci("SheetRecorded")}: {decoData.description}");
// chiamo stored x indicare preparato
DLMan.taSHL.setPrepared(nextTbl[0].SheetID);
lgInfo($"cmpStackBuilding | taSHL.setPrepared | SheetID: {nextTbl[0].SheetID}");
}
else
{
cmp_barcode.showOutput("badge badge-danger", $"{traduci("WrongSheet")}: {decoData.description}");
cmp_barcode.showOutput(cssClass.danger, $"{traduci("WrongSheet")}: {decoData.description}");
}
}
break;
case codeType.Sheet:
cmp_barcode.showOutput("badge badge-warning", $"{traduci("Sheet")} - {traduci("Ignored")}");
cmp_barcode.showOutput(cssClass.warning, $"{traduci("Sheet")} - {traduci("Ignored")}");
doRaiseEv = true;
break;
case codeType.Stack:
cmp_barcode.showOutput("badge badge-warning", $"{traduci("Bunk")} - {traduci("Ignored")}");
cmp_barcode.showOutput(cssClass.warning, $"{traduci("Bunk")} - {traduci("Ignored")}");
doRaiseEv = true;
break;
case codeType.Batch:
cmp_barcode.showOutput("badge badge-warning", $"{traduci("Batch")} - {traduci("Ignored")}");
cmp_barcode.showOutput(cssClass.warning, $"{traduci("Batch")} - {traduci("Ignored")}");
doRaiseEv = true;
break;
default: