Commit d7d340b6 authored by 黄奎's avatar 黄奎

页面修改

parent b550cb1f
...@@ -613,8 +613,19 @@ namespace Edu.Module.Exam ...@@ -613,8 +613,19 @@ 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>
/// 提交组卷审批
/// </summary>
/// <param name="PaperId"></param>
/// <returns></returns>
public bool SubmitApprovalModule(int PaperId)
{
bool flag = false;
var model = GetExaminationPaperModule(PaperId);
var educationReceipt = new Model.Entity.EduTask.RB_Education_Receipt() var educationReceipt = new Model.Entity.EduTask.RB_Education_Receipt()
{ {
Id = 0, Id = 0,
...@@ -631,6 +642,14 @@ namespace Edu.Module.Exam ...@@ -631,6 +642,14 @@ namespace Edu.Module.Exam
VerifyStatus = Common.Enum.EduTask.EduTaskRrocessStatus.AuditIng, VerifyStatus = Common.Enum.EduTask.EduTaskRrocessStatus.AuditIng,
ReceiptFile = "" 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;
......
...@@ -30,11 +30,12 @@ WHERE 1=1 ...@@ -30,11 +30,12 @@ WHERE 1=1
if (query != null) if (query != null)
{ {
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();
......
...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment