xiaochanghai 4 months ago
parent 04a69d6ee1
commit 1178558c4e
  1. 2
      Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs

@ -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;

Loading…
Cancel
Save