Update log x painting
This commit is contained in:
@@ -66,10 +66,6 @@ namespace NKC_WF.WebUserControls
|
||||
|
||||
private void doUpdate()
|
||||
{
|
||||
#if false
|
||||
cmp_paint_binsIN.doUpdate();
|
||||
cmp_paint_binsOUT.doUpdate();
|
||||
#endif
|
||||
}
|
||||
|
||||
private void Cmp_barcode_eh_doRefresh(object sender, EventArgs e)
|
||||
@@ -93,31 +89,31 @@ namespace NKC_WF.WebUserControls
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.Item:
|
||||
cmp_barcode.showOutput("badge badge-warning", $"Item - ignored: {decoData.description}");
|
||||
cmp_barcode.showOutput("badge badge-warning", $"{traduci("Item")} - {traduci("Ignored")}: {decoData.description}");
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.ItemGeneric:
|
||||
cmp_barcode.showOutput("badge badge-warning", $"Item Generic - ignored: {decoData.description}");
|
||||
cmp_barcode.showOutput("badge badge-warning", $"{traduci("ItemGeneric")} - {traduci("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", $"{traduci("Material")} - {traduci("Ignored")}: {decoData.description}");
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.Sheet:
|
||||
cmp_barcode.showOutput("badge badge-warning", $"Sheet - ignored: {decoData.description}");
|
||||
cmp_barcode.showOutput("badge badge-warning", $"{traduci("Sheet")} - {traduci("Ignored")}: {decoData.description}");
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.Stack:
|
||||
cmp_barcode.showOutput("badge badge-warning", $"BUNK - ignored: {decoData.description}");
|
||||
cmp_barcode.showOutput("badge badge-warning", $"{traduci("Bunk")} - {traduci("Ignored")}: {decoData.description}");
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.Batch:
|
||||
cmp_barcode.showOutput("badge badge-warning", $"Batch - ignored: {decoData.description}");
|
||||
cmp_barcode.showOutput("badge badge-warning", $"{traduci("Batch")} - {traduci("Ignored")}: {decoData.description}");
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.Cart:
|
||||
cmp_barcode.showOutput("badge badge-warning", $"Cart - ignored: {decoData.description}");
|
||||
cmp_barcode.showOutput("badge badge-warning", $"{traduci("Cart")} - {traduci("Ignored")}: {decoData.description}");
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.Bin:
|
||||
@@ -135,7 +131,7 @@ namespace NKC_WF.WebUserControls
|
||||
// ora confronto cmd con ultimo valido
|
||||
if (lastValidCmd != lastCmd)
|
||||
{
|
||||
cmp_barcode.showOutput("badge badge-success", $"Valid BN Code: {decoData.description}");
|
||||
cmp_barcode.showOutput("badge badge-success", $"{traduci("ValiBnCode")}: {decoData.description}");
|
||||
// salvo
|
||||
lastValidCmd = lastCmd;
|
||||
}
|
||||
@@ -149,20 +145,20 @@ namespace NKC_WF.WebUserControls
|
||||
}
|
||||
else
|
||||
{
|
||||
cmp_barcode.showOutput("badge badge-danger", $"{decoData.description} --> no valid action");
|
||||
cmp_barcode.showOutput("badge badge-danger", $"{decoData.description} --> {traduci("NoValiAction")}");
|
||||
}
|
||||
lbtConfirmPaint.Visible = allOk;
|
||||
break;
|
||||
case codeType.BinProcessed:
|
||||
cmp_barcode.showOutput("text-danger", $"BinProcessed - ignored: {decoData.rawData} --> no action");
|
||||
cmp_barcode.showOutput("text-danger", $"{traduci("BinProcessed")} - {traduci("Ignored")}: {decoData.rawData} --> no action");
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.SecScreen:
|
||||
cmp_barcode.showOutput("badge badge-warning", $"SecScreen - ignored: {decoData.description}");
|
||||
cmp_barcode.showOutput("badge badge-warning", $"{traduci("SecScreen")} - {traduci("Ignored")}: {decoData.description}");
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
default:
|
||||
cmp_barcode.showOutput("text-danger", $"Unknown Data: {decoData.rawData} --> no action");
|
||||
cmp_barcode.showOutput("text-danger", $"{traduci("UnkownData")}: {decoData.rawData} --> no action");
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
}
|
||||
@@ -182,6 +178,7 @@ namespace NKC_WF.WebUserControls
|
||||
// chiamo procedura stampa report x BIN pitturati
|
||||
string printer = DataLayer.man.getPrinter("PC-MACHINE-PAINT-STATION");
|
||||
DataLayer.man.stampaDoc(decoData.codeInt.ToString(), printer, tipoDocumento.docBinPost, Request.UserHostName);
|
||||
lgInfo($"PRINT req for BIN | codeInt : {decoData.codeInt} | currQueue: {printer} | tipoDoc: {tipoDocumento.docBinPost} | user: {Request.UserHostName} | IP: {currIpAddress}");
|
||||
}
|
||||
|
||||
private void executePaintConfirm()
|
||||
@@ -190,10 +187,11 @@ namespace NKC_WF.WebUserControls
|
||||
decodedData decoData = DataLayer.man.decodeBcode(lastValidCmd);
|
||||
// lo indico come painted (update dtPainted)
|
||||
DataLayer.man.taBN.updatePainted(decoData.codeInt, DateTime.Now);
|
||||
lgInfo($"cmp_paintingSmart | executePaintConfirm | codeInt: {decoData.codeInt} | raw: {decoData.rawData}");
|
||||
printNewLabel(decoData);
|
||||
// update tabelle!
|
||||
doUpdate();
|
||||
cmp_barcode.showOutput("badge badge-success", $"Paint confirmed: {decoData.description}");
|
||||
cmp_barcode.showOutput("badge badge-success", $"{traduci("PaintConfirmed")}: {decoData.description}");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user