Fix progressbar x BUNK

This commit is contained in:
Samuele E. Locatelli
2020-07-25 12:13:04 +02:00
parent 4d5617c388
commit 52065d78ea
3 changed files with 43 additions and 3 deletions
@@ -113,6 +113,7 @@ namespace NKC_WF.WebUserControls
public void doUpdate()
{
repCtrl.DataBind();
repProgress.DataBind();
checkPrint();
}
@@ -172,5 +173,16 @@ namespace NKC_WF.WebUserControls
// aggiorno stato BATCH
ComLib.updateBatchPositionByBunk(StackId);
}
public string getProgressStyle(object _num, object _den)
{
string answ = "width: 10%";
int num = 0;
int den = 1;
int.TryParse(_num.ToString(), out num);
int.TryParse(_den.ToString(), out den);
answ = $"width: {num * 100 / den}%";
return answ;
}
}
}