EducationSchedulingStopView.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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.DataAnnotations;
  7. using System.ComponentModel;
  8. namespace EMIS.ViewModel.EducationSchedule
  9. {
  10. public class EducationSchedulingStopView
  11. {
  12. public EducationSchedulingStopView()
  13. {
  14. this.ScheduleWeekNumList = new List<int?>();
  15. this.TeacherList = new List<EducationSchedulingStopTeacherView>();
  16. }
  17. public System.Guid EducationSchedulingStopID { get; set; }
  18. public Guid? SchoolyearID { get; set; }
  19. public string SchoolyearCode { get; set; }
  20. public string CourseCode { get; set; }
  21. public string CourseName { get; set; }
  22. public Nullable<System.Guid> EducationMissionClassID { get; set; }
  23. public string EducationMissionClassName { get; set; }
  24. public Guid? UserID { get; set; }
  25. public string applyUserName { get; set; }
  26. public DateTime? ApplyTime { get; set; }
  27. public List<EducationSchedulingStopTeacherView> TeacherList { get; set; }
  28. public string TeacherNames
  29. {
  30. get
  31. {
  32. return string.Join(",", TeacherList.Select(w => w.Name));
  33. }
  34. }
  35. public IList<int?> ScheduleWeekNumList { get; set; }
  36. [Required]
  37. [DisplayName("停课周次")]
  38. public Nullable<int> WeekNum { get; set; }
  39. public Nullable<int> Weekday { get; set; }
  40. public string WeekdayDesc
  41. {
  42. get
  43. {
  44. return WeekDayView.GetWeekdayName(Weekday);
  45. }
  46. }
  47. public Guid? CoursesTimeID { get; set; }
  48. public int? StartTimes { get; set; }
  49. public int? EndTimes { get; set; }
  50. public string CoursesTimeName
  51. {
  52. get
  53. {
  54. return (StartTimes ?? 0).ToString()
  55. + "-"
  56. + (EndTimes ?? 0).ToString();
  57. }
  58. }
  59. public string TimeDetail
  60. {
  61. get
  62. {
  63. return "第" + WeekNum.ToString() + "周" + WeekdayDesc.Replace("星期", "周") + "第" + CoursesTimeName + "节";
  64. }
  65. }
  66. public Guid? ClassroomID { get; set; }
  67. public string ClassroomName { get; set; }
  68. public Guid? CreateUserID { get; set; }
  69. public string CreateUserName { get; set; }
  70. public DateTime? CreateTime { get; set; }
  71. /// <summary>
  72. /// RecordStatus
  73. /// </summary>
  74. public Nullable<int> RecordStatus { get; set; }
  75. public string RecordStatusName { get; set; }
  76. }
  77. }