FreeSelectionCoursePlanView.cs 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.ComponentModel;
  7. namespace EMIS.ViewModel.SelectCourse
  8. {
  9. public class FreeSelectionCoursePlanView
  10. {
  11. /// <summary>
  12. /// 主键ID
  13. /// </summary>
  14. [DisplayName("主键ID")]
  15. public Guid FreeSelectionCousePlanID { get; set; }
  16. /// <summary>
  17. /// 任选课程ID
  18. /// </summary>
  19. [Required]
  20. public Guid? FreeSelectionCouseID { get; set; }
  21. /// <summary>
  22. /// 选课编号
  23. /// </summary>
  24. public string FreeSelectionCouseNo { get; set; }
  25. /// <summary>
  26. /// 课程代码
  27. /// </summary>
  28. [DisplayName("课程代码")]
  29. public string CourseCode { get; set; }
  30. /// <summary>
  31. /// 课程名称
  32. /// </summary>
  33. [DisplayName("课程名称")]
  34. public string CourseName { get; set; }
  35. /// <summary>
  36. /// 课程结构
  37. /// </summary>
  38. [Required]
  39. [DisplayName("课程结构")]
  40. public int? CourseStructureID { get; set; }
  41. /// <summary>
  42. /// 课程结构
  43. /// </summary>
  44. [DisplayName("课程结构")]
  45. public string CourseStructureName { get; set; }
  46. /// <summary>
  47. /// 课程类别
  48. /// </summary>
  49. [Required]
  50. [DisplayName("课程属性")]
  51. public int? CourseCategoryID { get; set; }
  52. /// <summary>
  53. /// 课程类别
  54. /// </summary>
  55. [DisplayName("课程属性")]
  56. public string CourseCategoryName { get; set; }
  57. /// <summary>
  58. /// 课程类型
  59. /// </summary>
  60. [Required]
  61. [DisplayName("课程类型")]
  62. public int? CourseTypeID { get; set; }
  63. /// <summary>
  64. /// 课程类型名称
  65. /// </summary>
  66. [DisplayName("课程类型名称")]
  67. public string CourseTypeName { get; set; }
  68. /// <summary>
  69. /// 课程性质
  70. /// </summary>
  71. [Required]
  72. [DisplayName("课程性质")]
  73. public int? CourseQualityID { get; set; }
  74. /// <summary>
  75. /// 课程性质
  76. /// </summary>
  77. [DisplayName("课程性质名称")]
  78. public string CourseQualityName { get; set; }
  79. /// <summary>
  80. /// 授课方式
  81. /// </summary>
  82. [Required]
  83. [DisplayName("授课方式")]
  84. public int? TeachingModeID { get; set; }
  85. /// <summary>
  86. /// 授课方式名称
  87. /// </summary>
  88. [DisplayName("授课方式名称")]
  89. public string TeachingModeName { get; set; }
  90. /// <summary>
  91. /// 考试方式
  92. /// </summary>
  93. [Required]
  94. [DisplayName("考试方式")]
  95. public int? ExaminationModeID { get; set; }
  96. /// <summary>
  97. /// 考试方式名称
  98. /// </summary>
  99. [DisplayName("考试方式名称")]
  100. public string ExaminationModeName { get; set; }
  101. /// <summary>
  102. /// 授课语言
  103. /// </summary>
  104. [Required]
  105. [DisplayName("授课语言")]
  106. public int? TeachinglanguageID { get; set; }
  107. /// <summary>
  108. /// 授课语言名称
  109. /// </summary>
  110. [DisplayName("授课语言名称")]
  111. public string TeachinglanguageName { get; set; }
  112. /// <summary>
  113. /// 学年数
  114. /// </summary>
  115. [Required]
  116. [DisplayName("学年数")]
  117. public int? SchoolyearNumID { get; set; }
  118. /// <summary>
  119. /// 学年数名称
  120. /// </summary>
  121. [DisplayName("学年数名称")]
  122. public string SchoolyearNumName { get; set; }
  123. /// <summary>
  124. /// 学期
  125. /// </summary>
  126. [Required]
  127. [DisplayName("学期")]
  128. public int? SchoolcodeID { get; set; }
  129. /// <summary>
  130. /// 学期名称
  131. /// </summary>
  132. [DisplayName("学期名称")]
  133. public string SchoolcodeName { get; set; }
  134. /// <summary>
  135. /// 开课学期
  136. /// </summary>
  137. [Required]
  138. [DisplayName("开课学期")]
  139. public int? StarttermID { get; set; }
  140. /// <summary>
  141. /// 开课学期名称
  142. /// </summary>
  143. [DisplayName("开课学期名称")]
  144. public string StarttermName { get; set; }
  145. /// <summary>
  146. /// 是否启用
  147. /// </summary>
  148. [Required]
  149. [DisplayName("是否启用")]
  150. public bool IsEnable { get; set; }
  151. /// <summary>
  152. /// 是否启用名称
  153. /// </summary>
  154. [DisplayName("是否启用")]
  155. public string IsEnableDesc { get; set; }
  156. /// <summary>
  157. /// 学分
  158. /// </summary>
  159. [DisplayName("学分")]
  160. [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
  161. public decimal? Credit { get; set; }
  162. /// <summary>
  163. /// 总学时
  164. /// </summary>
  165. [DisplayName("总学时")]
  166. [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
  167. public decimal? Totalhours { get; set; }
  168. /// <summary>
  169. /// 理论学时
  170. /// </summary>
  171. [DisplayName("理论学时")]
  172. [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
  173. public decimal? TheoryCourse { get; set; }
  174. /// <summary>
  175. /// 实践学时
  176. /// </summary>
  177. [DisplayName("实践学时")]
  178. [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
  179. public decimal? Practicehours { get; set; }
  180. /// <summary>
  181. /// 实验学时
  182. /// </summary>
  183. [DisplayName("实验学时")]
  184. [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
  185. public decimal? Trialhours { get; set; }
  186. /// <summary>
  187. /// 上课周数
  188. /// </summary>
  189. [DisplayName("上课周数")]
  190. [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
  191. public decimal? SchoolweeksNum { get; set; }
  192. /// <summary>
  193. /// 每周次数
  194. /// </summary>
  195. [DisplayName("每周次数")]
  196. [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
  197. public decimal? WeeklyNum { get; set; }
  198. /// <summary>
  199. /// 理论周次
  200. /// </summary>
  201. [DisplayName("理论周次")]
  202. [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
  203. public decimal? TheoryWeeklyNum { get; set; }
  204. /// <summary>
  205. /// 实践周次
  206. /// </summary>
  207. [DisplayName("实践周次")]
  208. [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
  209. public decimal? PracticeWeeklyNum { get; set; }
  210. /// <summary>
  211. /// 实验周次
  212. /// </summary>
  213. [DisplayName("实验周次")]
  214. [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
  215. public decimal? TrialWeeklyNum { get; set; }
  216. /// <summary>
  217. /// 开始周次
  218. /// </summary>
  219. [DisplayName("开始周次")]
  220. [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
  221. public decimal? StartWeeklyNum { get; set; }
  222. /// <summary>
  223. /// 结束周次
  224. /// </summary>
  225. [DisplayName("结束周次")]
  226. [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
  227. public decimal? EndWeeklyNum { get; set; }
  228. /// <summary>
  229. /// 是否需要教材
  230. /// </summary>
  231. [DisplayName("是否需要教材")]
  232. public bool IsNeedMaterial { get; set; }
  233. /// <summary>
  234. /// 是否需要教材
  235. /// </summary>
  236. [DisplayName("是否需要教材")]
  237. public string IsNeedMaterialName { get; set; }
  238. /// <summary>
  239. /// 创建人
  240. /// </summary>
  241. [DisplayName("创建人")]
  242. public Guid? CreateUserID { get; set; }
  243. /// <summary>
  244. /// 创建时间
  245. /// </summary>
  246. [DisplayName("创建时间")]
  247. public DateTime? CreateTime { get; set; }
  248. /// <summary>
  249. /// 备注
  250. /// </summary>
  251. [DisplayName("备注")]
  252. public string Remarks { get; set; }
  253. }
  254. }