Update x visualizzazione avanzamento LOAD
This commit is contained in:
@@ -62,6 +62,7 @@ namespace NKC_WF.WebUserControls
|
||||
}
|
||||
private void Cmp_barcode_eh_doRefresh(object sender, EventArgs e)
|
||||
{
|
||||
bool doRaiseEv = false;
|
||||
// processo evento..
|
||||
lastCmd = cmp_barcode.inputAcquired.ToUpper();
|
||||
// processiamo barcode letto
|
||||
@@ -85,19 +86,37 @@ namespace NKC_WF.WebUserControls
|
||||
DS_App.StackListDataTable tabStack = DataLayer.man.taSTL.getByKey(decoData.codeInt);
|
||||
if (tabStack.Count == 0)
|
||||
{
|
||||
cmp_barcode.showOutput("badge badge-danger", $"STACK NOT FOUND, {decoData.description}");
|
||||
cmp_barcode.showOutput("badge badge-danger", $"BUNK NOT FOUND, {decoData.description}");
|
||||
}
|
||||
else
|
||||
{
|
||||
// controllo sia quello RICHIESTO, eventualemtne permetteremo TUTTI quelli del giorno in ogni ordine...
|
||||
if (decoData.codeInt == cmp_stackNextloading.StackIdReq)
|
||||
{
|
||||
cmp_barcode.showOutput("badge badge-success", $"STACK OK, {decoData.description}");
|
||||
cmp_barcode.showOutput("badge badge-success", $"BUNK OK, {decoData.rawData}");
|
||||
ComLib.taktMLCurrStack = decoData.code;
|
||||
// processo DB e salvbo che lo stack è stato caricato in MACHINE LOAD
|
||||
int stackId = 0;
|
||||
try
|
||||
{
|
||||
var tabStacks = DataLayer.man.taSTL.getByDtmx(decoData.rawData);
|
||||
if (tabStack.Count == 1)
|
||||
{
|
||||
stackId = tabStack[0].StackID;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// SE HO uno stackId valido (>0)...
|
||||
if (stackId > 0)
|
||||
{
|
||||
DataLayer.man.taSTL.updatePos(stackId, 5);
|
||||
doRaiseEv = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
cmp_barcode.showOutput("badge badge-danger", $"WRONG STACK, {decoData.description}");
|
||||
cmp_barcode.showOutput("badge badge-danger", $"WRONG BUNK, {decoData.rawData}");
|
||||
}
|
||||
}
|
||||
//DS_App.SheetListDataTable nextTbl = DataLayer.man.taSHL.getNextByStack(StackId);
|
||||
@@ -134,6 +153,11 @@ namespace NKC_WF.WebUserControls
|
||||
cmp_barcode.inputAcquired = "";
|
||||
// aggiorno...
|
||||
doUpdate();
|
||||
// se richiesto faccio raiseEvent
|
||||
if(doRaiseEv)
|
||||
{
|
||||
raiseEvent();
|
||||
}
|
||||
}
|
||||
|
||||
protected void checkVisibility()
|
||||
|
||||
Reference in New Issue
Block a user