Commit 7f3fee90 authored by 黄奎's avatar 黄奎

页面修改

parent b6efb16d
...@@ -1485,7 +1485,7 @@ namespace Edu.Module.Course ...@@ -1485,7 +1485,7 @@ namespace Edu.Module.Course
} }
list.Add(new list.Add(new
{ {
IsEndDate = item.ClassDate <= today, IsEndDate = item.ClassDate <= today&&item.ClassDate>=today.AddDays(-7),
item.ClassPlanId, item.ClassPlanId,
item.ClassId, item.ClassId,
item.ClassDate, item.ClassDate,
......
...@@ -1253,8 +1253,7 @@ namespace Edu.Module.Exam ...@@ -1253,8 +1253,7 @@ namespace Edu.Module.Exam
var stuTempList = studentDetailsList.Where(qitem => qitem.StuPaperGroupId == gItem.GId); var stuTempList = studentDetailsList.Where(qitem => qitem.StuPaperGroupId == gItem.GId);
foreach (var sItem in stuTempList) foreach (var sItem in stuTempList)
{ {
var questionModel = gItem.DetailsList.Where(qitem => qitem.Id == sItem.DetailsId)?.FirstOrDefault(); var questionModel = gItem?.DetailsList.Where(qitem => qitem.Id == sItem.DetailsId)?.FirstOrDefault();
var QuestionContentObj = new object(); var QuestionContentObj = new object();
if (isShowAnswer) if (isShowAnswer)
{ {
...@@ -1291,7 +1290,11 @@ namespace Edu.Module.Exam ...@@ -1291,7 +1290,11 @@ namespace Edu.Module.Exam
} }
else if (questionModel.QuestionTypeKey == "reading-comprehensio" || questionModel.QuestionTypeKey == "listening") else if (questionModel.QuestionTypeKey == "reading-comprehensio" || questionModel.QuestionTypeKey == "listening")
{ {
var qList= JsonHelper.DeserializeObject<List<matchingItem>>(sItem.StundetAnswer.ToString());
foreach (var mItem in qList)
{
answerList.Add(new { mItem.Name, mItem.Content });
}
} }
var qObj = new var qObj = new
...@@ -1309,8 +1312,8 @@ namespace Edu.Module.Exam ...@@ -1309,8 +1312,8 @@ namespace Edu.Module.Exam
Answer = isShowAnswer ? questionModel.Answer : sItem.StundetAnswer, Answer = isShowAnswer ? questionModel.Answer : sItem.StundetAnswer,
sItem.StundetAnswer, sItem.StundetAnswer,
AnswerList = isShowAnswer ? answerList : new List<object> (), AnswerList = isShowAnswer ? answerList : new List<object> (),
AnswerParse = questionModel.AnswerParse, questionModel.AnswerParse,
StundetScore = sItem.StundetScore, sItem.StundetScore,
sItem.IsMarking sItem.IsMarking
}; };
questionList.Add(qObj); questionList.Add(qObj);
......
...@@ -2231,7 +2231,7 @@ namespace Edu.WebApi.Controllers.Course ...@@ -2231,7 +2231,7 @@ namespace Edu.WebApi.Controllers.Course
{ {
var path = $"/course/prepareclassDetails?ClassId={query.ClassId}&ClassPlanId={query.ClassPlanId}"; var path = $"/course/prepareclassDetails?ClassId={query.ClassId}&ClassPlanId={query.ClassPlanId}";
path=HttpUtility.UrlEncode(path); path=HttpUtility.UrlEncode(path);
string markdownContent = $"`教师备课` 主管评论备课内容通知\n>**概要信息** \n>上课日期:<font color='info'>{query.ClassDate.Value.ToString("yyyy-MM-dd")}</font>\n>评价人:<font color='warning'>{model.CreateByName}</font>\n>评价日期:<font color='comment'>{DateTime.Now.ToString("MM-dd HH:mm")}</font>\n>\n>分数:<font color='comment'>{(query.Score == -1 ? "未评分" : query.Score + "分")}</font>\n>请点击:[查看详情]({Config.ErpUrl}/autologin?loginId={query.TeacherId}&target={path}#target=out)"; string markdownContent = $"`教师备课` 主管评论备课内容通知\n>**概要信息** \n>上课日期:<font color='info'>{query.ClassDate.Value:yyyy-MM-dd}</font>\n>评价人:<font color='warning'>{model.CreateByName}</font>\n>评价日期:<font color='comment'>{DateTime.Now:MM-dd HH:mm}</font>\n>\n>分数:<font color='comment'>{(query.Score == -1 ? "未评分" : query.Score + "分")}</font>\n>请点击:[查看详情]({Config.ErpUrl}/autologin?loginId={query.TeacherId}&target={path}#target=out)";
Common.Message.PushMessageModel modelWork = new Common.Message.PushMessageModel() Common.Message.PushMessageModel modelWork = new Common.Message.PushMessageModel()
{ {
CategoryId = PushMessageCategoryEnum.LessonComment, CategoryId = PushMessageCategoryEnum.LessonComment,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment