aggiornamento metodi bilanciamento
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user