aggiornamento metodi bilanciamento

This commit is contained in:
Samuele Locatelli
2021-06-30 12:40:25 +02:00
parent 73eb726f73
commit 31fb3c5669
@@ -221,16 +221,16 @@ namespace NKC_WF.WebUserControls
{
// sposto ordine in altro set
DLMan.taOLT.updateBatch(cmp_orderExtListNE01.BatchId, cmp_orderExtListNE01.SelOrderId, cmp_orderExtListNE02.BatchId);
fixRatio();
fixChildBatch();
fixRatio();
}
private void Cmp_orderExtListNE02_eh_doRefresh(object sender, EventArgs e)
{
// sposto ordine in altro set
DLMan.taOLT.updateBatch(cmp_orderExtListNE02.BatchId, cmp_orderExtListNE02.SelOrderId, cmp_orderExtListNE01.BatchId);
fixRatio();
fixChildBatch();
fixRatio();
}
private void fixChildBatch()
@@ -242,13 +242,13 @@ namespace NKC_WF.WebUserControls
cmp_orderExtListNE02.doUpdate();
cmp_batchDetailSplitInfoNE01.BatchId = cmp_orderExtListNE01.BatchId;
cmp_batchDetailSplitInfoNE02.BatchId = cmp_orderExtListNE02.BatchId;
// calcolo tempi....
double tmpTime = totTime01 + totTime02;
fullTime = tmpTime > 0 ? tmpTime : 1;
}
private void fixRatio()
{
// calcolo tempi....
double tmpTime = totTime01 + totTime02;
fullTime = tmpTime > 0 ? tmpTime : 1;
// sistemazione ratio calcolata...
double newRatio = (totTime01 * 100 / fullTime);
valRatio = (int)newRatio;
@@ -486,6 +486,8 @@ namespace NKC_WF.WebUserControls
if (!Page.IsPostBack)
{
// verifica visualizzazione
fixChildBatch();
fixRatio();
checkDisplayMode();
}
cmp_orderExtListNE01.eh_doRefresh += Cmp_orderExtListNE01_eh_doRefresh;