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
1a398e12
Commit
1a398e12
authored
3 years ago
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
30588bc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
PaperModule.cs
Edu.Module.Exam/PaperModule.cs
+13
-2
No files found.
Edu.Module.Exam/PaperModule.cs
View file @
1a398e12
...
@@ -572,18 +572,29 @@ namespace Edu.Module.Exam
...
@@ -572,18 +572,29 @@ namespace Edu.Module.Exam
public
bool
RemoveExamnationPaperModule
(
int
PaperId
)
public
bool
RemoveExamnationPaperModule
(
int
PaperId
)
{
{
var
flag
=
true
;
var
flag
=
true
;
var
model
=
GetExaminationPaperModule
(
PaperId
);
var
childList
=
examination_PaperRepository
.
GetExaminationPaperChildRepository
(
PaperId
.
ToString
());
if
(
PaperId
>
0
)
if
(
PaperId
>
0
)
{
{
flag
=
examination_PaperRepository
.
DeleteOne
(
new
WhereHelper
(
nameof
(
RB_Examination_Paper_ViewModel
.
PaperId
),
PaperId
));
flag
=
examination_PaperRepository
.
DeleteOne
(
new
WhereHelper
(
nameof
(
RB_Examination_Paper_ViewModel
.
PaperId
),
PaperId
));
}
}
if
(
flag
)
if
(
flag
&&
model
.
GroupList
!=
null
&&
model
.
GroupList
.
Count
>
0
)
{
{
flag
=
examination_GroupRepository
.
DeleteOne
(
new
WhereHelper
(
nameof
(
RB_Examination_Group_ViewModel
.
PaperId
),
PaperId
));
flag
=
examination_GroupRepository
.
DeleteOne
(
new
WhereHelper
(
nameof
(
RB_Examination_Group_ViewModel
.
PaperId
),
PaperId
));
}
}
if
(
flag
)
if
(
flag
&&
model
.
GroupList
!=
null
&&
model
.
GroupList
.
Count
>
0
&&
model
.
GroupList
[
0
].
DetailsList
!=
null
&&
model
.
GroupList
[
0
].
DetailsList
.
Count
>
0
)
{
{
flag
=
examination_DetailsRepository
.
DeleteOne
(
new
WhereHelper
(
nameof
(
RB_Examination_Details_ViewModel
.
PaperId
),
PaperId
));
flag
=
examination_DetailsRepository
.
DeleteOne
(
new
WhereHelper
(
nameof
(
RB_Examination_Details_ViewModel
.
PaperId
),
PaperId
));
}
}
if
(
childList
!=
null
&&
childList
.
Count
>
0
)
{
foreach
(
var
item
in
childList
)
{
examination_PaperRepository
.
DeleteOne
(
new
WhereHelper
(
nameof
(
RB_Examination_Paper_ViewModel
.
PaperId
),
item
.
PaperId
));
examination_GroupRepository
.
DeleteOne
(
new
WhereHelper
(
nameof
(
RB_Examination_Group_ViewModel
.
PaperId
),
item
.
PaperId
));
examination_DetailsRepository
.
DeleteOne
(
new
WhereHelper
(
nameof
(
RB_Examination_Details_ViewModel
.
PaperId
),
item
.
PaperId
));
}
}
return
flag
;
return
flag
;
}
}
...
...
This diff is collapsed.
Click to expand it.
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