EducationMissionClassView.cs 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Text;
  7. using EMIS.ViewModel.CacheManage;
  8. namespace EMIS.ViewModel.EducationManage.EducationArrange
  9. {
  10. public class EducationMissionClassView
  11. {
  12. /// <summary>
  13. /// 主键ID
  14. /// </summary>
  15. [DisplayName("主键ID")]
  16. public Guid EducationMissionClassID { get; set; }
  17. /// <summary>
  18. /// 教学任务ID
  19. /// </summary>
  20. [Required]
  21. [DisplayName("教学任务ID")]
  22. public Guid? EducationMissionID { get; set; }
  23. /// <summary>
  24. /// 学年学期ID
  25. /// </summary>
  26. [Required]
  27. [DisplayName("学年学期ID")]
  28. public Guid? SchoolyearID { get; set; }
  29. /// <summary>
  30. /// 学年学期对应的Value值
  31. /// </summary>
  32. [DisplayName("SchoolyearValue")]
  33. public int? SchoolyearValue { get; set; }
  34. /// <summary>
  35. /// 学年学期
  36. /// </summary>
  37. [DisplayName("学年学期")]
  38. public string SchoolyearCode { get; set; }
  39. /// <summary>
  40. /// 任务名称
  41. /// </summary>
  42. [DisplayName("任务名称")]
  43. public string MissionName { get; set; }
  44. /// <summary>
  45. /// 任务班名称
  46. /// </summary>
  47. [DisplayName("任务班名称")]
  48. public string MissionClassName { get; set; }
  49. /// <summary>
  50. /// 院系所ID
  51. /// </summary>
  52. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  53. public Guid? CollegeID { get; set; }
  54. /// <summary>
  55. /// 院系所代码
  56. /// </summary>
  57. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  58. public string CollegeNo { get; set; }
  59. /// <summary>
  60. /// 院系所名称
  61. /// </summary>
  62. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  63. public string CollegeName { get; set; }
  64. /// <summary>
  65. /// 校区ID
  66. /// </summary>
  67. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  68. public Guid? CampusID { get; set; }
  69. /// <summary>
  70. /// 校区代码
  71. /// </summary>
  72. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  73. public string CampusNo { get; set; }
  74. /// <summary>
  75. /// 校区名称
  76. /// </summary>
  77. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
  78. public string CampusName { get; set; }
  79. /// <summary>
  80. /// 课程信息ID
  81. /// </summary>
  82. [DisplayName("课程信息ID")]
  83. public Guid? CoursematerialID { get; set; }
  84. /// <summary>
  85. /// 课程代码
  86. /// </summary>
  87. [DisplayName("课程代码")]
  88. public string CourseCode { get; set; }
  89. /// <summary>
  90. /// 课程名称
  91. /// </summary>
  92. [DisplayName("课程名称")]
  93. public string CourseName { get; set; }
  94. /// <summary>
  95. /// 课程结构
  96. /// </summary>
  97. [DisplayName("课程结构")]
  98. public int? CourseStructureID { get; set; }
  99. /// <summary>
  100. /// 课程结构
  101. /// </summary>
  102. [DisplayName("课程结构")]
  103. public string CourseStructureName
  104. {
  105. get
  106. {
  107. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseStructure.ToString()).Where(x => x.Value == CourseStructureID).Select(x => x.Name).FirstOrDefault();
  108. }
  109. }
  110. /// <summary>
  111. /// 课程属性
  112. /// </summary>
  113. [DisplayName("课程属性")]
  114. public int? CourseCategoryID { get; set; }
  115. /// <summary>
  116. /// 课程属性
  117. /// </summary>
  118. [DisplayName("课程属性")]
  119. public string CourseCategoryName
  120. {
  121. get
  122. {
  123. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseCategory.ToString()).Where(x => x.Value == CourseCategoryID).Select(x => x.Name).FirstOrDefault();
  124. }
  125. }
  126. /// <summary>
  127. /// 课程类型
  128. /// </summary>
  129. [DisplayName("课程类型")]
  130. public int? CourseTypeID { get; set; }
  131. /// <summary>
  132. /// 课程类型
  133. /// </summary>
  134. [DisplayName("课程类型")]
  135. public string CourseTypeName
  136. {
  137. get
  138. {
  139. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseType.ToString()).Where(x => x.Value == CourseTypeID).Select(x => x.Name).FirstOrDefault();
  140. }
  141. }
  142. /// <summary>
  143. /// 课程性质
  144. /// </summary>
  145. [DisplayName("课程性质")]
  146. public int? CourseQualityID { get; set; }
  147. /// <summary>
  148. /// 课程性质
  149. /// </summary>
  150. [DisplayName("课程性质")]
  151. public string CourseQualityName
  152. {
  153. get
  154. {
  155. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseQuality.ToString()).Where(x => x.Value == CourseQualityID).Select(x => x.Name).FirstOrDefault();
  156. }
  157. }
  158. /// <summary>
  159. /// 课程学分
  160. /// </summary>
  161. [DisplayName("课程学分")]
  162. public decimal? Credit { get; set; }
  163. /// <summary>
  164. /// 开课教研室ID
  165. /// </summary>
  166. [DisplayName("开课教研室")]
  167. public Guid? DepartmentID { get; set; }
  168. /// <summary>
  169. /// 开课教研室代码
  170. /// </summary>
  171. [DisplayName("开课教研室代码")]
  172. public string DepartmentNo { get; set; }
  173. /// <summary>
  174. /// 开课教研室
  175. /// </summary>
  176. [DisplayName("开课教研室")]
  177. public string DepartmentName { get; set; }
  178. /// <summary>
  179. /// 处理方式
  180. /// </summary>
  181. [DisplayName("处理方式")]
  182. public int? HandleModeID { get; set; }
  183. /// <summary>
  184. /// 处理方式
  185. /// </summary>
  186. [DisplayName("处理方式")]
  187. public string HandleModeName
  188. {
  189. get
  190. {
  191. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_HandleMode.ToString()).Where(x => x.Value == HandleModeID).Select(x => x.Name).FirstOrDefault();
  192. }
  193. }
  194. /// <summary>
  195. /// 授课方式
  196. /// </summary>
  197. [DisplayName("授课方式")]
  198. public int? TeachingModeID { get; set; }
  199. /// <summary>
  200. /// 授课方式
  201. /// </summary>
  202. [DisplayName("授课方式")]
  203. public string TeachingModeName
  204. {
  205. get
  206. {
  207. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString()).Where(x => x.Value == TeachingModeID).Select(x => x.Name).FirstOrDefault();
  208. }
  209. }
  210. /// <summary>
  211. /// 任课教师ID
  212. /// </summary>
  213. [DisplayName("任课教师ID")]
  214. public Guid? UserID { get; set; }
  215. /// <summary>
  216. /// 教师工号
  217. /// </summary>
  218. [DisplayName("教师工号")]
  219. public string StaffCode { get; set; }
  220. /// <summary>
  221. /// 任课教师
  222. /// </summary>
  223. [DisplayName("任课教师")]
  224. public string StaffName { get; set; }
  225. /// <summary>
  226. /// 职称
  227. /// </summary>
  228. [DisplayName("职称")]
  229. public int? TitleID { get; set; }
  230. /// <summary>
  231. /// 职称
  232. /// </summary>
  233. [DisplayName("职称")]
  234. public string TitleName
  235. {
  236. get
  237. {
  238. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Title.ToString()).Where(x => x.Value == TitleID).Select(x => x.Name).FirstOrDefault();
  239. }
  240. }
  241. /// <summary>
  242. /// 任课方式
  243. /// </summary>
  244. [DisplayName("任课方式")]
  245. public int? TeachingMethodID { get; set; }
  246. /// <summary>
  247. /// 任课方式
  248. /// </summary>
  249. [DisplayName("任课方式")]
  250. public string TeachingMethodName
  251. {
  252. get
  253. {
  254. return IdNameExt.GetDictionaryItem(DictionaryItem.EM_TeachingMethod.ToString()).Where(x => x.Value == TeachingMethodID).Select(x => x.Name).FirstOrDefault();
  255. }
  256. }
  257. /// <summary>
  258. /// 任务状态
  259. /// </summary>
  260. [DisplayName("任务状态")]
  261. public int? MissionClassStatus { get; set; }
  262. /// <summary>
  263. /// 任务班状态
  264. /// </summary>
  265. public string MissionClassStatusName
  266. {
  267. get
  268. {
  269. return IdNameExt.GetDictionaryItem(DictionaryItem.EM_EducationMissionClassStatus.ToString()).Where(x => x.Value == MissionClassStatus).Select(x => x.Name).FirstOrDefault();
  270. }
  271. }
  272. /// <summary>
  273. /// 人数
  274. /// </summary>
  275. [DisplayName("人数")]
  276. public int? StudentCount { get; set; }
  277. /// <summary>
  278. /// 备注
  279. /// </summary>
  280. [DisplayName("备注")]
  281. public string Remark { get; set; }
  282. /// <summary>
  283. /// 状态
  284. /// </summary>
  285. [DisplayName("状态")]
  286. public int? RecordStatus { get; set; }
  287. /// <summary>
  288. /// 创建人
  289. /// </summary>
  290. [DisplayName("创建人")]
  291. public Guid? CreateUserID { get; set; }
  292. /// <summary>
  293. /// 创建时间
  294. /// </summary>
  295. [DisplayName("创建时间")]
  296. public DateTime? CreateTime { get; set; }
  297. /// <summary>
  298. /// 修改人
  299. /// </summary>
  300. [DisplayName("修改人")]
  301. public Guid? ModifyUserID { get; set; }
  302. /// <summary>
  303. /// 修改时间
  304. /// </summary>
  305. [DisplayName("修改时间")]
  306. public DateTime? ModifyTime { get; set; }
  307. }
  308. }