StudentPostPracticeView.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  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 Bowin.Common.Mvc;
  8. using EMIS.ViewModel.CacheManage;
  9. namespace EMIS.ViewModel.StudentManage.StudentProfile
  10. {
  11. public class StudentPostPracticeView
  12. {
  13. /// <summary>
  14. /// 主键ID
  15. /// </summary>
  16. [DisplayName("主键ID")]
  17. public Guid StudentPostPracticeID { get; set; }
  18. /// <summary>
  19. /// 学生信息ID
  20. /// </summary>
  21. [Required]
  22. [DisplayName("学生信息ID")]
  23. public Guid? UserID { get; set; }
  24. /// <summary>
  25. /// 学号
  26. /// </summary>
  27. [DisplayName("学号")]
  28. public string StudentNo { get; set; }
  29. /// <summary>
  30. /// 姓名
  31. /// </summary>
  32. [DisplayName("姓名")]
  33. public string Name { get; set; }
  34. /// <summary>
  35. /// 性别
  36. /// </summary>
  37. [DisplayName("性别")]
  38. public int? SexID { get; set; }
  39. /// <summary>
  40. /// 性别
  41. /// </summary>
  42. [DisplayName("性别")]
  43. public string SexName
  44. {
  45. get
  46. {
  47. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString()).Where(x => x.Value == SexID).Select(x => x.Name).FirstOrDefault();
  48. }
  49. }
  50. /// <summary>
  51. /// 出生日期
  52. /// </summary>
  53. [DisplayName("出生日期")]
  54. [DataType(DataType.Date)]
  55. public DateTime? BirthDate { get; set; }
  56. /// <summary>
  57. /// 民族
  58. /// </summary>
  59. [DisplayName("民族")]
  60. public int? NationID { get; set; }
  61. /// <summary>
  62. /// 民族
  63. /// </summary>
  64. [DisplayName("民族")]
  65. public string NationName
  66. {
  67. get
  68. {
  69. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Nation.ToString()).Where(x => x.Value == NationID).Select(x => x.Name).FirstOrDefault();
  70. }
  71. }
  72. /// <summary>
  73. /// 政治面貌
  74. /// </summary>
  75. [DisplayName("政治面貌")]
  76. public int? PoliticsID { get; set; }
  77. /// <summary>
  78. /// 政治面貌
  79. /// </summary>
  80. [DisplayName("政治面貌")]
  81. public string PoliticsName
  82. {
  83. get
  84. {
  85. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Politics.ToString()).Where(x => x.Value == PoliticsID).Select(x => x.Name).FirstOrDefault();
  86. }
  87. }
  88. /// <summary>
  89. /// 在校状态
  90. /// </summary>
  91. [DisplayName("在校状态")]
  92. public int? InSchoolStatusID { get; set; }
  93. /// <summary>
  94. /// 在校状态
  95. /// </summary>
  96. [DisplayName("在校状态")]
  97. public string InSchoolStatusName
  98. {
  99. get
  100. {
  101. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString()).Where(x => x.Value == InSchoolStatusID).Select(x => x.Name).FirstOrDefault();
  102. }
  103. }
  104. /// <summary>
  105. /// 学籍状态
  106. /// </summary>
  107. [DisplayName("学籍状态")]
  108. public int? StudentStatus { get; set; }
  109. /// <summary>
  110. /// 学籍状态
  111. /// </summary>
  112. [DisplayName("学籍状态")]
  113. public string StudentStatusName
  114. {
  115. get
  116. {
  117. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StudentStatus.ToString()).Where(x => x.Value == StudentStatus).Select(x => x.Name).FirstOrDefault();
  118. }
  119. }
  120. /// <summary>
  121. /// 年级
  122. /// </summary>
  123. [DisplayName("年级")]
  124. public int? GradeID { get; set; }
  125. /// <summary>
  126. /// 年级
  127. /// </summary>
  128. [DisplayName("年级")]
  129. public string GradeName
  130. {
  131. get
  132. {
  133. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Grade.ToString()).Where(x => x.Value == GradeID).Select(x => x.Name).FirstOrDefault();
  134. }
  135. }
  136. /// <summary>
  137. /// 专业ID(Value)
  138. /// </summary>
  139. [DisplayName("专业ID(Value)")]
  140. public int? StandardID { get; set; }
  141. /// <summary>
  142. /// 专业代码
  143. /// </summary>
  144. [DisplayName("专业代码")]
  145. public string StandardCode
  146. {
  147. get
  148. {
  149. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()).Where(x => x.Value == StandardID).Select(x => x.Code).FirstOrDefault();
  150. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  151. }
  152. }
  153. /// <summary>
  154. /// 专业名称
  155. /// </summary>
  156. [DisplayName("专业名称")]
  157. public string StandardName
  158. {
  159. get
  160. {
  161. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()).Where(x => x.Value == StandardID).Select(x => x.Name).FirstOrDefault();
  162. }
  163. }
  164. /// <summary>
  165. /// 培养层次
  166. /// </summary>
  167. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  168. public int? EducationID { get; set; }
  169. /// <summary>
  170. /// 培养层次
  171. /// </summary>
  172. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  173. public string EducationName
  174. {
  175. get
  176. {
  177. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString()).Where(x => x.Value == EducationID).Select(x => x.Name).FirstOrDefault();
  178. }
  179. }
  180. /// <summary>
  181. /// 学习形式
  182. /// </summary>
  183. [DisplayName("学习形式")]
  184. public int? LearningformID { get; set; }
  185. /// <summary>
  186. /// 学习形式
  187. /// </summary>
  188. [DisplayName("学习形式")]
  189. public string LearningformName
  190. {
  191. get
  192. {
  193. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString()).Where(x => x.Value == LearningformID).Select(x => x.Name).FirstOrDefault();
  194. }
  195. }
  196. /// <summary>
  197. /// 学制
  198. /// </summary>
  199. [DisplayName("学制")]
  200. public decimal? LearnSystem { get; set; }
  201. /// <summary>
  202. /// 班序
  203. /// </summary>
  204. [DisplayName("班序")]
  205. public int? ClassNum { get; set; }
  206. /// <summary>
  207. /// 班级信息ID
  208. /// </summary>
  209. [DisplayName("班级信息ID")]
  210. public Guid? ClassmajorID { get; set; }
  211. /// <summary>
  212. /// 班级编号
  213. /// </summary>
  214. [DisplayName("班级编号")]
  215. public string ClassmajorNo { get; set; }
  216. /// <summary>
  217. /// 班级名称
  218. /// </summary>
  219. [DisplayName("班级名称")]
  220. public string ClassmajorName { get; set; }
  221. /// <summary>
  222. /// 年级专业ID
  223. /// </summary>
  224. [DisplayName("年级专业ID")]
  225. public Guid? GrademajorID { get; set; }
  226. /// <summary>
  227. /// 年级专业编号
  228. /// </summary>
  229. [DisplayName("年级专业编号")]
  230. public string GrademajorCode { get; set; }
  231. /// <summary>
  232. /// 年级专业名称
  233. /// </summary>
  234. [DisplayName("年级专业名称")]
  235. public string GrademajorName { get; set; }
  236. /// <summary>
  237. /// 院系专业ID
  238. /// </summary>
  239. [DisplayName("院系专业ID")]
  240. public Guid? FacultymajorID { get; set; }
  241. /// <summary>
  242. /// 院系专业编号
  243. /// </summary>
  244. [DisplayName("院系专业编号")]
  245. public string FacultymajorCode { get; set; }
  246. /// <summary>
  247. /// 院系专业名称
  248. /// </summary>
  249. [DisplayName("院系专业名称")]
  250. public string FacultymajorName { get; set; }
  251. /// <summary>
  252. /// 院系所ID
  253. /// </summary>
  254. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  255. public Guid? CollegeID { get; set; }
  256. /// <summary>
  257. /// 院系所代码
  258. /// </summary>
  259. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  260. public string CollegeNo { get; set; }
  261. /// <summary>
  262. /// 院系所
  263. /// </summary>
  264. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  265. public string CollegeName { get; set; }
  266. /// <summary>
  267. /// 校区ID
  268. /// </summary>
  269. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  270. public Guid? CampusID { get; set; }
  271. /// <summary>
  272. /// 校区代码
  273. /// </summary>
  274. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  275. public string CampusCode { get; set; }
  276. /// <summary>
  277. /// 校区名称
  278. /// </summary>
  279. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  280. public string CampusName { get; set; }
  281. /// <summary>
  282. /// 实习地点
  283. /// </summary>
  284. [Required]
  285. [DisplayName("实习地点")]
  286. public string PracticePlace { get; set; }
  287. /// <summary>
  288. /// 开始年份
  289. /// </summary>
  290. [Required]
  291. [DisplayName("开始年份")]
  292. public int? StartYear { get; set; }
  293. /// <summary>
  294. /// 开始月份
  295. /// </summary>
  296. [Required]
  297. [DisplayName("开始月份")]
  298. public int? StartMonth { get; set; }
  299. /// <summary>
  300. /// 结束年份
  301. /// </summary>
  302. [Required]
  303. [DisplayName("结束年份")]
  304. public int? EndYear { get; set; }
  305. /// <summary>
  306. /// 结束月份
  307. /// </summary>
  308. [Required]
  309. [DisplayName("结束月份")]
  310. public int? EndMonth { get; set; }
  311. /// <summary>
  312. /// 指导教师
  313. /// </summary>
  314. [Required]
  315. [DisplayName("指导教师")]
  316. public string PracticeMentor { get; set; }
  317. /// <summary>
  318. /// 实习内容
  319. /// </summary>
  320. [Required]
  321. [DisplayName("实习内容")]
  322. public string PracticeContent { get; set; }
  323. /// <summary>
  324. /// 自我鉴定
  325. /// </summary>
  326. [Required]
  327. [DisplayName("自我鉴定")]
  328. public string SelfAppraise { get; set; }
  329. /// <summary>
  330. /// 状态
  331. /// </summary>
  332. [DisplayName("状态")]
  333. public int? RecordStatus { get; set; }
  334. /// <summary>
  335. /// 创建人
  336. /// </summary>
  337. [DisplayName("创建人")]
  338. public Guid? CreateUserID { get; set; }
  339. /// <summary>
  340. /// 创建时间
  341. /// </summary>
  342. [DisplayName("创建时间")]
  343. public DateTime? CreateTime { get; set; }
  344. /// <summary>
  345. /// 修改人
  346. /// </summary>
  347. [DisplayName("修改人")]
  348. public Guid? ModifyUserID { get; set; }
  349. /// <summary>
  350. /// 修改时间
  351. /// </summary>
  352. [DisplayName("修改时间")]
  353. public DateTime? ModifyTime { get; set; }
  354. }
  355. }