Fix gestione stop nesting anche x child

This commit is contained in:
Samuele Locatelli
2021-07-20 16:35:55 +02:00
parent d783f65c20
commit 9082df9146
2 changed files with 12 additions and 2 deletions
@@ -160,6 +160,17 @@ namespace NKC_WF.WebUserControls
ComLib.resetBatchReq();
// registro su DB nesting iniziato...
DLMan.taBL.updateStatus(BatchId, (int)BatchStatus.EstimationDone, "", -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.EstimationDone, "", -1);
}
}
}
raiseEvent();
}
@@ -10,8 +10,7 @@
<asp:Label runat="server" ID="lblBatchType" ToolTip='<%# tooltipByType(Eval("BatchType")) %>'><span style="font-size: 1.3em;"><i class='<%# cssIconByType(Eval("BatchType")) %>'></i></span>&nbsp;&nbsp;<b><%# Eval("Takt") %></b></asp:Label>
</div>
<div class="col-3 text-right">
# KIT/Parts: <b><%# Eval("NumOrders") %>/<%# Eval("NumItems") %></b>
</div>
# KIT/Parts: <b><%# Eval("NumOrders") %>/<%# Eval("NumItems") %></b></div>
<div class="col-3 text-right">
Estim.Time: <b><%# Eval("TotalTime","{0:N2}") %></b> min
</div>