diff --git a/Tiobon.Core.Model/ViewModels/Extend/Ghre_StudyRecordESS.cs b/Tiobon.Core.Model/ViewModels/Extend/Ghre_StudyRecordESS.cs index e8c45839..f5cd4c0f 100644 --- a/Tiobon.Core.Model/ViewModels/Extend/Ghre_StudyRecordESS.cs +++ b/Tiobon.Core.Model/ViewModels/Extend/Ghre_StudyRecordESS.cs @@ -119,5 +119,5 @@ public class Ghre_StudyRecordESS public bool? IsRequireStudy { get; set; } = true; public string StudyFinishedRule { get; set; } - + public string OpenClassFeedbackStatus { get; set; } } diff --git a/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs b/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs index bf8ac7c6..8e40c7f8 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs @@ -1076,6 +1076,11 @@ public class Ghre_StudyRecordServices : BaseServices= x.CourseBeginDate && dt <= x.CourseEndDate) x.DisableStudyBtn = false; else @@ -1341,6 +1345,11 @@ WHERE A.Status !='Temporary' AND A.IsEnable=1 AND ( EXISTS if (x.FeedbackOrderId.IsNotEmptyOrNull()) x.DisableFeedbackBtn = false; + if (x.ShowFeedbackBtn == true && x.StudyProgress < 100) + { + x.DisableFeedbackBtn = true; + } + #region 处理学习进度 if (x.ExamId.IsNull()) @@ -1365,6 +1374,11 @@ WHERE A.Status !='Temporary' AND A.IsEnable=1 AND ( EXISTS else if (x.ExamStatus == DIC_EXAM_RECORD_STATUS.EXAM_END) x.StudyProgress = 60; } + + if (x.OpenClassFeedbackStatus.IsNotEmptyOrNull()) + if (x.OpenClassFeedbackStatus == "N") + x.StudyProgress = 83; + else x.StudyProgress = 100; #endregion }); diff --git a/Tiobon.Core.Services/Ghre/Ghre_SurveyServices.cs b/Tiobon.Core.Services/Ghre/Ghre_SurveyServices.cs index 154caaa9..d86a55ef 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_SurveyServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_SurveyServices.cs @@ -501,7 +501,7 @@ public class Ghre_SurveyServices : BaseServices() - .SetColumns(it => new Ghre_OpenClassFeedback() { Score = totalScore, UpdateTime = DateTime.Now }) + .SetColumns(it => new Ghre_OpenClassFeedback() { Score = totalScore, Status = "Y", UpdateTime = DateTime.Now }) .Where(it => it.Id == feedbackId) .ExecuteCommandAsync(); #endregion