|
|
|
@ -126,10 +126,10 @@ public class Ghre_ExamPaperServices : BaseServices<Ghre_ExamPaper, Ghre_ExamPape |
|
|
|
|
x.TotalScore1 = Regex.Replace(x.PassScore.ToString(), @"\.(0+)$", "") + "/" + Regex.Replace(x.TotalScore.ToString(), @"\.(0+)$", ""); |
|
|
|
|
x.SetMethodLabel = await GetParaLabel("SetMethod", x.SetMethod); |
|
|
|
|
|
|
|
|
|
if (x.LinkType == "CourseId") |
|
|
|
|
x.CourseName = courses.FirstOrDefault(o => o.Id == x.LinkId)?.CourseName; |
|
|
|
|
else if (x.LinkType == "CourseSceneId") |
|
|
|
|
x.CourseName = courseScenes.FirstOrDefault(o => o.Id == x.LinkId)?.SceneName; |
|
|
|
|
if (x.LinkType == "CourseId" && courses.Any(o => o.Id == x.LinkId)) |
|
|
|
|
x.CourseName = courses.FirstOrDefault(o => o.Id == x.LinkId).CourseName + " (" + courses.FirstOrDefault(o => o.Id == x.LinkId).CourseNo + ")"; |
|
|
|
|
else if (x.LinkType == "CourseSceneId" && courseScenes.Any(o => o.Id == x.LinkId)) |
|
|
|
|
x.CourseName = courseScenes.FirstOrDefault(o => o.Id == x.LinkId)?.SceneName + " (" + courseScenes.FirstOrDefault(o => o.Id == x.LinkId).SceneNo + ")"; ; |
|
|
|
|
} |
|
|
|
|
catch (Exception) |
|
|
|
|
{ |
|
|
|
|