Aggiunta metodi x scrivere su REDIS lo Stack in corso x MachineLoad

This commit is contained in:
Samuele E. Locatelli
2019-09-03 19:09:09 +02:00
parent edf17333c3
commit e88183d18e
3 changed files with 55 additions and 26 deletions
+27 -21
View File
@@ -81,7 +81,6 @@ namespace NKC_WF.WebUserControls
cmp_barcode.showOutput("badge badge-warning", "Sheet - ignored");
break;
case codeType.Stack:
// verifico SE lo stack esista...
DS_App.StackListDataTable tabStack = DataLayer.man.taSTL.getByKey(decoData.codeInt);
if (tabStack.Count == 0)
@@ -90,33 +89,40 @@ namespace NKC_WF.WebUserControls
}
else
{
}
DS_App.SheetListDataTable nextTbl = DataLayer.man.taSHL.getNextByStack(StackId);
// se tab vuota --> HO FINITO!!!!
if (nextTbl.Count == 0)
{
cmp_barcode.showOutput("badge badge-warning", $"STACK IS COMPLETED, {decoData.description}");
}
// se ho valori --> controllo se corretto...
else
{
string codReq = nextTbl[0].MatExtCode.ToString();
if (codReq == decoData.codeInt.ToString())
// 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", $"SHEET RECORDED: {decoData.description}");
// chiamo stored x indicare preparato
DataLayer.man.taSHL.setPrepared(nextTbl[0].SheetID);
cmp_barcode.showOutput("badge badge-success", $"STACK OK, {decoData.description}");
ComLib.taktMLCurrStack = decoData.code;
}
else
{
cmp_barcode.showOutput("badge badge-danger", $"WRONG SHEET: {decoData.description}");
cmp_barcode.showOutput("badge badge-danger", $"WRONG STACK, {decoData.description}");
}
}
//DS_App.SheetListDataTable nextTbl = DataLayer.man.taSHL.getNextByStack(StackId);
//// se tab vuota --> HO FINITO!!!!
//if (nextTbl.Count == 0)
//{
// cmp_barcode.showOutput("badge badge-warning", $"STACK IS COMPLETED, {decoData.description}");
//}
//// se ho valori --> controllo se corretto...
//else
//{
// string codReq = nextTbl[0].MatExtCode.ToString();
// if (codReq == decoData.codeInt.ToString())
// {
// cmp_barcode.showOutput("badge badge-success", $"SHEET RECORDED: {decoData.description}");
// // chiamo stored x indicare preparato
// DataLayer.man.taSHL.setPrepared(nextTbl[0].SheetID);
// }
// else
// {
// cmp_barcode.showOutput("badge badge-danger", $"WRONG SHEET: {decoData.description}");
// }
//}
cmp_barcode.showOutput("badge badge-warning", "Stack - ignored");
//cmp_barcode.showOutput("badge badge-warning", "Stack - ignored");
break;
case codeType.Batch:
cmp_barcode.showOutput("badge badge-warning", "Batch - ignored");