Commit 4fabaab2 authored by 黄奎's avatar 黄奎

页面修改

parent 433c03a0
......@@ -3731,7 +3731,7 @@ namespace Edu.Module.Course
int CompleteProgress = 0;
if (subItem.TotalPlanNum > 0)
{
CompleteProgress = Convert.ToInt32((Convert.ToDecimal(subItem.FinishNum) / Convert.ToDecimal(subItem.TotalPlanNum)) * 100);
CompleteProgress = (int)((Convert.ToDecimal(subItem.FinishNum) / Convert.ToDecimal(subItem.TotalPlanNum)) * 100);
}
subList.Add(new
{
......@@ -4188,6 +4188,12 @@ namespace Edu.Module.Course
}
}
int CompleteProgress = 0;
if(subItem.TotalPlanNum>0)
{
CompleteProgress = (int)(Convert.ToDecimal(subItem.FinishNum) / Convert.ToDecimal(subItem.TotalPlanNum) * 100);
}
subList.Add(new
{
Id = item?.ClassTimeId ?? 0,
......@@ -4197,7 +4203,7 @@ namespace Edu.Module.Course
subItem.CourseName,
subItem.RoomName,
subItem.TeacherName,
subItem.CompleteProgress,
CompleteProgress,
subItem.TotalPlanNum,
subItem.Ranks,
TimeStr = Common.ConvertHelper.GetTimeStr(currentDate),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment