From 31fb3c5669057b2bb74c05ef838911248fd6ffcc Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Wed, 30 Jun 2021 12:40:25 +0200 Subject: [PATCH] aggiornamento metodi bilanciamento --- NKC_WF/WebUserControls/cmp_batchDetailSplit.ascx.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/NKC_WF/WebUserControls/cmp_batchDetailSplit.ascx.cs b/NKC_WF/WebUserControls/cmp_batchDetailSplit.ascx.cs index 59dd9b9..983c2bb 100644 --- a/NKC_WF/WebUserControls/cmp_batchDetailSplit.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_batchDetailSplit.ascx.cs @@ -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;