using Exam.Infrastructure.Data.Interface;
using Exam.Infrastructure.Extensions;
using Hotline.Share.Enums.Exams;
using System.ComponentModel;
namespace Exam.Share.ViewResponses.Exam
{
public class UserExamResultViewResponse : IViewResponse
{
///
/// 参考人员
///
[Description("参考人员")]
public string UserName { get; set; }
///
/// 部门名称
///
[Description("部门名称")]
public string OrgName { get; set; }
///
/// 考试标题
///
[Description("考试标题")]
public string ExamName { get; set; }
///
/// 总分
///
[Description("总分")]
public int TotalScore { get; set; }
///
/// 分数线
///
[Description("分数线")]
public int CutoffScore { get; set; }
///
/// 考试分数
///
[Description("考试分数")]
public int Score { get; set; }
///
/// 状态
///
[Description("状态")]
public EPublicStatus Status { get; set; }
///
/// 排序
///
[Description("排序")]
public int SortIndex { get; set; }
///
/// 主键
///
[Description("主键")]
public string Id { get; set; }
///
/// 考试状态
///
[Description("考试状态")]
public EExamStatus ExamStatus { get; set; }
///
/// 是否考试合格
///
[Description("是否考试合格")]
public bool? IsSuccess { get; set; }
///
/// 开始时间
///
[Description("开始时间")]
public DateTime StartTime { get; set; }
///
/// 结束时间
///
[Description("结束时间")]
public DateTime EndTime { get; set; }
///
/// 考试时长
///
[Description("考试时长")]
public int TimeSpan { get; set; }
///
/// 考试类型
///
[Description("考试类型")]
public string ExamTypeDesc
{
get
{
return ExamType.GetDescription();
}
}
///
/// 考试类型
///
[Description("考试类型")]
public EExamType ExamType { get; set; }
///
/// 考试ID
///
[Description("考试ID")]
public string ExamId { get; set; }
///
/// 是否阅卷
///
[Description("是否阅卷")]
public bool IsCheck { get; set; }
///
/// 是否重考
///
[Description("是否重考")]
public bool? IsReExam { get; set; }
///
/// 能否重考
///
[Description("能否重考")]
public bool CanReExam { get; set; }
}
public class GradingResultViewResponse : IViewResponse
{
///
/// 考试标题
///
[Description("考试标题")]
public string ExamName { get; set; }
///
/// 考试编号
///
[Description("考试编号")]
public string ExamCode { get; set; }
///
/// 总分
///
[Description("总分")]
public int TotalScore { get; set; }
///
/// 分数线
///
[Description("分数线")]
public int CutoffScore { get; set; }
///
/// 考试分数
///
[Description("考试分数")]
public int Score { get; set; }
///
/// 是否已阅卷
///
[Description("是否已阅卷")]
public bool IsCheck { get; set; }
///
/// 状态
///
[Description("状态")]
public EPublicStatus Status { get; set; }
///
/// 排序
///
[Description("排序")]
public int SortIndex { get; set; }
///
/// 主键
///
[Description("主键")]
public string Id { get; set; }
///
/// 考试状态
///
[Description("考试状态")]
public EExamStatus ExamStatus { get; set; }
///
/// 备注
///
[Description("备注")]
public string Remark { get; set; }
}
}