Commit 3d120144 authored by 黄奎's avatar 黄奎

页面修改

parent d47e5b51
......@@ -68,23 +68,26 @@ namespace Edu.Module.Exam
var oldAnswerList= Common.ConvertHelper.StringToFileList(sItem.Answer);
var newAnswerList = Common.ConvertHelper.StringToFileList(answerModel.StundetAnswer);
bool isExists = true;
foreach (var nItem in newAnswerList)
if (newAnswerList != null && newAnswerList.Count > 0)
{
if (isExists)
foreach (var nItem in newAnswerList)
{
if (!oldAnswerList.Contains(nItem))
if (isExists)
{
isExists = false;
if (!oldAnswerList.Contains(nItem))
{
isExists = false;
}
}
}
}
if (sItem.Answer == answerModel.StundetAnswer)
{
multScore = sItem.Score;
}
else if (isExists)
{
multScore = sItem.Score / 2;
if (sItem.Answer == answerModel.StundetAnswer)
{
multScore = sItem.Score;
}
else if (isExists)
{
multScore = sItem.Score / 2;
}
}
answerList.Add(new RB_Examination_StudentDetails_ViewModel()
{
......
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