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
d7d340b6
Commit
d7d340b6
authored
Aug 23, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
b550cb1f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
22 deletions
+55
-22
PaperModule.cs
Edu.Module.Exam/PaperModule.cs
+36
-17
RB_BackClass_ProtocolRepository.cs
Edu.Repository/Contract/RB_BackClass_ProtocolRepository.cs
+5
-4
ExamController.cs
Edu.WebApi/Controllers/Exam/ExamController.cs
+14
-1
No files found.
Edu.Module.Exam/PaperModule.cs
View file @
d7d340b6
...
@@ -613,24 +613,43 @@ namespace Edu.Module.Exam
...
@@ -613,24 +613,43 @@ namespace Edu.Module.Exam
{
nameof
(
RB_Examination_Paper_ViewModel
.
Reviewer
),
obj
.
ZuJuanReviewer
}
{
nameof
(
RB_Examination_Paper_ViewModel
.
Reviewer
),
obj
.
ZuJuanReviewer
}
};
};
flag
=
examination_PaperRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Examination_Paper_ViewModel
.
PaperId
),
model
.
PaperId
));
flag
=
examination_PaperRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Examination_Paper_ViewModel
.
PaperId
),
model
.
PaperId
));
}
return
flag
;
}
/// <summary>
var
educationReceipt
=
new
Model
.
Entity
.
EduTask
.
RB_Education_Receipt
()
/// 提交组卷审批
{
/// </summary>
Id
=
0
,
/// <param name="PaperId"></param>
Title
=
"组卷审批"
,
/// <returns></returns>
ReceiptType
=
Common
.
Enum
.
Finance
.
ReceiptTypeEnum
.
ZuJuan
,
public
bool
SubmitApprovalModule
(
int
PaperId
)
RelationId
=
model
.
PaperId
,
{
ClassId
=
0
,
bool
flag
=
false
;
Group_Id
=
model
.
Group_Id
,
var
model
=
GetExaminationPaperModule
(
PaperId
);
School_Id
=
model
.
School_Id
,
var
educationReceipt
=
new
Model
.
Entity
.
EduTask
.
RB_Education_Receipt
()
CreateBy
=
model
.
CreateBy
,
{
CreateTime
=
model
.
CreateTime
,
Id
=
0
,
UpdateBy
=
model
.
CreateBy
,
Title
=
"组卷审批"
,
UpdateTime
=
model
.
CreateTime
,
ReceiptType
=
Common
.
Enum
.
Finance
.
ReceiptTypeEnum
.
ZuJuan
,
VerifyStatus
=
Common
.
Enum
.
EduTask
.
EduTaskRrocessStatus
.
AuditIng
,
RelationId
=
model
.
PaperId
,
ReceiptFile
=
""
ClassId
=
0
,
};
Group_Id
=
model
.
Group_Id
,
School_Id
=
model
.
School_Id
,
CreateBy
=
model
.
CreateBy
,
CreateTime
=
model
.
CreateTime
,
UpdateBy
=
model
.
CreateBy
,
UpdateTime
=
model
.
CreateTime
,
VerifyStatus
=
Common
.
Enum
.
EduTask
.
EduTaskRrocessStatus
.
AuditIng
,
ReceiptFile
=
""
};
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Examination_Paper_ViewModel
.
ExamineRemark
),
""
},
{
nameof
(
RB_Examination_Paper_ViewModel
.
ExamineStatus
),
Common
.
Enum
.
EduTask
.
EduTaskRrocessStatus
.
AuditIng
},
};
flag
=
examination_PaperRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Examination_Paper_ViewModel
.
PaperId
),
model
.
PaperId
));
if
(
flag
)
{
flag
=
education_ReceiptRepository
.
SetEducationReceiptRepository
(
educationReceipt
,
out
string
message
);
flag
=
education_ReceiptRepository
.
SetEducationReceiptRepository
(
educationReceipt
,
out
string
message
);
}
}
return
flag
;
return
flag
;
...
...
Edu.Repository/Contract/RB_BackClass_ProtocolRepository.cs
View file @
d7d340b6
...
@@ -31,10 +31,11 @@ WHERE 1=1
...
@@ -31,10 +31,11 @@ WHERE 1=1
{
{
if
(
query
.
BackId
>
0
)
if
(
query
.
BackId
>
0
)
{
{
if
(
query
.
QCreateBy
>
0
)
builder
.
AppendFormat
(
@" AND A.{0}={1} "
,
nameof
(
RB_BackClass_Protocol_ViewModel
.
BackId
),
query
.
BackId
);
{
}
builder
.
AppendFormat
(
@" AND A.{0}={1} "
,
nameof
(
RB_BackClass_Protocol_ViewModel
.
BackId
),
query
.
BackId
);
if
(
query
.
QCreateBy
>
0
)
}
{
builder
.
AppendFormat
(
@" AND A.{0}={1} "
,
nameof
(
RB_BackClass_Protocol_ViewModel
.
CreateBy
),
query
.
QCreateBy
);
}
}
}
}
return
Get
<
RB_BackClass_Protocol_ViewModel
>(
builder
.
ToString
()).
ToList
();
return
Get
<
RB_BackClass_Protocol_ViewModel
>(
builder
.
ToString
()).
ToList
();
...
...
Edu.WebApi/Controllers/Exam/ExamController.cs
View file @
d7d340b6
...
@@ -188,7 +188,7 @@ namespace Edu.WebApi.Controllers.Exam
...
@@ -188,7 +188,7 @@ namespace Edu.WebApi.Controllers.Exam
Score
=
sObj
.
GetDecimal
(
"Score"
),
Score
=
sObj
.
GetDecimal
(
"Score"
),
};
};
dSortNum
++;
dSortNum
++;
string
msg
=
analysisQuestion
.
CheckQuestion
(
detailModel
.
QuestionTypeKey
,
detailModel
.
QuestionContent
,
detailModel
.
Answer
,
out
string
newAnswer
);
string
msg
=
analysisQuestion
.
CheckQuestion
(
detailModel
.
QuestionTypeKey
,
detailModel
.
QuestionContent
,
detailModel
.
Answer
,
out
string
newAnswer
);
if
(!
string
.
IsNullOrEmpty
(
msg
))
if
(!
string
.
IsNullOrEmpty
(
msg
))
{
{
return
ApiResult
.
Failed
(
message
:
msg
);
return
ApiResult
.
Failed
(
message
:
msg
);
...
@@ -597,6 +597,19 @@ namespace Edu.WebApi.Controllers.Exam
...
@@ -597,6 +597,19 @@ namespace Edu.WebApi.Controllers.Exam
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
}
/// <summary>
/// 提交组卷审批
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
SubmitApproval
()
{
int
PaperId
=
base
.
ParmJObj
.
GetInt
(
"PaperId"
);
var
flag
=
paperModule
.
SubmitApprovalModule
(
PaperId
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
#
region
考试配置
#
region
考试配置
/// <summary>
/// <summary>
...
...
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