ExecutableFreeSelectionCouseSchedulingView.cs 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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.SelectCourse
  9. {
  10. public class ExecutableFreeSelectionCouseSchedulingView
  11. {
  12. public string DefaultClassName { get; set; }
  13. /// <summary>
  14. /// CourseProcessID
  15. /// </summary>
  16. [DisplayName("ID")]
  17. public System.Guid SchedulingID { get; set; }
  18. /// <summary>
  19. /// EducationSchedulingClassID
  20. /// </summary>
  21. public Guid? SchoolyearID { get; set; }
  22. [DisplayName("任选ID")]
  23. public Nullable<System.Guid> ID { get; set; }
  24. [DisplayName("任务班名称")]
  25. public string ClassName { get; set; }
  26. public Guid? CourseCollegeID { get; set; }
  27. public Guid? CoursesTimeID { get; set; }
  28. /// <summary>
  29. /// 时间节段
  30. /// </summary>
  31. [Required]
  32. [DisplayName("时间节段")]
  33. public int? TimesSegment { get; set; }
  34. /// <summary>
  35. /// 时间节段
  36. /// </summary>
  37. [DisplayName("时间节段")]
  38. public string TimesSegmentName { get; set; }
  39. /// <summary>
  40. /// 授课方式
  41. /// </summary>
  42. [DisplayName("授课方式")]
  43. public int? TeachingModeID { get; set; }
  44. /// <summary>
  45. /// 授课方式
  46. /// </summary>
  47. [DisplayName("授课方式")]
  48. public string TeachingModeName
  49. {
  50. get
  51. {
  52. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString())
  53. .Where(x => x.Value == TeachingModeID)
  54. .Select(x => x.Name).FirstOrDefault();
  55. }
  56. }
  57. /// <summary>
  58. /// Week
  59. /// </summary>
  60. [Required]
  61. [DisplayName("周次")]
  62. public Nullable<int> Week { get; set; }
  63. /// <summary>
  64. /// Times
  65. /// </summary>
  66. [Required]
  67. [DisplayName("学时")]
  68. public Nullable<int> StartTimes { get; set; }
  69. public Nullable<int> EndTimes { get; set; }
  70. public string Times
  71. {
  72. get
  73. {
  74. if (StartTimes == EndTimes)
  75. {
  76. return StartTimes.Value.ToString();
  77. }
  78. return StartTimes.Value.ToString() + "-" + EndTimes.Value.ToString();
  79. }
  80. }
  81. /// <summary>
  82. /// ClassroomTypeID
  83. /// </summary>
  84. [DisplayName("教室类型")]
  85. public Nullable<int> ClassroomTypeID { get; set; }
  86. [DisplayName("教室类型")]
  87. public string ClassroomTypeName
  88. {
  89. get
  90. {
  91. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ClassroomType.ToString())
  92. .Where(x => x.Value == ClassroomTypeID)
  93. .Select(x => x.Name).FirstOrDefault();
  94. }
  95. }
  96. /// <summary>
  97. /// ClassroomTypeID
  98. /// </summary>
  99. [DisplayName("教室")]
  100. public Nullable<Guid> ClassroomID { get; set; }
  101. [DisplayName("教室")]
  102. public string ClassroomName { get; set; }
  103. /// <summary>
  104. /// 星期
  105. /// </summary>
  106. public Nullable<int> Weekday { get; set; }
  107. public string WeekdayName
  108. {
  109. get
  110. {
  111. return IdNameExt.GetDictionaryItem(DictionaryItem.ES_WeekDay.ToString())
  112. .Where(x => x.Value == Weekday)
  113. .Select(x => x.Name).FirstOrDefault();
  114. }
  115. }
  116. public string WeekdayName1
  117. {
  118. get; set;
  119. }
  120. [DisplayName("上课时间")]
  121. public string WeekdayTimesSegmentName { get; set; }
  122. /// <summary>
  123. /// 开始周次
  124. /// </summary>
  125. [DisplayName("开始周次")]
  126. [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
  127. public int? StartWeeklyNum { get; set; }
  128. /// <summary>
  129. /// 结束周次
  130. /// </summary>
  131. [DisplayName("结束周次")]
  132. [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
  133. public int? EndWeeklyNum { get; set; }
  134. /// <summary>
  135. /// RecordStatus
  136. /// </summary>
  137. public Nullable<int> RecordStatus { get; set; }
  138. /// <summary>
  139. /// CreateTime
  140. /// </summary>
  141. public Nullable<System.DateTime> CreateTime { get; set; }
  142. /// <summary>
  143. /// CreateUserID
  144. /// </summary>
  145. public Nullable<System.Guid> CreateUserID { get; set; }
  146. /// <summary>
  147. /// ModifyUserID
  148. /// </summary>
  149. public Nullable<System.Guid> ModifyUserID { get; set; }
  150. /// <summary>
  151. /// ModifyTime
  152. /// </summary>
  153. public Nullable<System.DateTime> ModifyTime { get; set; }
  154. }
  155. }