using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using EMIS.ViewModel.CacheManage;
namespace EMIS.ViewModel.ScoreManage
{
public class MisconductView
{
///
/// 违纪名单ID
///
public System.Guid MisconductID { get; set; }
///
/// 学生ID
///
[Required]
[DisplayName("学号")]
public Nullable UserID { get; set; }
[DisplayName("学号")]
public string LoginID { get; set; }
[DisplayName("姓名")]
public string Name { get; set; }
[DisplayName("班级")]
public string ClassmajorName { get; set; }
public int? Year { get; set; }
public int? StandardID { get; set; }
///
/// 院系所ID
///
public Guid? CollegeID { get; set; }
///
/// 学年学期
///
[Required]
[DisplayName("学年学期")]
public Nullable SchoolyearID { get; set; }
[DisplayName("学年学期")]
public string SchoolyearCode { get; set; }
///
/// 课程ID
///
[Required]
[DisplayName("课程名称")]
public Nullable CoursematerialID { get; set; }
[DisplayName("课程代码")]
public string CourseCode { get; set; }
[DisplayName("课程名称")]
public string CourseName { get; set; }
///
/// 考试性质
///
[Required]
[DisplayName("考试性质")]
public Nullable ExamsCategoryID { get; set; }
[DisplayName("考试性质")]
public string ExamsCategoryName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExamsCategory.ToString())
.Where(x => x.Value == ExamsCategoryID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 考试状态(舞弊类型)
///
[Required]
[DisplayName("考试状态")]
public Nullable ExamsStateID { get; set; }
[DisplayName("考试状态")]
public string ExamsStateName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExamsState.ToString())
.Where(x => x.Value == ExamsStateID)
.Select(x => x.Name).FirstOrDefault();
}
}
[DisplayName("申请原因")]
public string Reason { get; set; }
///
/// 审核状态
///
[DisplayName("审核状态")]
public Nullable RecordStatus { get; set; }
public string RecordStatusName { get; set; }
public DateTime? CreateTime { get; set; }
}
}