Completato fix x reset errori stima/nesting
This commit is contained in:
@@ -104,7 +104,7 @@ namespace NKC_WF.WebUserControls
|
||||
{
|
||||
// ri-assegnazione ordini/kit a batch ancestor
|
||||
DLMan.taOLT.setBatchSplit(BatchId, false);
|
||||
// registro accettazione Nesting
|
||||
// registro reset Nesting
|
||||
DLMan.taBL.refuseNesting(BatchId, DLMan.CodSoggCurrUser);
|
||||
raiseEvent();
|
||||
}
|
||||
@@ -115,11 +115,38 @@ namespace NKC_WF.WebUserControls
|
||||
ComLib.sendMaterials();
|
||||
ComLib.sendBatchReq(BatchId, "Estimation", 3, false, 0);
|
||||
|
||||
|
||||
// ri-assegnazione ordini/kit a batch ancestor
|
||||
if (BatchIsAncestor)
|
||||
{
|
||||
DLMan.taOLT.setBatchSplit(BatchId, false);
|
||||
// registro reset Nesting
|
||||
DLMan.taBL.refuseNesting(BatchId, DLMan.CodSoggCurrUser);
|
||||
// resetto i batch child a 0 se presenti
|
||||
resetChildBatch();
|
||||
// elimino gli orderExtTree
|
||||
DLMan.taOLT.deleteByBatch(BatchId);
|
||||
}
|
||||
|
||||
// registro su DB nesting iniziato...
|
||||
DLMan.taBL.updateStatus(BatchId, (int)BatchStatus.EstimationRequested, "", 0);
|
||||
raiseEvent();
|
||||
}
|
||||
|
||||
private void resetChildBatch()
|
||||
{
|
||||
var tabDesc = ComLib.BatchDescendant(BatchId);
|
||||
if (tabDesc != null && tabDesc.Count > 0)
|
||||
{
|
||||
foreach (var item in tabDesc)
|
||||
{
|
||||
DLMan.taBL.updateStatus(item.BatchID, (int)BatchStatus.Imported, "", -1);
|
||||
// elimino order tree eventuale...
|
||||
DLMan.taOLT.deleteByBatch(item.BatchID);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void lbtSendNesting_Click(object sender, EventArgs e)
|
||||
{
|
||||
// invia a redis a a richiesta...
|
||||
@@ -150,14 +177,7 @@ namespace NKC_WF.WebUserControls
|
||||
DLMan.taBL.updateStatus(BatchId, (int)BatchStatus.Imported, "", -1);
|
||||
if (BatchIsAncestor)
|
||||
{
|
||||
var tabDesc = ComLib.BatchDescendant(BatchId);
|
||||
if (tabDesc != null && tabDesc.Count > 0)
|
||||
{
|
||||
foreach (var item in tabDesc)
|
||||
{
|
||||
DLMan.taBL.updateStatus(item.BatchID, (int)BatchStatus.Imported, "", -1);
|
||||
}
|
||||
}
|
||||
resetChildBatch();
|
||||
}
|
||||
raiseEvent();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user