ClassroomScheduleView.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace EMIS.ViewModel.EducationSchedule
  6. {
  7. public class ClassroomScheduleView
  8. {
  9. public Guid CoursesTimeID { get; set; }
  10. public int? StartTimes { get; set; }
  11. public int? EndTimes { get; set; }
  12. public int? StartHour { get; set; }
  13. public int? StartMinutes { get; set; }
  14. public int? EndHour { get; set; }
  15. public int? EndMinutes { get; set; }
  16. public string CoursesTimeName
  17. {
  18. get
  19. {
  20. return (StartHour ?? 0).ToString().PadLeft(2, '0')
  21. + ":"
  22. + (StartMinutes ?? 0).ToString().PadLeft(2, '0')
  23. + "-"
  24. + (EndHour ?? 0).ToString().PadLeft(2, '0')
  25. + ":"
  26. + (EndMinutes ?? 0).ToString().PadLeft(2, '0');
  27. }
  28. }
  29. public Guid ClassroomID { get; set; }
  30. public string Monday { get; set; }
  31. public string Tuesday { get; set; }
  32. public string Wednesday { get; set; }
  33. public string Thurday { get; set; }
  34. public string Friday { get; set; }
  35. public string Saturday { get; set; }
  36. public string Sunday { get; set; }
  37. }
  38. }