RetakePlanSettingSchedulingView.cs 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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.RetakeManage
  9. {
  10. public class RetakePlanSettingSchedulingView
  11. {
  12. /// <summary>
  13. /// 类型,1是重修,2是任选,3是教学任务
  14. /// </summary>
  15. [DisplayName("类型")]
  16. public int Type { get; set; }
  17. /// <summary>
  18. /// 重修计划排课ID
  19. /// </summary>
  20. [DisplayName("重修计划排课ID")]
  21. public System.Guid SchedulingID { get; set; }
  22. /// <summary>
  23. /// 学年学期ID
  24. /// </summary>
  25. [DisplayName("学年学期ID")]
  26. public Guid? SchoolyearID { get; set; }
  27. /// <summary>
  28. /// 排课任务班
  29. /// </summary>
  30. [DisplayName("排课任务班")]
  31. public string DefaultClassName { get; set; }
  32. /// <summary>
  33. /// 重修计划ID
  34. /// </summary>
  35. [DisplayName("重修计划ID")]
  36. public Nullable<System.Guid> ID { get; set; }
  37. /// <summary>
  38. /// 重修班级名称
  39. /// </summary>
  40. [DisplayName("重修班级名称")]
  41. public string ClassName { get; set; }
  42. /// <summary>
  43. /// 开课教研室ID
  44. /// </summary>
  45. [DisplayName("开课教研室ID")]
  46. public Guid? CourseDepartmentID { get; set; }
  47. /// <summary>
  48. /// 课程院系所ID
  49. /// </summary>
  50. [DisplayName("课程院系所ID")]
  51. public Guid? CourseCollegeID { get; set; }
  52. /// <summary>
  53. /// 课程时间ID
  54. /// </summary>
  55. [DisplayName("课程时间ID")]
  56. public Guid? CoursesTimeID { get; set; }
  57. /// <summary>
  58. /// 星期
  59. /// </summary>
  60. [DisplayName("星期")]
  61. public Nullable<int> Weekday { get; set; }
  62. /// <summary>
  63. /// 星期
  64. /// </summary>
  65. [DisplayName("星期")]
  66. public string WeekdayName
  67. {
  68. get
  69. {
  70. return IdNameExt.GetDictionaryItem(DictionaryItem.ES_WeekDay.ToString())
  71. .Where(x => x.Value == Weekday)
  72. .Select(x => x.Name).FirstOrDefault();
  73. }
  74. }
  75. /// <summary>
  76. /// 时间段
  77. /// </summary>
  78. [Required]
  79. [DisplayName("时间段")]
  80. public int? TimesSegment { get; set; }
  81. /// <summary>
  82. /// 时间段
  83. /// </summary>
  84. [DisplayName("时间段")]
  85. public string TimesSegmentName { get; set; }
  86. /// <summary>
  87. /// 开始周次
  88. /// </summary>
  89. [DisplayName("开始周次")]
  90. [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
  91. public int? StartWeeklyNum { get; set; }
  92. /// <summary>
  93. /// 结束周次
  94. /// </summary>
  95. [DisplayName("结束周次")]
  96. [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
  97. public int? EndWeeklyNum { get; set; }
  98. /// <summary>
  99. /// 周次
  100. /// </summary>
  101. [Required]
  102. [DisplayName("周次")]
  103. public Nullable<int> Week { get; set; }
  104. /// <summary>
  105. /// 开始节次
  106. /// </summary>
  107. [Required]
  108. [DisplayName("开始节次")]
  109. public Nullable<int> StartTimes { get; set; }
  110. /// <summary>
  111. /// 结束节次
  112. /// </summary>
  113. [Required]
  114. [DisplayName("结束节次")]
  115. public Nullable<int> EndTimes { get; set; }
  116. /// <summary>
  117. /// 节次
  118. /// </summary>
  119. [DisplayName("节次")]
  120. public string Times
  121. {
  122. get
  123. {
  124. if (StartTimes == EndTimes)
  125. {
  126. return StartTimes.Value.ToString();
  127. }
  128. return StartTimes.Value.ToString() + "-" + EndTimes.Value.ToString();
  129. }
  130. }
  131. /// <summary>
  132. /// 上课时间
  133. /// </summary>
  134. [DisplayName("上课时间")]
  135. public string WeekdayTimesSegmentName { get; set; }
  136. /// <summary>
  137. /// 教室类型
  138. /// </summary>
  139. [DisplayName("教室类型")]
  140. public Nullable<int> ClassroomTypeID { get; set; }
  141. /// <summary>
  142. /// 教室类型
  143. /// </summary>
  144. [DisplayName("教室类型")]
  145. public string ClassroomTypeName
  146. {
  147. get
  148. {
  149. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ClassroomType.ToString())
  150. .Where(x => x.Value == ClassroomTypeID)
  151. .Select(x => x.Name).FirstOrDefault();
  152. }
  153. }
  154. /// <summary>
  155. /// 教室ID
  156. /// </summary>
  157. [DisplayName("教室ID")]
  158. public Nullable<Guid> ClassroomID { get; set; }
  159. /// <summary>
  160. /// 教室
  161. /// </summary>
  162. [DisplayName("教室")]
  163. public string ClassroomName { get; set; }
  164. /// <summary>
  165. /// 授课方式
  166. /// </summary>
  167. [DisplayName("授课方式")]
  168. public int? TeachingModeID { get; set; }
  169. /// <summary>
  170. /// 授课方式
  171. /// </summary>
  172. [DisplayName("授课方式")]
  173. public string TeachingModeName
  174. {
  175. get
  176. {
  177. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString())
  178. .Where(x => x.Value == TeachingModeID)
  179. .Select(x => x.Name).FirstOrDefault();
  180. }
  181. }
  182. /// <summary>
  183. /// 状态
  184. /// </summary>
  185. [DisplayName("状态")]
  186. public Nullable<int> RecordStatus { get; set; }
  187. /// <summary>
  188. /// 创建时间
  189. /// </summary>
  190. [DisplayName("创建时间")]
  191. public Nullable<System.DateTime> CreateTime { get; set; }
  192. /// <summary>
  193. /// 创建人ID
  194. /// </summary>
  195. [DisplayName("创建人ID")]
  196. public Nullable<System.Guid> CreateUserID { get; set; }
  197. /// <summary>
  198. /// 修改人ID
  199. /// </summary>
  200. [DisplayName("修改人ID")]
  201. public Nullable<System.Guid> ModifyUserID { get; set; }
  202. /// <summary>
  203. /// 修改时间
  204. /// </summary>
  205. [DisplayName("修改时间")]
  206. public Nullable<System.DateTime> ModifyTime { get; set; }
  207. }
  208. }