using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using EMIS.ViewModel.CacheManage; namespace EMIS.ViewModel.SelectCourse { public class ExaminationSubjectCollegeControlView { /// /// 专业报考限制ID /// [DisplayName("专业报考限制ID")] public Guid ExaminationSubjectCollegeControlID { get; set; } /// /// 考试科目ID /// [Required] [DisplayName("考试科目ID")] public Guid? ExaminationSubjectID { get; set; } /// /// 考试科目 /// [Required] [DisplayName("考试科目")] public string ExaminationSubjectName { get; set; } /// /// 考试类型ID /// [Required] [DisplayName("考试类型")] public Guid? ExaminationTypeID { get; set; } /// /// 考试类型 /// [DisplayName("考试类型")] public string ExaminationTypeName { get; set; } /// /// 院系专业ID /// [Required] [DisplayName("院系专业ID")] public Guid? FacultymajorID { get; set; } /// /// 院系专业 /// [Required] [DisplayName("院系专业")] public string FacultymajorName { get; set; } /// /// 院系所ID /// [DisplayName("院系所ID")] public Guid? CollegeID { get; set; } /// /// 院系所 /// [DisplayName("院系所")] public string CollegeName { get; set; } /// /// 年级数 /// [DisplayName("年级数")] public int? SchoolyearNumID { get; set; } /// /// 年级数 /// [DisplayName("年级数")] public string SchoolyearNum { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolyearNum.ToString()) .Where(x => x.Value == SchoolyearNumID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 状态 /// [DisplayName("状态")] public int? RecordStatus { get; set; } } }