EducationSchedulingWeekNumView.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using EMIS.ViewModel.EducationManagement;
  6. using EMIS.Entities;
  7. namespace EMIS.ViewModel.EducationSchedule
  8. {
  9. public class EducationSchedulingWeekNumView
  10. {
  11. public Guid EducationSchedulingWeekNumID { get; set; }
  12. public Guid? EducationSchedulingID { get; set; }
  13. public Guid? SchoolyearID { get; set; }
  14. public Guid? EducationMissionClassID { get; set; }
  15. public int? WeekNum { get; set; }
  16. public int? Weekday { get; set; }
  17. public Guid? CoursesTimeID { get; set; }
  18. public DateTime Date { get; set; }
  19. public TimeSpan StartTime { get; set; }
  20. public TimeSpan EndTime { get; set; }
  21. public Guid? ClassroomID { get; set; }
  22. public IEnumerable<MissionClassTeacherView> TeacherList { get; set; }
  23. public string TeacherNames
  24. {
  25. get
  26. {
  27. string name = string.Empty;
  28. if (TeacherList != null)
  29. name = string.Join(",", TeacherList.Select(s => s.Name));
  30. if (string.IsNullOrEmpty(name))
  31. {
  32. return "";
  33. }
  34. else
  35. {
  36. return name;
  37. }
  38. }
  39. }
  40. public IEnumerable<CF_Student> StudentList { get; set; }
  41. }
  42. }