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.ExaminationApply { public class ExaminationSubjectView { /// /// 考试科目ID /// [DisplayName("考试科目ID")] public System.Guid ExaminationSubjectID { get; set; } /// /// 考试科目 /// [Required] [DisplayName("考试科目")] public string Name { get; set; } /// /// 学年学期ID /// [Required] [DisplayName("学年学期")] public Nullable SchoolyearID { get; set; } /// /// 学年学期 /// [DisplayName("学年学期")] public string SchoolyearCode { get; set; } /// /// 考试类型ID /// [Required] [DisplayName("考试类型")] public Nullable ExaminationTypeID { get; set; } /// /// 考试类型 /// [DisplayName("考试类型")] public string ExaminationTypeName { get; set; } /// /// 考试类别ID /// [Required] [DisplayName("考试类别")] public Nullable ExaminationFormID { get; set; } /// /// 考试类别 /// [DisplayName("考试类别")] public string ExaminationFormName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationForm.ToString()) .Where(x => x.Value == ExaminationFormID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 考试性质ID /// [Required] [DisplayName("考试性质ID")] public Nullable ExaminationFormsID { get; set; } /// /// 考试性质 /// [DisplayName("考试性质")] public string ExaminationFormNames { get { return IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationForm.ToString()) .Where(x => x.Value == ExaminationFormsID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 要求通过科目ID /// [DisplayName("要求通过科目")] public Nullable PreposeSubjectID { get; set; } /// /// 要求通过科目 /// [DisplayName("要求通过科目")] public string PreposeSubjectName { get; set; } /// /// 通过科目最低成绩 /// [DisplayName("通过科目最低成绩")] public Nullable PreposeScoreLimit { get; set; } /// /// 考试日期 /// [Required] [DisplayName("考试日期")] public Nullable ExaminationDate { get; set; } /// /// 最大报名人数 /// [Required] [DisplayName("最大报名人数")] [RegularExpression(@"^[1-9]\d*$", ErrorMessage = "必须填写正整数")] public Nullable PeopleNumLimit { get; set; } /// /// 报名费 /// [DisplayName("报名费")] public Nullable Cost { get; set; } /// /// 考试说明 /// [Required] [DisplayName("考试说明")] public string Remark { get; set; } /// /// RecordStatus /// public Nullable RecordStatus { get; set; } /// /// CreateTime /// public Nullable CreateTime { get; set; } /// /// CreateUserID /// public Nullable CreateUserID { get; set; } /// /// ModifyUserID /// public Nullable ModifyUserID { get; set; } /// /// ModifyTime /// public Nullable ModifyTime { get; set; } } }