CourseProcessView.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using System.ComponentModel.DataAnnotations;
  7. using EMIS.ViewModel.CacheManage;
  8. namespace EMIS.ViewModel.EducationManage
  9. {
  10. public class CourseProcessView
  11. {
  12. public CourseProcessView()
  13. {
  14. CourseProcessTeacherViewList = new List<CourseProcessTeacherView>();
  15. }
  16. /// <summary>
  17. /// CourseProcessID
  18. /// </summary>
  19. [DisplayName("课程进度ID")]
  20. public System.Guid CourseProcessID { get; set; }
  21. /// <summary>
  22. /// EducationSchedulingClassID
  23. /// </summary>
  24. [DisplayName("任务班名称")]
  25. public Nullable<System.Guid> EducationMissionClassID { get; set; }
  26. [DisplayName("任务班名称")]
  27. public string EducationMissionClassName { get; set; }
  28. public Guid? CollegeID { get; set; }
  29. public Guid? CourseCollegeID { get; set; }
  30. /// <summary>
  31. /// 授课方式
  32. /// </summary>
  33. [DisplayName("授课方式")]
  34. public int? TeachingModeID { get; set; }
  35. /// <summary>
  36. /// 授课方式
  37. /// </summary>
  38. [DisplayName("授课方式")]
  39. public string TeachingModeName
  40. {
  41. get
  42. {
  43. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString())
  44. .Where(x => x.Value == TeachingModeID)
  45. .Select(x => x.Name).FirstOrDefault();
  46. }
  47. }
  48. /// <summary>
  49. /// Week
  50. /// </summary>
  51. [Required]
  52. [DisplayName("周次")]
  53. public Nullable<int> Week { get; set; }
  54. /// <summary>
  55. /// Times
  56. /// </summary>
  57. [Required]
  58. [DisplayName("学时")]
  59. public Nullable<int> Times { get; set; }
  60. /// <summary>
  61. /// ClassroomTypeID
  62. /// </summary>
  63. [DisplayName("教室类型")]
  64. public Nullable<int> ClassroomTypeID { get; set; }
  65. [DisplayName("教室类型")]
  66. public string ClassroomTypeName
  67. {
  68. get
  69. {
  70. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ClassroomType.ToString())
  71. .Where(x => x.Value == ClassroomTypeID)
  72. .Select(x => x.Name).FirstOrDefault();
  73. }
  74. }
  75. /// <summary>
  76. /// ClassroomTypeID
  77. /// </summary>
  78. [DisplayName("教室")]
  79. public Nullable<Guid> ClassroomID { get; set; }
  80. [DisplayName("教室")]
  81. public string ClassroomName { get; set; }
  82. public IList<CourseProcessTeacherView> CourseProcessTeacherViewList { get; set; }
  83. //public string StaffIDAndTeachTypes { get; set; }
  84. public string StaffNames { get { return string.Join(",", CourseProcessTeacherViewList.OrderBy(w => w.TeachingMethod).ThenBy(w => w.Name).Select(w => w.Name)); } }
  85. /// <summary>
  86. /// RecordStatus
  87. /// </summary>
  88. public Nullable<int> RecordStatus { get; set; }
  89. /// <summary>
  90. /// CreateTime
  91. /// </summary>
  92. public Nullable<System.DateTime> CreateTime { get; set; }
  93. /// <summary>
  94. /// CreateUserID
  95. /// </summary>
  96. public Nullable<System.Guid> CreateUserID { get; set; }
  97. /// <summary>
  98. /// ModifyUserID
  99. /// </summary>
  100. public Nullable<System.Guid> ModifyUserID { get; set; }
  101. /// <summary>
  102. /// ModifyTime
  103. /// </summary>
  104. public Nullable<System.DateTime> ModifyTime { get; set; }
  105. }
  106. }