ScheduleAdjustmentView.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using EMIS.ViewModel.CacheManage;
  6. using System.ComponentModel;
  7. using System.ComponentModel.DataAnnotations;
  8. namespace EMIS.ViewModel.EducationSchedule
  9. {
  10. public class ScheduleAdjustmentView
  11. {
  12. public Guid EducationSchedulingAdjustmentID { get; set; }
  13. public Guid? SchoolyearID { get; set; }
  14. public string SchoolyearCode { get; set; }
  15. public Guid EducationMissionClassID { get; set; }
  16. public string EducationMissionClassName { get; set; }
  17. public string CourseCode { get; set; }
  18. public string CourseName { get; set; }
  19. public Guid? DepartmentID { get; set; }
  20. public Guid? CollegeID { get; set; }
  21. public string CollegeNo { get; set; }
  22. public string CollegeName { get; set; }
  23. public Guid? UserID { get; set; }
  24. public string UserName { get; set; }
  25. public string TeacherNames { get; set; }
  26. public int? WeekNum { get; set; }
  27. public int? Weekday { get; set; }
  28. public string WeekdayDesc
  29. {
  30. get
  31. {
  32. return WeekDayView.GetWeekdayName(Weekday);
  33. }
  34. }
  35. public Guid? CoursesTimeID { get; set; }
  36. public int? StartTimes { get; set; }
  37. public int? EndTimes { get; set; }
  38. public string CoursesTimeName
  39. {
  40. get
  41. {
  42. return (StartTimes ?? 0).ToString()
  43. + "-"
  44. + (EndTimes ?? 0).ToString();
  45. }
  46. }
  47. public string TimeDetail
  48. {
  49. get
  50. {
  51. return "(" + WeekNum.ToString() + "周)" + WeekdayDesc.Replace("星期", "周") + "第" + CoursesTimeName + "节";
  52. }
  53. }
  54. public Guid? ClassroomID { get; set; }
  55. public string ClassroomName { get; set; }
  56. public Guid? ToUserID { get; set; }
  57. public string ToUserName { get; set; }
  58. public string ToTeacherNames { get; set; }
  59. public int? ToWeekNum { get; set; }
  60. public int? ToWeekday { get; set; }
  61. public string ToWeekdayDesc
  62. {
  63. get
  64. {
  65. return WeekDayView.GetWeekdayName(ToWeekday);
  66. }
  67. }
  68. public Guid? ToCoursesTimeID { get; set; }
  69. public int? ToStartTimes { get; set; }
  70. public int? ToEndTimes { get; set; }
  71. public string ToCoursesTimeName
  72. {
  73. get
  74. {
  75. return (ToStartTimes ?? 0).ToString()
  76. + "-"
  77. + (ToEndTimes ?? 0).ToString();
  78. }
  79. }
  80. public string ToTimeDetail
  81. {
  82. get
  83. {
  84. return "(" + ToWeekNum.ToString() + "周)" + ToWeekdayDesc.Replace("星期", "周") + "第" + ToCoursesTimeName + "节";
  85. }
  86. }
  87. public Guid? ToClassroomID { get; set; }
  88. public string ToClassroomName { get; set; }
  89. public Guid? ApplyUserID { get; set; }
  90. public string ApplyUserName { get; set; }
  91. public DateTime? ApplyTime { get; set; }
  92. public Guid? CreateUserID { get; set; }
  93. public string CreateUserName { get; set; }
  94. public DateTime? CreateTime { get; set; }
  95. public int? RecordStatus { get; set; }
  96. public string RecordStatusName { get; set; }
  97. }
  98. }