EducationMissionClassCheckView.cs 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using EMIS.ViewModel.CacheManage;
  7. using EMIS.ViewModel.EducationManagement;
  8. using EMIS.Entities;
  9. using System.ComponentModel.DataAnnotations;
  10. namespace EMIS.ViewModel.EducationManage
  11. {
  12. public class EducationMissionClassCheckView
  13. {
  14. /// <summary>
  15. /// 教学检查ID
  16. /// </summary>
  17. [Required]
  18. [DisplayName("教学检查ID")]
  19. public Guid EducationMissionClassCheckID { get; set; }
  20. /// <summary>
  21. /// 排课周次ID
  22. /// </summary>
  23. [DisplayName("排课周次ID")]
  24. public Guid? EducationSchedulingWeekNumID { get; set; }
  25. /// <summary>
  26. /// 院系所ID
  27. /// </summary>
  28. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  29. public Guid? CollegeID { get; set; }
  30. /// <summary>
  31. /// 院系所代码
  32. /// </summary>
  33. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  34. public string CollegeNo { get; set; }
  35. /// <summary>
  36. /// 院系所名称
  37. /// </summary>
  38. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  39. public string CollegeName { get; set; }
  40. /// <summary>
  41. /// 任务班ID
  42. /// </summary>
  43. [Required]
  44. [DisplayName("任务班")]
  45. public Guid? EducationMissionClassID { get; set; }
  46. /// <summary>
  47. /// 任务班名称
  48. /// </summary>
  49. [DisplayName("任务班名称")]
  50. public string EducationMissionClassName { get; set; }
  51. /// <summary>
  52. /// 排课课表ID
  53. /// </summary>
  54. [DisplayName("排课课表ID")]
  55. public Guid? EducationSchedulingID { get; set; }
  56. /// <summary>
  57. /// 学年学期ID
  58. /// </summary>
  59. [Required]
  60. [DisplayName("学年学期")]
  61. public Guid? SchoolyearID { get; set; }
  62. /// <summary>
  63. /// 学年学期
  64. /// </summary>
  65. [DisplayName("学年学期")]
  66. public string SchoolyearCode { get; set; }
  67. /// <summary>
  68. /// 课程信息ID
  69. /// </summary>
  70. [Required]
  71. [DisplayName("课程")]
  72. public Guid? CoursematerialID { get; set; }
  73. /// <summary>
  74. /// 课程代码
  75. /// </summary>
  76. [DisplayName("课程代码")]
  77. public string CourseCode { get; set; }
  78. /// <summary>
  79. /// 课程名称
  80. /// </summary>
  81. [DisplayName("课程名称")]
  82. public string CourseName { get; set; }
  83. /// <summary>
  84. /// 教师ID
  85. /// </summary>
  86. public List<Guid> UserID { get; set; }
  87. /// <summary>
  88. /// 教师姓名
  89. /// </summary>
  90. [DisplayName("授课老师")]
  91. public string TeacherName
  92. {
  93. get
  94. {
  95. string name = string.Empty;
  96. if (MissionClassTeacherView != null)
  97. name = string.Join(",", MissionClassTeacherView.Select(s => s.Name));
  98. if (string.IsNullOrEmpty(name))
  99. {
  100. return "";
  101. }
  102. else
  103. {
  104. return name;
  105. }
  106. }
  107. }
  108. [DisplayName("授课老师集合")]
  109. public IEnumerable<MissionClassTeacherView> MissionClassTeacherView { get; set; }
  110. /// <summary>
  111. /// 周次
  112. /// </summary>
  113. [Required]
  114. [DisplayName("周次")]
  115. public int? WeekNum { get; set; }
  116. /// <summary>
  117. /// 星期
  118. /// </summary>
  119. [Required]
  120. [DisplayName("星期")]
  121. public int? Weekday { get; set; }
  122. /// <summary>
  123. /// 星期
  124. /// </summary>
  125. [DisplayName("星期")]
  126. public string WeekdayName {
  127. get
  128. {
  129. return IdNameExt.GetDictionaryItem(DictionaryItem.ES_WeekDay.ToString())
  130. .Where(x => x.Value == Weekday)
  131. .Select(x => x.Name).FirstOrDefault();
  132. }
  133. }
  134. /// <summary>
  135. /// 课程时间
  136. /// </summary>
  137. [Required]
  138. [DisplayName("节次")]
  139. public Guid? CoursesTimeID { get; set; }
  140. /// <summary>
  141. /// 开始节次
  142. /// </summary>
  143. [DisplayName("开始节次")]
  144. public int StartTimes { get; set; }
  145. /// <summary>
  146. /// 结束节次
  147. /// </summary>
  148. [DisplayName("结束节次")]
  149. public int EndTimes { get; set; }
  150. /// <summary>
  151. /// 节次
  152. /// </summary>
  153. [DisplayName("节次")]
  154. public string Times
  155. {
  156. get
  157. {
  158. if (StartTimes == EndTimes)
  159. {
  160. return StartTimes.ToString();
  161. }
  162. else
  163. {
  164. return StartTimes.ToString() + "-" + EndTimes.ToString();
  165. }
  166. }
  167. }
  168. /// <summary>
  169. /// 时间节段
  170. /// </summary>
  171. public int TimesSegment { get; set; }
  172. /// <summary>
  173. /// TimesSegment
  174. /// </summary>
  175. public string TimesSegmentName
  176. {
  177. get
  178. {
  179. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TimesSegment.ToString())
  180. .Where(x => x.Value == TimesSegment)
  181. .Select(x => x.Name).FirstOrDefault();
  182. }
  183. }
  184. /// <summary>
  185. /// 教室ID
  186. /// </summary>
  187. [Required]
  188. [DisplayName("场地")]
  189. public Guid? ClassroomID { get; set; }
  190. /// <summary>
  191. /// 教室编号
  192. /// </summary>
  193. [DisplayName("教室编号")]
  194. public string ClassroomCode { get; set; }
  195. /// <summary>
  196. /// 教室名称
  197. /// </summary>
  198. [DisplayName("教室名称")]
  199. public string ClassroomName { get; set; }
  200. /// <summary>
  201. /// 学生情况
  202. /// </summary>
  203. [DisplayName("学生情况")]
  204. public string StudentComment { get; set; }
  205. /// <summary>
  206. /// 教师情况
  207. /// </summary>
  208. [DisplayName("教师情况")]
  209. public string TeacherComment { get; set; }
  210. /// <summary>
  211. /// 设备及其他情况
  212. /// </summary>
  213. [DisplayName("设备及其他情况")]
  214. public string DeviceComment { get; set; }
  215. /// <summary>
  216. /// 检查方式
  217. /// </summary>
  218. [DisplayName("检查方式")]
  219. public int? CheckWayID { get; set; }
  220. /// <summary>
  221. /// 检查方式
  222. /// </summary>
  223. [DisplayName("检查方式")]
  224. public string CheckWayName
  225. {
  226. get
  227. {
  228. return IdNameExt.GetDictionaryItem(DictionaryItem.EM_EducationMissionClassCheckWay.ToString())
  229. .Where(x => x.Value == CheckWayID)
  230. .Select(x => x.Name).FirstOrDefault();
  231. }
  232. }
  233. /// <summary>
  234. /// 处理意见
  235. /// </summary>
  236. [DisplayName("处理意见")]
  237. public int? OpinionID { get; set; }
  238. /// <summary>
  239. /// 处理意见
  240. /// </summary>
  241. [DisplayName("处理意见")]
  242. public string OpinionName
  243. {
  244. get
  245. {
  246. return IdNameExt.GetDictionaryItem(DictionaryItem.EM_EducationMissionClassCheckOpinion.ToString())
  247. .Where(x => x.Value == OpinionID)
  248. .Select(x => x.Name).FirstOrDefault();
  249. }
  250. }
  251. /// <summary>
  252. /// 检查人员
  253. /// </summary>
  254. [DisplayName("检查人员")]
  255. public IEnumerable<Sys_User> Sys_User { get; set; }
  256. /// <summary>
  257. /// 检查人员姓名
  258. /// </summary>
  259. [DisplayName("检查人员姓名")]
  260. public string CheckPersonName
  261. {
  262. get
  263. {
  264. string name = string.Empty;
  265. if (Sys_User != null)
  266. name = string.Join(",", Sys_User.Select(s => s.Name));
  267. if (string.IsNullOrEmpty(name))
  268. {
  269. return "";
  270. }
  271. else
  272. {
  273. return name;
  274. }
  275. }
  276. }
  277. /// <summary>
  278. /// 备注
  279. /// </summary>
  280. [DisplayName("备注")]
  281. public string Remark { get; set; }
  282. }
  283. }