using System; using System.Collections.Generic; using System.Linq; using System.Text; using EMIS.ViewModel.CacheManage; using EMIS.Entities; namespace EMIS.ViewModel.ExaminationManage { public class AdultExaminationPlanExportView { public string SchoolyearCode { get; set; } public Nullable CoursematerialID { get; set; } public string CoursematerialName { get; set; } public string ClassName { get; set; } public int? MissionStudentCount { get; set; } public int? StudentCount { get; set; } public Nullable ExamsCategoryID { get; set; } public string ExamsCategoryName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExamsCategory.ToString()) .Where(x => x.Value == ExamsCategoryID) .Select(x => x.Name).FirstOrDefault(); } } public Nullable ExaminationModeID { get; set; } public string ExaminationModeName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExaminationMode.ToString()) .Where(x => x.Value == ExaminationModeID) .Select(x => x.Name).FirstOrDefault(); } } public IEnumerable ExaminationWeekNumList { get; set; } public string ExaminationWeekNumString { get { return string.Join(@"\", ExaminationWeekNumList); } } /// /// 最大排考周次,主要用于排序,不能直接从WeekNum算出…… /// public int? MaxExaminationWeekNum { get; set; } public Nullable ExaminationDate { get; set; } public Nullable StartTime { get; set; } public string StartTimeStr { get { if (StartTime.HasValue) { return StartTime.Value.Hours + ":" + StartTime.Value.Minutes; } else { return null; } } } public Nullable EndTime { get; set; } public string EndTimeStr { get { if (EndTime.HasValue) { return EndTime.Value.Hours + ":" + EndTime.Value.Minutes; } else { return null; } } } public Nullable ClassroomID { get; set; } public string ClassroomName { get; set; } public IEnumerable Sys_User { get; set; } public string TeacherNames { get { return string.Join(@"/", Sys_User.Select(x => x.Name)); } } } }