update x recupero altri BATCH splitted

This commit is contained in:
Samuele Locatelli
2021-06-14 12:24:41 +02:00
parent 769a2d8f4c
commit 099eaebaa8
4 changed files with 117 additions and 50 deletions
+3 -4
View File
@@ -479,10 +479,8 @@ namespace NKC_WF.Controllers
// NKC2: se è un batch ti dipo descendant
if (ComLib.BType(rispNest.BatchID) == BatchType.Descendant)
{
// verifico se ce ne siano altri NON validati
// invio il PRIMO batch descendant
var tabDesc = ComLib.BatchDescendant(rispNest.BatchID);
// verifico se ce ne siano altri NON validati (ma splitted)
var tabDesc = ComLib.BatchOtherDescendant(rispNest.BatchID);
if (tabDesc != null && tabDesc.Count > 0)
{
// ciclo x tutte le righe che NON fossero con nesting effettuato
@@ -491,6 +489,7 @@ namespace NKC_WF.Controllers
// se NON effettuato
if (item.STATUS == 2)
{
// invio il PRIMO batch descendant
ComLib.sendBatchReq(item.BatchID, "Nesting", 2, false);
// registro su DB nesting iniziato...
DLMan.taBL.updateStatus(item.BatchID, (int)BatchStatus.NestRequested, "", -1);