using Edu.Common.Enum.Exam;
using Edu.Model.Entity.Exam;
using System;
using System.Collections.Generic;
using System.Text;

namespace Edu.Model.ViewModel.Exam
{
    /// <summary>
    /// 试卷发布视图实体类
    /// </summary>
    public class RB_Examination_Publish_ViewModel : RB_Examination_Publish
    {
        /// <summary>
        /// 是否查询所有
        /// </summary>
        public int IsQueryAll { get; set; }

        /// <summary>
        /// 考试学员列表
        /// </summary>
        public List<RB_Examination_Student_ViewModel> StudentList { get; set; }

        /// <summary>
        /// 试卷名称
        /// </summary>
        public string PaperName { get; set; }

        /// <summary>
        /// 考生人数
        /// </summary>
        public int StudentCount { get; set; }

        /// <summary>
        /// 查询id
        /// </summary>
        public string QPublishIds { get; set; }

        /// <summary>
        /// 查询不正常的数据
        /// </summary>
        public int IsQNotNormal { get; set; }

        /// <summary>
        /// 学生id
        /// </summary>
        public int GuestId { get; set; }

        /// <summary>
        /// 考试状态(见枚举)
        /// </summary>
        public ExamTestStatusEnum ExamStatus { get; set; }

        /// <summary>
        /// 考试状态
        /// </summary>
        public string ExamStatusStr { get; set; }

        /// <summary>
        /// 图片列表
        /// </summary>
        public List<string> PicList
        {
            get
            {
                List<string> list = new List<string>();
                if (!string.IsNullOrEmpty(this.PublishPic))
                {
                    list = Common.Plugin.JsonHelper.DeserializeObject<List<string>>(this.PublishPic);
                }
                return list;
            }
        }

        /// <summary>
        /// 学员考试表编号
        /// </summary>
        public int Exam_Student_Id { get; set; }

        /// <summary>
        /// 账号编号
        /// </summary>
        public string QAccountIds { get; set; }

        /// <summary>
        /// 查询考试状态【1-未开始,2-进行中,3-已结束】
        /// </summary>
        public int QTestStatus { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public string QStartTime { get; set; }

        /// <summary>
        /// 结束试卷
        /// </summary>
        public string QEndTime { get; set; }

        /// <summary>
        /// 得分
        /// </summary>
        public decimal TotalScore { get; set; }

        /// <summary>
        /// 考试耗时  （秒）
        /// </summary>
        public int ExamSecondTime { get; set; }

        /// <summary>
        /// 我的排名
        /// </summary>
        public int MyRank { get; set; }

        /// <summary>
        /// 最高得分
        /// </summary>
        public decimal MaxScore { get; set; }
    }
}
