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
e97d12bd
Commit
e97d12bd
authored
Aug 20, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/education
parents
ad6d97bd
88b16348
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
0 deletions
+55
-0
ExaminationPaperTreeModel.cs
Edu.Model/ViewModel/Exam/ExaminationPaperTreeModel.cs
+7
-0
PaperModule.cs
Edu.Module.Exam/PaperModule.cs
+48
-0
No files found.
Edu.Model/ViewModel/Exam/ExaminationPaperTreeModel.cs
View file @
e97d12bd
...
...
@@ -80,6 +80,11 @@ namespace Edu.Model.ViewModel.Exam
/// </summary>
public
Common
.
Enum
.
EduTask
.
EduTaskRrocessStatus
ExamineStatus
{
get
;
set
;
}
/// <summary>
/// 审核状态
/// </summary>
public
string
ExamineStatusStr
{
get
;
set
;
}
/// <summary>
/// 审核人
/// </summary>
...
...
@@ -89,5 +94,7 @@ namespace Edu.Model.ViewModel.Exam
/// 审核人
/// </summary>
public
string
ReviewerName
{
get
;
set
;
}
}
}
Edu.Module.Exam/PaperModule.cs
View file @
e97d12bd
...
...
@@ -230,6 +230,7 @@ namespace Edu.Module.Exam
ChildList
=
new
List
<
ExaminationPaperTreeModel
>(),
ExamineStatus
=
childItem
.
ExamineStatus
,
Reviewer
=
childItem
.
Reviewer
,
ExamineStatusStr
=
childItem
.
PaperType
==
2
?
EnumHelper
.
ToName
(
childItem
.
ExamineStatus
)
:
""
,
ReviewerName
=
childItem
.
Reviewer
>
0
?
(
UserReidsCache
.
GetUserLoginInfo
(
childItem
.
Reviewer
)?.
AccountName
??
""
)
:
""
};
childModel
.
ChildList
.
AddRange
(
GetPaperChild
(
sourceList
,
detailsList
,
childItem
.
PaperId
));
...
...
@@ -407,6 +408,15 @@ namespace Edu.Module.Exam
var
newPaperId
=
examination_PaperRepository
.
Insert
(
paperModel
);
paperModel
.
PaperId
=
newPaperId
;
flag
=
newPaperId
>
0
;
var
configureModel
=
new
RB_Examination_Configure_ViewModel
()
{
Group_Id
=
model
.
Group_Id
,
};
var
obj
=
GetExaminationConfigureModel
(
configureModel
);
if
(
paperModel
.
CreateNum
>
0
)
{
for
(
var
i
=
0
;
i
<
paperModel
.
CreateNum
;
i
++)
...
...
@@ -427,9 +437,47 @@ namespace Edu.Module.Exam
PaperType
=
2
,
ParentId
=
newPaperId
,
};
if
(
obj
.
IsOpenZuJuan
==
0
)
{
subModel
.
Reviewer
=
0
;
subModel
.
ExamineStatus
=
Edu
.
Common
.
Enum
.
EduTask
.
EduTaskRrocessStatus
.
AuditThrough
;
}
else
{
subModel
.
Reviewer
=
obj
.
ZuJuanReviewer
;
subModel
.
ExamineStatus
=
Edu
.
Common
.
Enum
.
EduTask
.
EduTaskRrocessStatus
.
AuditIng
;
}
var
newSubPaperId
=
examination_PaperRepository
.
Insert
(
subModel
);
subModel
.
PaperId
=
newSubPaperId
;
flag
=
newSubPaperId
>
0
;
if
(
flag
&&
obj
.
IsOpenZuJuan
==
1
)
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Examination_Paper_ViewModel
.
ExamineStatus
),
Common
.
Enum
.
EduTask
.
EduTaskRrocessStatus
.
AuditIng
},
{
nameof
(
RB_Examination_Paper_ViewModel
.
Reviewer
),
obj
.
ZuJuanReviewer
}
};
flag
=
examination_PaperRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Examination_Paper_ViewModel
.
PaperId
),
subModel
.
PaperId
));
var
educationReceipt
=
new
Model
.
Entity
.
EduTask
.
RB_Education_Receipt
()
{
Id
=
0
,
Title
=
"组卷审批"
,
ReceiptType
=
Common
.
Enum
.
Finance
.
ReceiptTypeEnum
.
ZuJuan
,
RelationId
=
subModel
.
PaperId
,
ClassId
=
0
,
Group_Id
=
subModel
.
Group_Id
,
School_Id
=
subModel
.
School_Id
,
CreateBy
=
subModel
.
CreateBy
,
CreateTime
=
subModel
.
CreateTime
,
UpdateBy
=
subModel
.
CreateBy
,
UpdateTime
=
subModel
.
CreateTime
,
VerifyStatus
=
Common
.
Enum
.
EduTask
.
EduTaskRrocessStatus
.
AuditIng
,
ReceiptFile
=
""
};
flag
=
education_ReceiptRepository
.
SetEducationReceiptRepository
(
educationReceipt
,
out
string
message
);
}
if
(
model
.
TempDataList
!=
null
&&
model
.
TempDataList
.
Count
>
0
)
{
int
G_Sort
=
1
;
...
...
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