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
722180a2
Commit
722180a2
authored
Aug 19, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除修改
parent
09f0e315
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
PaperModule.cs
Edu.Module.Exam/PaperModule.cs
+13
-3
ExamController.cs
Edu.WebApi/Controllers/Exam/ExamController.cs
+2
-1
No files found.
Edu.Module.Exam/PaperModule.cs
View file @
722180a2
...
...
@@ -585,16 +585,26 @@ namespace Edu.Module.Exam
/// <param name="QuestionTypeId">问题类型编号</param>
/// <returns></returns>
[
TransactionCallHandler
]
public
bool
RemoveExamnationGroupModule
(
int
GId
,
int
QuestionTypeId
)
public
bool
RemoveExamnationGroupModule
(
int
GId
,
int
QuestionTypeId
,
int
PaperId
)
{
var
flag
=
true
;
if
(
GId
>
0
)
{
flag
=
examination_GroupRepository
.
DeleteOne
(
new
WhereHelper
(
nameof
(
RB_Examination_Group_ViewModel
.
GId
),
GId
));
List
<
WhereHelper
>
gList
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(
nameof
(
RB_Examination_Group_ViewModel
.
GId
),
GId
),
new
WhereHelper
(
nameof
(
RB_Examination_Group_ViewModel
.
PaperId
),
PaperId
),
};
flag
=
examination_GroupRepository
.
Delete
(
gList
);
}
if
(
flag
&&
QuestionTypeId
>
0
)
{
examination_DetailsRepository
.
DeleteOne
(
new
WhereHelper
(
nameof
(
RB_Examination_Details_ViewModel
.
QuestionTypeId
),
QuestionTypeId
));
List
<
WhereHelper
>
dList
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(
nameof
(
RB_Examination_Details_ViewModel
.
QuestionTypeId
),
QuestionTypeId
),
new
WhereHelper
(
nameof
(
RB_Examination_Details_ViewModel
.
PaperId
),
PaperId
),
};
examination_DetailsRepository
.
Delete
(
dList
);
}
return
flag
;
}
...
...
Edu.WebApi/Controllers/Exam/ExamController.cs
View file @
722180a2
...
...
@@ -356,7 +356,8 @@ namespace Edu.WebApi.Controllers.Exam
{
var
GId
=
base
.
ParmJObj
.
GetInt
(
"GId"
);
var
QuestionTypeId
=
base
.
ParmJObj
.
GetInt
(
"QuestionTypeId"
);
var
flag
=
paperModule
.
RemoveExamnationGroupModule
(
GId
,
QuestionTypeId
);
var
PaperId
=
base
.
ParmJObj
.
GetInt
(
"PaperId"
);
var
flag
=
paperModule
.
RemoveExamnationGroupModule
(
GId
,
QuestionTypeId
,
PaperId
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
...
...
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