using System; using System.Collections.Generic; using System.Linq; using System.Text; using EMIS.ViewModel.Cache; using System.ComponentModel; namespace EMIS.ViewModel.EducationManage { public class TrainingClassView { public Guid TrainingClassID { get; set; } public Guid? SchoolyearID { get; set; } [DisplayName("学年学期")] public string SchoolyearCode { get; set; } public Guid? ExaminationBatchID { get; set; } [DisplayName("批次")] public string ExaminationBatchName { get; set; } public DateTime? ExaminationBatchCreateTime { get; set; } public Guid? ExaminationTypeID { get; set; } [DisplayName("项目类型")] public string ExaminationTypeName { get; set; } public Guid? ExaminationProjectID { get; set; } [DisplayName("项目名称")] public string ExaminationProjectName { get; set; } public int? SchoolAreaID { get; set; } public string SchoolAreaName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolArea.ToString()) .Where(x => x.Value == SchoolAreaID) .Select(x => x.Name).FirstOrDefault(); } } [DisplayName("培训班名称")] public string Name { get; set; } public int? StudentCount { get; set; } } }