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
cc77d858
Commit
cc77d858
authored
Sep 10, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
e2ade831
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
7 deletions
+43
-7
RB_Examination_Details_ViewModel.cs
Edu.Model/ViewModel/Exam/RB_Examination_Details_ViewModel.cs
+5
-0
PaperModule.cs
Edu.Module.Exam/PaperModule.cs
+34
-1
AppletIndexController.cs
Edu.WebApi/Controllers/Applet/AppletIndexController.cs
+4
-6
No files found.
Edu.Model/ViewModel/Exam/RB_Examination_Details_ViewModel.cs
View file @
cc77d858
...
...
@@ -60,5 +60,10 @@ namespace Edu.Model.ViewModel.Exam
/// 知识点
/// </summary>
public
List
<
RB_Question_Point_ViewModel
>
QuestionPointList
{
get
;
set
;
}
/// <summary>
/// 阅读理解、听力、完型,答案列表
/// </summary>
public
List
<
object
>
QuestionAnswerList
{
get
;
set
;
}
}
}
Edu.Module.Exam/PaperModule.cs
View file @
cc77d858
...
...
@@ -681,8 +681,41 @@ namespace Edu.Module.Exam
if
(
gItem
.
DetailsList
!=
null
&&
gItem
.
DetailsList
.
Count
>
0
)
{
gItem
.
GScore
=
gItem
?.
DetailsList
?.
Sum
(
qitem
=>
qitem
.
Score
)
??
0
;
foreach
(
var
sItem
in
gItem
.
DetailsList
)
{
List
<
object
>
quesAnswerList
=
new
List
<
object
>();
//完型填空
if
(
sItem
.
QuestionTypeKey
==
"cloze"
)
{
if
(!
string
.
IsNullOrEmpty
(
sItem
.
Answer
.
ToString
()))
{
var
qAnsList
=
Common
.
Plugin
.
JsonHelper
.
DeserializeObject
<
List
<
SubAnswerItem
>>(
sItem
.
Answer
.
ToString
());
if
(
qAnsList
!=
null
&&
qAnsList
.
Count
()
>
0
)
{
foreach
(
var
tItem
in
qAnsList
)
{
quesAnswerList
.
Add
(
tItem
);
}
}
}
}
else
if
(
sItem
.
QuestionTypeKey
==
"reading-comprehensio"
||
sItem
.
QuestionTypeKey
==
"listening"
)
{
if
(!
string
.
IsNullOrEmpty
(
sItem
.
Answer
.
ToString
()))
{
var
qAnsList
=
Common
.
Plugin
.
JsonHelper
.
DeserializeObject
<
List
<
SubAnswerItem
>>(
sItem
.
Answer
.
ToString
());
if
(
qAnsList
!=
null
&&
qAnsList
.
Count
()
>
0
)
{
foreach
(
var
tItem
in
qAnsList
)
{
quesAnswerList
.
Add
(
tItem
);
}
}
}
}
sItem
.
QuestionAnswerList
=
quesAnswerList
;
sItem
.
QuestionPointList
=
pointList
?.
Where
(
qitem
=>
sItem
.
Knowledge
.
Contains
(
qitem
.
PointId
.
ToString
()))?.
ToList
()
??
new
List
<
RB_Question_Point_ViewModel
>();
sItem
.
QuestionContentObj
=
analysisQuestion
.
ParsingQuestion
(
sItem
.
QuestionTypeKey
,
sItem
.
QuestionContent
);
string
newTitle
=
sItem
.
Title
;
...
...
@@ -1500,7 +1533,7 @@ namespace Edu.Module.Exam
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Examination_Student_ViewModel
.
ExamEndTime
),
DateTime
.
Now
},
{
nameof
(
RB_Examination_Student_ViewModel
.
ExamStatus
),
ExamTestStatusEnum
.
FinishTest
},
{
nameof
(
RB_Examination_Student_ViewModel
.
ExamStatus
),
(
int
)
ExamTestStatusEnum
.
FinishTest
},
};
List
<
WhereHelper
>
wheres
=
new
List
<
WhereHelper
>()
{
...
...
Edu.WebApi/Controllers/Applet/AppletIndexController.cs
View file @
cc77d858
...
...
@@ -116,6 +116,10 @@ namespace Edu.WebApi.Controllers.Applet
{
item
.
ExamStatusStr
=
"未开始"
;
}
else
if
(
item
.
ExamStartTime
<
System
.
DateTime
.
Now
&&
item
.
ExamEndTime
>
System
.
DateTime
.
Now
)
{
item
.
ExamStatusStr
=
"已开始"
;
}
else
if
(
item
.
ExamEndTime
>
System
.
DateTime
.
Now
)
{
if
(
item
.
ExamStatus
==
2
)
...
...
@@ -127,15 +131,9 @@ namespace Edu.WebApi.Controllers.Applet
item
.
ExamStatusStr
=
"完成"
;
}
}
else
if
(
item
.
ExamStartTime
<
System
.
DateTime
.
Now
&&
item
.
ExamEndTime
>
System
.
DateTime
.
Now
)
{
item
.
ExamStatusStr
=
"已开始"
;
}
}
}
}
#
endregion
var
result
=
new
...
...
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