Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
Education
Commits
d47e5b51
Commit
d47e5b51
authored
Sep 08, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
2ca30ba5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
6 deletions
+38
-6
PaperModule2.cs
Edu.Module.Exam/PaperModule2.cs
+38
-6
No files found.
Edu.Module.Exam/PaperModule2.cs
View file @
d47e5b51
...
@@ -23,7 +23,7 @@ namespace Edu.Module.Exam
...
@@ -23,7 +23,7 @@ namespace Edu.Module.Exam
/// <summary>
/// <summary>
/// 自动阅卷方法
/// 自动阅卷方法
/// </summary>
/// </summary>
/// <param name="IsHalfScore">多选题未选全给一半分</param>
/// <param name="IsHalfScore">多选题未选全给一半分
(1-是,0-否)
</param>
/// <param name="PaperId">试卷编号</param>
/// <param name="PaperId">试卷编号</param>
/// <param name="stuList">学员答题列表</param>
/// <param name="stuList">学员答题列表</param>
/// <returns></returns>
/// <returns></returns>
...
@@ -54,12 +54,44 @@ namespace Edu.Module.Exam
...
@@ -54,12 +54,44 @@ namespace Edu.Module.Exam
break
;
break
;
//多选题
//多选题
case
"multiple"
:
case
"multiple"
:
if
(
IsHalfScore
==
0
)
answerList
.
Add
(
new
RB_Examination_StudentDetails_ViewModel
()
{
{
Id
=
answerModel
.
Id
,
answerList
.
Add
(
new
RB_Examination_StudentDetails_ViewModel
()
StudentScore
=
(
sItem
.
Answer
==
answerModel
.
StundetAnswer
)
?
sItem
.
Score
:
0
{
});
Id
=
answerModel
.
Id
,
StudentScore
=
(
sItem
.
Answer
==
answerModel
.
StundetAnswer
)
?
sItem
.
Score
:
0
});
}
else
{
decimal
multScore
=
0
;
var
oldAnswerList
=
Common
.
ConvertHelper
.
StringToFileList
(
sItem
.
Answer
);
var
newAnswerList
=
Common
.
ConvertHelper
.
StringToFileList
(
answerModel
.
StundetAnswer
);
bool
isExists
=
true
;
foreach
(
var
nItem
in
newAnswerList
)
{
if
(
isExists
)
{
if
(!
oldAnswerList
.
Contains
(
nItem
))
{
isExists
=
false
;
}
}
}
if
(
sItem
.
Answer
==
answerModel
.
StundetAnswer
)
{
multScore
=
sItem
.
Score
;
}
else
if
(
isExists
)
{
multScore
=
sItem
.
Score
/
2
;
}
answerList
.
Add
(
new
RB_Examination_StudentDetails_ViewModel
()
{
Id
=
answerModel
.
Id
,
StudentScore
=
multScore
});
}
break
;
break
;
//填空题
//填空题
case
"fill-in"
:
case
"fill-in"
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment