using System; using System.Collections.Generic; using System.Linq; using System.Text; using EMIS.ViewModel.EducationManagement; using EMIS.Entities; namespace EMIS.ViewModel.EducationSchedule { public class EducationSchedulingWeekNumView { public Guid EducationSchedulingWeekNumID { get; set; } public Guid? EducationSchedulingID { get; set; } public Guid? SchoolyearID { get; set; } public Guid? EducationMissionClassID { get; set; } public int? WeekNum { get; set; } public int? Weekday { get; set; } public Guid? CoursesTimeID { get; set; } public DateTime Date { get; set; } public TimeSpan StartTime { get; set; } public TimeSpan EndTime { get; set; } public Guid? ClassroomID { get; set; } public IEnumerable TeacherList { get; set; } public string TeacherNames { get { string name = string.Empty; if (TeacherList != null) name = string.Join(",", TeacherList.Select(s => s.Name)); if (string.IsNullOrEmpty(name)) { return ""; } else { return name; } } } public IEnumerable StudentList { get; set; } } }