Commit edba8fbe authored by 黄奎's avatar 黄奎

页面修改

parent 10f5e92b
...@@ -14,5 +14,10 @@ namespace Edu.Model.ViewModel.Exam ...@@ -14,5 +14,10 @@ namespace Edu.Model.ViewModel.Exam
/// 学生姓名 /// 学生姓名
/// </summary> /// </summary>
public string GuestName { get; set; } public string GuestName { get; set; }
/// <summary>
/// 学员编号
/// </summary>
public int GuestId { get; set; }
} }
} }
using Edu.Model.ViewModel.Exam;
using Edu.Repository.Exam;
using System;
using System.Collections.Generic;
using System.Text;
namespace Edu.Module.Exam
{
/// <summary>
/// 处理阅卷
/// </summary>
public partial class PaperModule
{
/// <summary>
/// 学员答案仓储层对象
/// </summary>
private readonly RB_Examination_StudentDetailsRepository examination_StudentDetailsRepository = new RB_Examination_StudentDetailsRepository();
/// <summary>
/// 自动阅卷处理类
/// </summary>
/// <param name="PaperId">试卷编号</param>
/// <param name="PublishId">发布编号</param>
/// <param name="GuestId">学员编号</param>
/// <returns></returns>
public bool AutoReviewPaperModule(int PaperId,int PublishId,int GuestId)
{
bool flag = false;
//试卷题目
var sourceQuestionList = examination_DetailsRepository.GetExaminationDetailsListRepository(new RB_Examination_Details_ViewModel() { PaperId = PaperId });
//学员提交答案列表
var stuQuesList = examination_StudentDetailsRepository.GetExaminationStudentListRepository(new RB_Examination_StudentDetails_ViewModel()
{
GuestId = GuestId,
PaperId = PaperId,
PublishId = PublishId,
});
if (sourceQuestionList != null && sourceQuestionList.Count > 0)
{
foreach (var sItem in sourceQuestionList)
{
switch (sItem.QuestionTypeKey)
{
//单选题
case "single":
break;
//多选题
case "multiple":
break;
//填空题
case "fill-in":
break;
//判断题
case "judge":
break;
//简答题
case "short-answer":
break;
//名词解释
case "noun-explanation":
break;
//论述题
case "essay-question":
break;
//计算题
case "calculation":
break;
//分录题
case "entry-problem":
break;
//资料题
case "data-question":
break;
//连线题
case "matching":
break;
//排序题
case "sorting-problem":
break;
//完型填空
case "cloze":
break;
//阅读理解
case "reading-comprehensio":
break;
//口语题
case "spoken":
break;
//听力题
case "listening":
break;
//公用选项题
case "sharing-choose":
break;
//其它题
case "other":
break;
//单选题-数字
case "single-number":
break;
}
}
}
return flag;
}
}
}
...@@ -36,6 +36,10 @@ WHERE 1=1 ...@@ -36,6 +36,10 @@ WHERE 1=1
{ {
builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_Examination_StudentDetails_ViewModel.ExaminationStuId), query.ExaminationStuId); builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_Examination_StudentDetails_ViewModel.ExaminationStuId), query.ExaminationStuId);
} }
if (query.GuestId > 0)
{
builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_Examination_Student.GuestId), query.GuestId);
}
if (query.PublishId > 0) if (query.PublishId > 0)
{ {
builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_Examination_StudentDetails_ViewModel.PublishId), query.PublishId); builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_Examination_StudentDetails_ViewModel.PublishId), query.PublishId);
......
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