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
28b2ddb2
Commit
28b2ddb2
authored
Aug 11, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
daaade91
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
22 deletions
+19
-22
ExaminationPaperTreeModel.cs
Edu.Model/ViewModel/Exam/ExaminationPaperTreeModel.cs
+9
-4
RB_Examination_Paper_ViewModel.cs
Edu.Model/ViewModel/Exam/RB_Examination_Paper_ViewModel.cs
+0
-8
PaperModule.cs
Edu.Module.Exam/PaperModule.cs
+7
-6
ExamController.cs
Edu.WebApi/Controllers/Exam/ExamController.cs
+3
-4
No files found.
Edu.Model/ViewModel/Exam/ExaminationPaperTreeModel.cs
View file @
28b2ddb2
...
...
@@ -31,14 +31,14 @@ namespace Edu.Model.ViewModel.Exam
public
DifficultyTypeEnum
DifficultyType
{
get
;
set
;
}
/// <summary>
/// 创建
时间
/// 创建
人
/// </summary>
public
DateTime
CreateTi
me
{
get
;
set
;
}
public
string
CreateByNa
me
{
get
;
set
;
}
/// <summary>
/// 创建
人
/// 创建
时间
/// </summary>
public
int
CreateBy
{
get
;
set
;
}
public
string
CreateTimeStr
{
get
;
set
;
}
/// <summary>
/// 发布次数
...
...
@@ -65,6 +65,11 @@ namespace Edu.Model.ViewModel.Exam
/// </summary>
public
int
ParentId
{
get
;
set
;
}
/// <summary>
/// 题目数量
/// </summary>
public
int
QuestionCount
{
get
;
set
;
}
/// <summary>
/// 下级节点
/// </summary>
...
...
Edu.Model/ViewModel/Exam/RB_Examination_Paper_ViewModel.cs
View file @
28b2ddb2
...
...
@@ -10,15 +10,7 @@ namespace Edu.Model.ViewModel.Exam
/// </summary>
public
class
RB_Examination_Paper_ViewModel
:
RB_Examination_Paper
{
/// <summary>
/// 创建人
/// </summary>
public
string
CreateByName
{
get
;
set
;
}
/// <summary>
/// 创建时间
/// </summary>
public
string
CreateTimeStr
{
get
{
return
Common
.
ConvertHelper
.
FormatDate
(
this
.
CreateTime
);
}
}
/// <summary>
/// 试卷题目分组列表
...
...
Edu.Module.Exam/PaperModule.cs
View file @
28b2ddb2
...
...
@@ -6,6 +6,7 @@ using System.Collections.Generic;
using
VT.FW.DB
;
using
System.Linq
;
using
System.Text.RegularExpressions
;
using
Edu.Cache.User
;
namespace
Edu.Module.Exam
{
...
...
@@ -57,13 +58,14 @@ namespace Edu.Module.Exam
PaperName
=
item
.
PaperName
,
QuestionBandIds
=
item
.
QuestionBandIds
,
DifficultyType
=
item
.
DifficultyType
,
CreateTime
=
item
.
CreateTime
,
CreateBy
=
item
.
CreateBy
,
CreateTime
Str
=
Common
.
ConvertHelper
.
FormatTime
(
item
.
CreateTime
)
,
CreateBy
Name
=
UserReidsCache
.
GetUserLoginInfo
(
item
.
CreateBy
)?.
AccountName
??
""
,
PublishCount
=
item
.
PublishCount
,
GenerateType
=
item
.
GenerateType
,
CreateNum
=
item
.
CreateNum
,
PaperType
=
item
.
PaperType
,
ParentId
=
item
.
ParentId
,
QuestionCount
=
0
,
ChildList
=
new
List
<
ExaminationPaperTreeModel
>(),
};
model
.
ChildList
=
GetPaperChild
(
childList
,
item
.
PaperId
);
...
...
@@ -95,13 +97,14 @@ namespace Edu.Module.Exam
PaperName
=
childItem
.
PaperName
,
QuestionBandIds
=
childItem
.
QuestionBandIds
,
DifficultyType
=
childItem
.
DifficultyType
,
CreateTime
=
childItem
.
CreateTime
,
CreateBy
=
childItem
.
CreateBy
,
CreateTime
Str
=
Common
.
ConvertHelper
.
FormatTime
(
childItem
.
CreateTime
)
,
CreateBy
Name
=
UserReidsCache
.
GetUserLoginInfo
(
childItem
.
CreateBy
)?.
AccountName
??
""
,
PublishCount
=
childItem
.
PublishCount
,
GenerateType
=
childItem
.
GenerateType
,
CreateNum
=
childItem
.
CreateNum
,
PaperType
=
childItem
.
PaperType
,
ParentId
=
childItem
.
ParentId
,
QuestionCount
=
0
,
ChildList
=
new
List
<
ExaminationPaperTreeModel
>(),
};
childModel
.
ChildList
.
AddRange
(
GetPaperChild
(
sourceList
,
childItem
.
PaperId
));
...
...
@@ -111,8 +114,6 @@ namespace Edu.Module.Exam
return
resultList
;
}
/// <summary>
/// 获取试卷题目列表
/// </summary>
...
...
Edu.WebApi/Controllers/Exam/ExamController.cs
View file @
28b2ddb2
...
...
@@ -51,11 +51,10 @@ namespace Edu.WebApi.Controllers.Exam
{
item
.
PaperId
,
item
.
PaperName
,
CreateByName
=
UserReidsCache
.
GetUserLoginInfo
(
item
.
CreateBy
)?.
AccountName
??
""
,
CreateTimeStr
=
Common
.
ConvertHelper
.
FormatTimeStr
(
item
.
CreateTime
),
DifficultyTypeName
=
item
.
DifficultyType
.
ToName
(),
item
.
CreateTimeStr
,
item
.
CreateByName
,
item
.
PublishCount
,
QuestionCount
=
0
,
item
.
QuestionCount
,
item
.
ParentId
,
item
.
PaperType
,
item
.
ChildList
,
...
...
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