wsp-10323 fix job progress
This commit is contained in:
parent
aeec78ac02
commit
639e6600c0
2 changed files with 15 additions and 3 deletions
|
@ -215,9 +215,14 @@ namespace WebsitePanel.Portal.VPS.UserControls
|
|||
gauge.Visible = false;
|
||||
if (e.Item.ItemIndex == task.GetLogs().Count - 1)
|
||||
{
|
||||
gauge.Visible = true;
|
||||
gauge.Total = task.IndicatorMaximum;
|
||||
gauge.Progress = task.IndicatorCurrent;
|
||||
if (task.IndicatorCurrent == -1)
|
||||
litRecord.Text += "...";
|
||||
else
|
||||
{
|
||||
gauge.Visible = true;
|
||||
gauge.Total = task.IndicatorMaximum;
|
||||
gauge.Progress = task.IndicatorCurrent;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue