|
|
|
@ -1047,7 +1047,7 @@ public class Ghre_StudyRecordServices : BaseServices<Ghre_StudyRecord, Ghre_Stud |
|
|
|
|
// if (x.StudyProgress >= 100 || !(x.CourseBeginDate.Value.Date <= DateTime.Now.Date && x.CourseEndDate.Value.Date >= DateTime.Now.Date)) |
|
|
|
|
// x.DisableStudyBtn = true; |
|
|
|
|
|
|
|
|
|
if (x.StudyProgress < 100 || x.ExamId.IsNull()) |
|
|
|
|
if ((x.StudyProgress < 100 || x.ExamId.IsNull()) && x.IsRequireStudy != false) |
|
|
|
|
x.DisableExamBtn = true; |
|
|
|
|
if (x.ExamId.IsNotEmptyOrNull() && (x.ExamBeginDate > dt || dt > x.ExamEndDate)) |
|
|
|
|
x.DisableExamBtn = true; |
|
|
|
|