Commit 86ab7d30 authored by 黄奎's avatar 黄奎

页面修改

parent 22dc29e9
...@@ -4257,6 +4257,7 @@ namespace Edu.Module.Course ...@@ -4257,6 +4257,7 @@ namespace Edu.Module.Course
FinishChapterNoName = chatperList?.FirstOrDefault(qitem => qitem.CourseId == sItem.LearnCourseId && qitem.ChapterNo == sItem.CourseChapterNo.ToString())?.ChapterName; FinishChapterNoName = chatperList?.FirstOrDefault(qitem => qitem.CourseId == sItem.LearnCourseId && qitem.ChapterNo == sItem.CourseChapterNo.ToString())?.ChapterName;
CourseChapterNoName = chatperList?.FirstOrDefault(qitem => qitem.CourseId == sItem.LearnCourseId && qitem.ChapterNo == sItem.CourseGradeNo.ToString())?.ChapterName; CourseChapterNoName = chatperList?.FirstOrDefault(qitem => qitem.CourseId == sItem.LearnCourseId && qitem.ChapterNo == sItem.CourseGradeNo.ToString())?.ChapterName;
} }
appointGuestList.Add(new appointGuestList.Add(new
{ {
GuestName = sItem.StuName, GuestName = sItem.StuName,
...@@ -4287,7 +4288,14 @@ namespace Edu.Module.Course ...@@ -4287,7 +4288,14 @@ namespace Edu.Module.Course
ChapterName = tempChatper?.ChapterName ?? ""; ChapterName = tempChatper?.ChapterName ?? "";
} }
var tempCourse = courseList?.FirstOrDefault(qitem => qitem.CourseId == item.Key.CourseId) ?? new RB_Course_ViewModel(); var tempCourse = courseList?.FirstOrDefault(qitem => qitem.CourseId == item.Key.CourseId) ?? new RB_Course_ViewModel();
if (CourseGradeId == 0 && (tempCourse?.CourseRate ?? 0) > 0)
{
CourseGradeId = (int)tempCourse.CourseRate;
if (string.IsNullOrEmpty(ChapterName) && (tempCourse.CourseRate == CourseRateEnum.OneFor || tempCourse.CourseRate == CourseRateEnum.OneCH))
{
ChapterName = string.Format("第{0}次课", item.Key.ChapterNo);
}
}
subList.Add(new subList.Add(new
{ {
ClassType = 3, ClassType = 3,
......
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