ClassroomExcessiveUseSchedulingView.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using Bowin.Common.Utility;
  6. namespace EMIS.ViewModel.EducationSchedule
  7. {
  8. public class ClassroomExcessiveUseSchedulingView
  9. {
  10. /// <summary>
  11. /// ClassroomExcessiveUseSchedulingID
  12. /// </summary>
  13. public System.Guid ClassroomExcessiveUseSchedulingID { get; set; }
  14. /// <summary>
  15. /// ClassroomExcessiveUseID
  16. /// </summary>
  17. public Nullable<System.Guid> ClassroomExcessiveUseID { get; set; }
  18. public Nullable<System.Guid> CollegeID { get; set; }
  19. /// <summary>
  20. /// WeekNum
  21. /// </summary>
  22. public IEnumerable<int?> WeekNumList { get; set; }
  23. /// <summary>
  24. /// Weekday
  25. /// </summary>
  26. public Nullable<int> Weekday { get; set; }
  27. public string WeekdayDesc
  28. {
  29. get
  30. {
  31. if (!Weekday.HasValue) return null;
  32. if (Weekday == 0) return "星期日";
  33. if (Weekday > 0 && Weekday <= 6) return "星期" + Weekday.Value.ConvertToChinese();
  34. return "";
  35. }
  36. }
  37. /// <summary>
  38. /// CoursesTimeID
  39. /// </summary>
  40. public Nullable<System.Guid> CoursesTimeID { get; set; }
  41. public Nullable<int> StartTimes { get; set; }
  42. public Nullable<int> EndTimes { get; set; }
  43. public Nullable<int> StartHour { get; set; }
  44. public Nullable<int> StartMinute { get; set; }
  45. public Nullable<int> EndHour { get; set; }
  46. public Nullable<int> EndMinute { get; set; }
  47. public string TimeDesc
  48. {
  49. get
  50. {
  51. return string.Format("{0}-{1}节", StartTimes, EndTimes);
  52. }
  53. }
  54. }
  55. }