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
5cbc1a71
Commit
5cbc1a71
authored
Aug 11, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
eb5e8241
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
RB_Examination_Paper.cs
Edu.Model/Entity/Exam/RB_Examination_Paper.cs
+5
-0
PaperModule.cs
Edu.Module.Exam/PaperModule.cs
+13
-2
ExamController.cs
Edu.WebApi/Controllers/Exam/ExamController.cs
+1
-0
No files found.
Edu.Model/Entity/Exam/RB_Examination_Paper.cs
View file @
5cbc1a71
...
...
@@ -62,5 +62,10 @@ namespace Edu.Model.Entity.Exam
/// 删除状态
/// </summary>
public
int
Status
{
get
;
set
;
}
/// <summary>
/// 组卷类型(1-智能组卷,2-手动组卷,3-智能导入)
/// </summary>
public
int
GenerateType
{
get
;
set
;
}
}
}
Edu.Module.Exam/PaperModule.cs
View file @
5cbc1a71
...
...
@@ -167,7 +167,7 @@ namespace Edu.Module.Exam
// 定义正则表达式用来匹配 img 标签
string
str
=
@"<img\b[^<>]*?\bsrc[\s\t\r\n]*=[\s\t\r\n]*[""']?[\s\t\r\n]*(?<imgUrl>[^\s\t\r\n""'<>]*)[^<>]*?/?[\s\t\r\n]*>"
;
var
extModel
=
examination_PaperRepository
.
GetEntity
<
RB_Examination_Paper_ViewModel
>(
PaperId
);
if
(
extModel
!=
null
&&
extModel
.
PaperId
>
0
)
if
(
extModel
!=
null
&&
extModel
.
PaperId
>
0
)
{
extModel
.
GroupList
=
GetExaminationGroupListModule
(
new
RB_Examination_Group_ViewModel
()
{
...
...
@@ -177,7 +177,7 @@ namespace Edu.Module.Exam
{
PaperId
=
extModel
.
PaperId
});
if
(
extModel
.
GroupList
!=
null
&&
extModel
.
GroupList
.
Count
>
0
&&
detailsList
!=
null
&&
detailsList
.
Count
>
0
)
if
(
extModel
.
GroupList
!=
null
&&
extModel
.
GroupList
.
Count
>
0
&&
detailsList
!=
null
&&
detailsList
.
Count
>
0
)
{
foreach
(
var
gItem
in
extModel
.
GroupList
)
{
...
...
@@ -222,5 +222,16 @@ namespace Edu.Module.Exam
{
return
examination_DetailsRepository
.
Delete
(
Id
)
>
0
;
}
/// <summary>
/// 根据分组删除分组和题目
/// </summary>
/// <param name="GId"></param>
/// <returns></returns>
public
bool
RemoveExamnationGroupModule
(
int
GId
)
{
return
false
;
}
}
}
Edu.WebApi/Controllers/Exam/ExamController.cs
View file @
5cbc1a71
...
...
@@ -80,6 +80,7 @@ namespace Edu.WebApi.Controllers.Exam
CreateBy
=
UserInfo
.
Id
,
CreateTime
=
DateTime
.
Now
,
Group_Id
=
base
.
UserInfo
.
Group_Id
,
GenerateType
=
base
.
ParmJObj
.
GetInt
(
"GenerateType"
),
};
extModel
.
GroupList
=
new
List
<
RB_Examination_Group_ViewModel
>();
string
groups
=
base
.
ParmJObj
.
GetStringValue
(
"GroupList"
);
...
...
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