|
|
|
@ -1238,9 +1238,12 @@ WHERE A.Id = '{id}'"; |
|
|
|
|
if (course.CourseWareList[j].Attachments != null && course.CourseWareList[j].Attachments.Any()) |
|
|
|
|
course.CourseWareList[j].Attachments.ForEach(x => x.RelativePath = "/Advanced" + x.RelativePath); |
|
|
|
|
|
|
|
|
|
course.CourseWareList[j].Links = attachments.Where(x => x.AttachFileExtension == "http") |
|
|
|
|
course.CourseWareList[j].Links = attachments |
|
|
|
|
.Where(x => x.AttachFileExtension == "http") |
|
|
|
|
.OrderBy(x => x.SortNo) |
|
|
|
|
.Select(x => new Ghre_CourseWareLink() |
|
|
|
|
{ |
|
|
|
|
Id = x.Id, |
|
|
|
|
LinkName = x.AttachmentName, |
|
|
|
|
LinkAddress = x.RelativePath, |
|
|
|
|
}).ToList(); |
|
|
|
@ -1251,7 +1254,7 @@ WHERE A.Id = '{id}'"; |
|
|
|
|
|
|
|
|
|
if (course.CourseStandardDuration.IsNull()) |
|
|
|
|
{ |
|
|
|
|
sql = $@"SELECT ISNULL (A.Hours, 0) * 60 + A.Minutes Minutes
|
|
|
|
|
sql = $@"SELECT SUM (ISNULL (A.Hours, 0) * 60 + A.Minutes) Minutes
|
|
|
|
|
FROM Ghre_CourseWare A |
|
|
|
|
WHERE A.Id IN |
|
|
|
|
(SELECT CourseWareId |
|
|
|
|