Commit e769bf9f authored by 黄奎's avatar 黄奎

页面修改

parent 6e3e9111
......@@ -828,22 +828,19 @@ namespace Edu.WebApi.Controllers.Course
var tempChapter =new RB_Course_Chapter_ViewModel();
if (itemGuest.OrderCourseList != null && itemGuest.OrderCourseList.Count > 0)
{
tempChapter = chatperList.FirstOrDefault(qitem => itemGuest.OrderCourseList.Any(sItem => sItem.CourseId == qitem.CourseId) && qitem.CourseRate == itemGuest.CourseGradeId && qitem.ChapterId == itemGuest.CourseGradeNo) ?? new RB_Course_Chapter_ViewModel();
tempChapter = chatperList.FirstOrDefault(qitem => itemGuest.OrderCourseList.Any(sItem => sItem.CourseId == qitem.CourseId) && qitem.CourseRate == itemGuest.CourseGradeId && qitem.ChapterNo == itemGuest.CourseGradeNo.ToString()) ?? new RB_Course_Chapter_ViewModel();
}
else
{
tempChapter = chatperList.FirstOrDefault(qitem => qitem.CourseId == itemGuest.LearnCourseId && qitem.CourseRate == itemGuest.CourseGradeId && qitem.ChapterId == itemGuest.CourseGradeNo) ?? new RB_Course_Chapter_ViewModel();
tempChapter = chatperList.FirstOrDefault(qitem => qitem.CourseId == itemGuest.LearnCourseId && qitem.ChapterNo == itemGuest.CourseGradeNo.ToString()) ?? new RB_Course_Chapter_ViewModel();
}
string chapterName = itemGuest.CourseName + "-" + itemGuest.CourseGradeNo;
if (tempChapter != null && tempChapter.ChapterId > 0)
{
chapterName = tempChapter.CourseRate.ToName() + "-" + tempChapter.ChapterName;
}
else
{
string XX = "";
chapterName = tempChapter.ChapterName;
}
excelColumns.Add(new ExcelColumn(value: chapterName) { CellWidth = 50, HAlignmentEnum = HAlignmentEnum.CENTER, VAlignmentEnum = VAlignmentEnum.CENTER });
ExcelDataSource rowGuest = new ExcelDataSource()
{
......
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