Update x log smart + traduzione LOAD
This commit is contained in:
@@ -186,62 +186,58 @@ namespace NKC_WF.WebUserControls
|
||||
decodedData decoData = DataLayer.man.decodeBcode(lastCmd);
|
||||
switch (decoData.codeType)
|
||||
{
|
||||
case codeType.UNK:
|
||||
cmp_barcode.showOutput("text-danger", $"Unknown Data: {decoData.rawData} --> no action");
|
||||
resetDisplay(true);
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.Item:
|
||||
cmp_barcode.showOutput("badge badge-success", $"Valid IT Code: {decoData.rawData}");
|
||||
cmp_barcode.showOutput("badge badge-success", $"IT {traduci("ValidCode")}: {decoData.rawData}");
|
||||
processItemSuggestion(decoData.codeType, decoData.rawData, decoData.codeInt);
|
||||
break;
|
||||
case codeType.ItemGeneric:
|
||||
cmp_barcode.showOutput("badge badge-success", $"IG Code - ignored: {decoData.rawData}");
|
||||
cmp_barcode.showOutput("badge badge-success", $"{traduci("ItemGeneric")} - {traduci("Ignored")}: {decoData.rawData}");
|
||||
resetDisplay(true);
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.OtherItem:
|
||||
cmp_barcode.showOutput("badge badge-success", $"Generic PART Code - ignored: {decoData.rawData}");
|
||||
cmp_barcode.showOutput("badge badge-success", $"{traduci("OtherPart")} - {traduci("Ignored")}: {decoData.rawData}");
|
||||
resetDisplay(true);
|
||||
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}");
|
||||
resetDisplay(true);
|
||||
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}");
|
||||
resetDisplay(true);
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.Stack:
|
||||
cmp_barcode.showOutput("badge badge-warning", $"BUNK - ignored: {decoData.description}");
|
||||
cmp_barcode.showOutput("badge badge-warning", $"{traduci("Sheet")}BUNK - {traduci("Ignored")}: {decoData.description}");
|
||||
resetDisplay(true);
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.Batch:
|
||||
cmp_barcode.showOutput("badge badge-warning", $"BATCH - ignored: {decoData.description}");
|
||||
cmp_barcode.showOutput("badge badge-warning", $"{traduci("Sheet")}BATCH - {traduci("Ignored")}: {decoData.description}");
|
||||
resetDisplay(true);
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.Cart:
|
||||
cmp_barcode.showOutput("badge badge-warning", $"CART - ignored: {decoData.description}");
|
||||
cmp_barcode.showOutput("badge badge-warning", $"{traduci("Sheet")}CART - {traduci("Ignored")}: {decoData.description}");
|
||||
resetDisplay(true);
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.Bin:
|
||||
cmp_barcode.showOutput("badge badge-warning", $"BIN NOT PAINTED - Ignored: {decoData.description}");
|
||||
cmp_barcode.showOutput("badge badge-warning", $"{traduci("BinNotPainted")} - {traduci("Ignored")}: {decoData.description}");
|
||||
resetDisplay(true);
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.BinProcessed:
|
||||
cmp_barcode.showOutput("badge badge-warning", $"BIN PAINTED - ignored: {decoData.description}");
|
||||
cmp_barcode.showOutput("badge badge-warning", $"{traduci("BinPainted")} - {traduci("Ignored")}: {decoData.description}");
|
||||
resetDisplay(true);
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.UNK:
|
||||
default:
|
||||
cmp_barcode.showOutput("text-danger", $"Unknown Data: {decoData.rawData} --> no action");
|
||||
cmp_barcode.showOutput("text-danger", $"{traduci("UnknownData")}: {decoData.rawData} --> {traduci("NoValiAction")}");
|
||||
resetDisplay(true);
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
@@ -293,6 +289,8 @@ namespace NKC_WF.WebUserControls
|
||||
string printer = DataLayer.man.getPrinter("PC-MACHINE-PARTS");
|
||||
// mando stampa....
|
||||
bool fatto = DataLayer.man.stampaDoc(itemIdSelected.ToString(), printer, tipoDocumento.docPart, Request.UserHostName);
|
||||
|
||||
lgInfo($"PRINT req for labelsPrint | codeInt : {itemIdSelected} | currQueue: {printer} | tipoDoc: {tipoDocumento.docPart} | user: {Request.UserHostName} | IP: {currIpAddress}");
|
||||
if (fatto)
|
||||
{
|
||||
displInfo(traduci("PrintSendOk"), true);
|
||||
|
||||
@@ -84,10 +84,6 @@ namespace NKC_WF.WebUserControls
|
||||
decodedData decoData = DataLayer.man.decodeBcode(lastCmd);
|
||||
switch (decoData.codeType)
|
||||
{
|
||||
case codeType.UNK:
|
||||
cmp_barcode.showOutput("text-danger", $"Unknown Data: {decoData.rawData} --> no action");
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.Item:
|
||||
cmp_barcode.showOutput("badge badge-warning", $"{traduci("Item")} - {traduci("Ignored")}: {decoData.description}");
|
||||
doRaiseEv = true;
|
||||
@@ -157,8 +153,9 @@ namespace NKC_WF.WebUserControls
|
||||
cmp_barcode.showOutput("badge badge-warning", $"{traduci("SecScreen")} - {traduci("Ignored")}: {decoData.description}");
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
case codeType.UNK:
|
||||
default:
|
||||
cmp_barcode.showOutput("text-danger", $"{traduci("UnkownData")}: {decoData.rawData} --> no action");
|
||||
cmp_barcode.showOutput("text-danger", $"{traduci("UnknownData")}: {decoData.rawData} --> {traduci("NoValiAction")}");
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@ namespace NKC_WF.WebUserControls
|
||||
{ }
|
||||
if (tabStack != null && tabStack.Count == 0)
|
||||
{
|
||||
cmp_barcode.showOutput("badge badge-danger", $"BUNK NOT FOUND: {decoData.description}");
|
||||
cmp_barcode.showOutput("badge badge-danger", $"{traduci("ErrBunkNotFound")}: {decoData.description}");
|
||||
doRaiseEv = true;
|
||||
}
|
||||
else
|
||||
@@ -146,7 +146,7 @@ namespace NKC_WF.WebUserControls
|
||||
// verifico non sia già in lavorazione
|
||||
if (currentBunkAlreadyWorking(decoData.codeInt))
|
||||
{
|
||||
cmp_barcode.showOutput("badge badge-success", $"BUNK in processing, {decoData.rawData}");
|
||||
cmp_barcode.showOutput("badge badge-success", $"{traduci("ErrBunkInProc")}: {decoData.rawData}");
|
||||
doRaiseEv = true;
|
||||
}
|
||||
else
|
||||
@@ -157,7 +157,7 @@ namespace NKC_WF.WebUserControls
|
||||
// controllo se il bunk richiesto sia stato caricato coi materiali...
|
||||
if (!isBunkFilled(decoData.codeInt))
|
||||
{
|
||||
cmp_barcode.showOutput("badge badge-danger", $"NEXT BUNK NOT PREPARED, {decoData.rawData}");
|
||||
cmp_barcode.showOutput("badge badge-danger", $"{traduci("ErrNextBunkNotReady")}: {decoData.rawData}");
|
||||
doRaiseEv = true;
|
||||
}
|
||||
else
|
||||
@@ -165,7 +165,7 @@ namespace NKC_WF.WebUserControls
|
||||
// verifico SE i BUNKS correnti siano tutti stati completati (NumSheet == NumWorking)
|
||||
if (currentBunkPrinted)
|
||||
{
|
||||
cmp_barcode.showOutput("badge badge-success", $"BUNK OK, {decoData.rawData}");
|
||||
cmp_barcode.showOutput("badge badge-success", $"{traduci("BunkOK")}: {decoData.rawData}");
|
||||
ComLib.resetCurrBunk();
|
||||
ComLib.taktMLCurrBunk = decoData.codeInt.ToString();
|
||||
// processo DB e salvo che lo stack è stato caricato in MACHINE LOAD
|
||||
@@ -184,8 +184,11 @@ namespace NKC_WF.WebUserControls
|
||||
if (stackId > 0)
|
||||
{
|
||||
DataLayer.man.taSTL.updatePos(stackId, 5);
|
||||
lgInfo($"cmp_stackLoading| taSTL.updatePos | POS --> 5 | stackId: {stackId}");
|
||||
|
||||
// controllo status del bunk nel suo insieme...
|
||||
ComLib.updateBatchPositionByBunk(stackId);
|
||||
lgInfo($"cmp_stackLoading| updateBatchPositionByBunk | stackId: {stackId}");
|
||||
doRaiseEv = true;
|
||||
}
|
||||
ComLib.setReloadMU();
|
||||
@@ -193,21 +196,21 @@ namespace NKC_WF.WebUserControls
|
||||
// altrimenti segnalo NON pronto x caricare prossimo
|
||||
else
|
||||
{
|
||||
cmp_barcode.showOutput("badge badge-danger", $"PREV BUNK NOT COMPLETED, {decoData.rawData}");
|
||||
cmp_barcode.showOutput("badge badge-danger", $"{traduci("ErrPrevBunkNotReady")}: {decoData.rawData}");
|
||||
doRaiseEv = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
cmp_barcode.showOutput("badge badge-danger", $"WRONG BUNK, {decoData.rawData}");
|
||||
cmp_barcode.showOutput("badge badge-danger", $"{traduci("ErrWrongBunk")}: {decoData.rawData}");
|
||||
doRaiseEv = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
cmp_barcode.showOutput("text-danger", $"Data Ignored: {decoData.rawData} --> no action");
|
||||
cmp_barcode.showOutput("text-danger", $"{traduci("UnknownData")}: {decoData.rawData} --> {traduci("NoValiAction")}");
|
||||
doRaiseEv = true;
|
||||
break;
|
||||
}
|
||||
@@ -307,14 +310,17 @@ namespace NKC_WF.WebUserControls
|
||||
{
|
||||
int stackIdCurr = currStack[0].StackID;
|
||||
DataLayer.man.taSHL.advanceInStack(stackIdCurr);
|
||||
lgInfo($"cmp_unloadSmart | MANUAL FORCED DATA | taSHL.advanceInStack | stackIdCurr: {stackIdCurr}");
|
||||
}
|
||||
doUpdate();
|
||||
cmp_stackNextloading.doUpdate();
|
||||
// segnalo avanzamento su redis x pagina unload
|
||||
ComLib.advaceSheetRevByBunk(BatchIdCurr);
|
||||
lgInfo($"cmp_unloadSmart | MANUAL FORCED DATA | ComLib.advaceSheetRevByBunk | BatchIdCurr: {BatchIdCurr}");
|
||||
ComLib.setReloadMU();
|
||||
// controllo update stato BATCH/BUNK
|
||||
ComLib.updateBatchPosition(BatchIdCurr);
|
||||
lgInfo($"cmp_unloadSmart | MANUAL FORCED DATA | ComLib.updateBatchPosition | BatchIdCurr: {BatchIdCurr}");
|
||||
raiseEvent();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user