using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using EMIS.ViewModel.Cache; namespace EMIS.ViewModel { public class ExamPersonControlView { public Guid ExaminationBatchProjectPersonControlID { get; set; } [Required] [DisplayName("考试批次项目设置")] public Guid? ExaminationBatchProjectID { get; set; } [DisplayName("考试批次")] public Guid? ExaminationBatchID { get; set; } [Required] [DisplayName("项目收费标准")] public Guid? ExaminationProjectFeeID { get; set; } [DisplayName("用户ID")] public Guid? UserID { get; set; } [DisplayName("是否线上缴费")] public bool? IsOnlinePay { get; set; } [Required] [DisplayName("考试批次项目设置")] public string ExaminationBatchProject { get; set; } [DisplayName("项目收费标准")] public string ExaminationProjectFee { get; set; } public Guid? ExaminationProjectID { get; set; } [Required] [DisplayName("报名起始时间")] public Nullable StartDate { get; set; } [Required] [DisplayName("报名截止时间")] public DateTime? EndDate { get; set; } [Required] [DisplayName("学年学期")] public Guid? SchoolYearCode { get; set; } [DisplayName("项目类型")] public string ExaminationType { get; set; } [DisplayName("项目名称")] public string ProjectName { get; set; } public string IsOnlinePayName { get; set; } [DisplayName("项目类型")] public Guid? ExaminationTypeID { get; set; } public string Schoolyear { get; set; } /// /// 院系专业名称 /// [DisplayName("院系专业名称")] public string FacultymajorName { get; set; } /// /// 院系所名称 /// [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")] public string CollegeName { get; set; } /// /// 年级专业名称 /// [DisplayName("年级专业名称")] public string GrademajorName { get; set; } public Guid? CollegeID { get; set; } public Guid? ClassmajorID { get; set; } /// /// 班级名称 /// [DisplayName("班级名称")] public string ClassmajorName { get; set; } /// /// 专业名称 /// [DisplayName("专业名称")] public string SpecialtyName { get; set; } /// /// 年级 /// [DisplayName("年级")] public string Years { get; set; } /// /// 姓名 /// [DisplayName("姓名")] public string UserName { get; set; } /// /// 性别 /// [DisplayName("性别")] public int? Sex { get; set; } /// /// 性别 /// [DisplayName("性别")] public string SexName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString()) .Where(x => x.Value == Sex) .Select(x => x.Name).FirstOrDefault(); } } /// /// 身份证号 /// [DisplayName("身份证号")] public string IDNumber { get; set; } /// /// 标准专业 /// [DisplayName("标准专业")] public int? StandardID { get; set; } /// /// 标准专业名称 /// [DisplayName("专业名称")] public string StandardName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()) .Where(x => x.Value == StandardID) .Select(x => x.Name).FirstOrDefault(); } } } }