Fix progressbar x BUNK
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user