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.ExaminationManage { public class ExaminationModeSettingView { public Guid ExaminationModeSettingID { get; set; } [Required] [DisplayName("考试方式")] public int? ExaminationModeID { get; set; } public string ExaminationModeDesc { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExaminationMode) .Where(x => x.Value == ExaminationModeID) .Select(x => x.Name).FirstOrDefault(); } } [DisplayName("是否生成考试计划")] public bool IsGeneratePlan { get; set; } public string IsGeneratePlanDesc { get { return IsGeneratePlan ? "是" : "否"; } } } }