|
|
|
@ -1270,7 +1270,6 @@ WHERE A.Status !='Temporary' AND ( EXISTS |
|
|
|
|
entitys.ForEach(x => |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
x.ShowStudyBtn = false; |
|
|
|
|
x.ShowExamBtn = false; |
|
|
|
|
x.ShowRegisterBtn = false; |
|
|
|
|
|
|
|
|
@ -1301,6 +1300,13 @@ WHERE A.Status !='Temporary' AND ( EXISTS |
|
|
|
|
if (x.IsRequireStudy == false) |
|
|
|
|
x.ShowStudyBtn = false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (dt >= x.CourseBeginDate && dt <= x.CourseEndDate) |
|
|
|
|
x.DisableStudyBtn = false; |
|
|
|
|
else |
|
|
|
|
x.DisableStudyBtn = true; |
|
|
|
|
|
|
|
|
|
if (!x.ExamId.IsNull()) |
|
|
|
|
{ |
|
|
|
|
if (x.ExamBeginDate != null && x.ExamEndDate != null) |
|
|
|
@ -1364,7 +1370,6 @@ WHERE A.Status !='Temporary' AND ( EXISTS |
|
|
|
|
|
|
|
|
|
#region 处理开班自动绑定学习记录 |
|
|
|
|
if (await Db.Queryable<Ghre_OpenClass>().Where(x => x.Id == id).AnyAsync() && |
|
|
|
|
await Db.Queryable<Ghre_OpenClassStaff>().Where(x => x.OpenClassId == id && x.StaffId == App.User.StaffId).AnyAsync() && |
|
|
|
|
!await Db.Queryable<Ghre_StudyRecord>().Where(x => x.OpenClassId == id && x.StaffId == App.User.StaffId).AnyAsync()) |
|
|
|
|
{ |
|
|
|
|
var openClass = await Db.Queryable<Ghre_OpenClass>().Where(x => x.Id == id).FirstAsync(); |
|
|
|
|