Update x log smart + traduzione LOAD

This commit is contained in:
Samuele E. Locatelli
2020-08-18 13:21:22 +02:00
parent b663a92d87
commit fbdbbdb4d4
3 changed files with 29 additions and 28 deletions
@@ -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();
}
}