|
|
@ -873,6 +873,7 @@ public class Ghre_QuestionServices : BaseServices<Ghre_Question, Ghre_QuestionDt |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (questionType != "Completion" && questionType != "ShortAnswer") |
|
|
|
if (!dt.Columns.Contains("正确答案(必填)")) |
|
|
|
if (!dt.Columns.Contains("正确答案(必填)")) |
|
|
|
{ |
|
|
|
{ |
|
|
|
comments.Add("未查询到【正确答案(必填)】列!"); |
|
|
|
comments.Add("未查询到【正确答案(必填)】列!"); |
|
|
@ -1026,7 +1027,7 @@ public class Ghre_QuestionServices : BaseServices<Ghre_Question, Ghre_QuestionDt |
|
|
|
int index = questionContent.IndexOf("()"); |
|
|
|
int index = questionContent.IndexOf("()"); |
|
|
|
if (index > -1) |
|
|
|
if (index > -1) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (questionContent.Length > index + 2) |
|
|
|
if (questionContent.Length > index + 4) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (questionContent.Substring(index + 2, 2) == "()") |
|
|
|
if (questionContent.Substring(index + 2, 2) == "()") |
|
|
|
questionContent = questionContent.Substring(0, index) + "____、" + questionContent.Substring(index + 2); |
|
|
|
questionContent = questionContent.Substring(0, index) + "____、" + questionContent.Substring(index + 2); |
|
|
@ -1083,7 +1084,7 @@ public class Ghre_QuestionServices : BaseServices<Ghre_Question, Ghre_QuestionDt |
|
|
|
data.SuccessCount++; |
|
|
|
data.SuccessCount++; |
|
|
|
id = await base.Add(insert); |
|
|
|
id = await base.Add(insert); |
|
|
|
insertAnswers.ForEach(x => x.QuestionId = id); |
|
|
|
insertAnswers.ForEach(x => x.QuestionId = id); |
|
|
|
//await _ghre_QuestionAnswerServices.Add(insertAnswers); |
|
|
|
await _ghre_QuestionAnswerServices.Add(insertAnswers); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|