StudentPunishView.cs 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471
  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.StudentManage.StudentProfile
  9. {
  10. public class StudentPunishView
  11. {
  12. /// <summary>
  13. /// 主键ID
  14. /// </summary>
  15. [DisplayName("主键ID")]
  16. public Guid StudentPunishID { get; set; }
  17. /// <summary>
  18. /// 学年学期ID
  19. /// </summary>
  20. [Required]
  21. [DisplayName("学年学期ID")]
  22. public Guid? SchoolyearID { get; set; }
  23. /// <summary>
  24. /// 学年学期对应的Value值
  25. /// </summary>
  26. [DisplayName("SchoolyearValue")]
  27. public int? SchoolyearValue { get; set; }
  28. /// <summary>
  29. /// 学年学期
  30. /// </summary>
  31. [DisplayName("学年学期")]
  32. public string SchoolyearCode { get; set; }
  33. /// <summary>
  34. /// 学生信息ID
  35. /// </summary>
  36. [Required]
  37. [DisplayName("学生信息ID")]
  38. public Guid? UserID { get; set; }
  39. /// <summary>
  40. /// 学号
  41. /// </summary>
  42. [DisplayName("学号")]
  43. public string StudentNo { get; set; }
  44. /// <summary>
  45. /// 姓名
  46. /// </summary>
  47. [DisplayName("姓名")]
  48. public string Name { get; set; }
  49. /// <summary>
  50. /// 性别
  51. /// </summary>
  52. [DisplayName("性别")]
  53. public int? SexID { get; set; }
  54. /// <summary>
  55. /// 性别
  56. /// </summary>
  57. [DisplayName("性别")]
  58. public string SexName
  59. {
  60. get
  61. {
  62. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString()).Where(x => x.Value == SexID).Select(x => x.Name).FirstOrDefault();
  63. }
  64. }
  65. /// <summary>
  66. /// 出生日期
  67. /// </summary>
  68. [DisplayName("出生日期")]
  69. [DataType(DataType.Date)]
  70. public DateTime? BirthDate { get; set; }
  71. /// <summary>
  72. /// 民族
  73. /// </summary>
  74. [DisplayName("民族")]
  75. public int? NationID { get; set; }
  76. /// <summary>
  77. /// 民族
  78. /// </summary>
  79. [DisplayName("民族")]
  80. public string NationName
  81. {
  82. get
  83. {
  84. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Nation.ToString()).Where(x => x.Value == NationID).Select(x => x.Name).FirstOrDefault();
  85. }
  86. }
  87. /// <summary>
  88. /// 政治面貌
  89. /// </summary>
  90. [DisplayName("政治面貌")]
  91. public int? PoliticsID { get; set; }
  92. /// <summary>
  93. /// 政治面貌
  94. /// </summary>
  95. [DisplayName("政治面貌")]
  96. public string PoliticsName
  97. {
  98. get
  99. {
  100. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Politics.ToString()).Where(x => x.Value == PoliticsID).Select(x => x.Name).FirstOrDefault();
  101. }
  102. }
  103. /// <summary>
  104. /// 在校状态
  105. /// </summary>
  106. [DisplayName("在校状态")]
  107. public int? InSchoolStatusID { get; set; }
  108. /// <summary>
  109. /// 在校状态
  110. /// </summary>
  111. [DisplayName("在校状态")]
  112. public string InSchoolStatusName
  113. {
  114. get
  115. {
  116. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString()).Where(x => x.Value == InSchoolStatusID).Select(x => x.Name).FirstOrDefault();
  117. }
  118. }
  119. /// <summary>
  120. /// 学籍状态
  121. /// </summary>
  122. [DisplayName("学籍状态")]
  123. public int? StudentStatus { get; set; }
  124. /// <summary>
  125. /// 学籍状态
  126. /// </summary>
  127. [DisplayName("学籍状态")]
  128. public string StudentStatusName
  129. {
  130. get
  131. {
  132. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StudentStatus.ToString()).Where(x => x.Value == StudentStatus).Select(x => x.Name).FirstOrDefault();
  133. }
  134. }
  135. /// <summary>
  136. /// 年级
  137. /// </summary>
  138. [DisplayName("年级")]
  139. public int? GradeID { get; set; }
  140. /// <summary>
  141. /// 年级
  142. /// </summary>
  143. [DisplayName("年级")]
  144. public string GradeName
  145. {
  146. get
  147. {
  148. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Grade.ToString()).Where(x => x.Value == GradeID).Select(x => x.Name).FirstOrDefault();
  149. }
  150. }
  151. /// <summary>
  152. /// 专业ID(Value)
  153. /// </summary>
  154. [DisplayName("专业ID(Value)")]
  155. public int? StandardID { get; set; }
  156. /// <summary>
  157. /// 专业代码
  158. /// </summary>
  159. [DisplayName("专业代码")]
  160. public string StandardCode
  161. {
  162. get
  163. {
  164. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()).Where(x => x.Value == StandardID).Select(x => x.Code).FirstOrDefault();
  165. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  166. }
  167. }
  168. /// <summary>
  169. /// 专业名称
  170. /// </summary>
  171. [DisplayName("专业名称")]
  172. public string StandardName
  173. {
  174. get
  175. {
  176. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()).Where(x => x.Value == StandardID).Select(x => x.Name).FirstOrDefault();
  177. }
  178. }
  179. /// <summary>
  180. /// 培养层次
  181. /// </summary>
  182. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  183. public int? EducationID { get; set; }
  184. /// <summary>
  185. /// 培养层次
  186. /// </summary>
  187. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  188. public string EducationName
  189. {
  190. get
  191. {
  192. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString()).Where(x => x.Value == EducationID).Select(x => x.Name).FirstOrDefault();
  193. }
  194. }
  195. /// <summary>
  196. /// 学习形式
  197. /// </summary>
  198. [DisplayName("学习形式")]
  199. public int? LearningformID { get; set; }
  200. /// <summary>
  201. /// 学习形式
  202. /// </summary>
  203. [DisplayName("学习形式")]
  204. public string LearningformName
  205. {
  206. get
  207. {
  208. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString()).Where(x => x.Value == LearningformID).Select(x => x.Name).FirstOrDefault();
  209. }
  210. }
  211. /// <summary>
  212. /// 学制
  213. /// </summary>
  214. [DisplayName("学制")]
  215. public decimal? LearnSystem { get; set; }
  216. /// <summary>
  217. /// 班序
  218. /// </summary>
  219. [DisplayName("班序")]
  220. public int? ClassNum { get; set; }
  221. /// <summary>
  222. /// 班级信息ID
  223. /// </summary>
  224. [DisplayName("班级信息ID")]
  225. public Guid? ClassmajorID { get; set; }
  226. /// <summary>
  227. /// 班级编号
  228. /// </summary>
  229. [DisplayName("班级编号")]
  230. public string ClassmajorNo { get; set; }
  231. /// <summary>
  232. /// 班级名称
  233. /// </summary>
  234. [DisplayName("班级名称")]
  235. public string ClassmajorName { get; set; }
  236. /// <summary>
  237. /// 年级专业ID
  238. /// </summary>
  239. [DisplayName("年级专业ID")]
  240. public Guid? GrademajorID { get; set; }
  241. /// <summary>
  242. /// 年级专业编号
  243. /// </summary>
  244. [DisplayName("年级专业编号")]
  245. public string GrademajorCode { get; set; }
  246. /// <summary>
  247. /// 年级专业名称
  248. /// </summary>
  249. [DisplayName("年级专业名称")]
  250. public string GrademajorName { get; set; }
  251. /// <summary>
  252. /// 院系专业ID
  253. /// </summary>
  254. [DisplayName("院系专业ID")]
  255. public Guid? FacultymajorID { get; set; }
  256. /// <summary>
  257. /// 院系专业编号
  258. /// </summary>
  259. [DisplayName("院系专业编号")]
  260. public string FacultymajorCode { get; set; }
  261. /// <summary>
  262. /// 院系专业名称
  263. /// </summary>
  264. [DisplayName("院系专业名称")]
  265. public string FacultymajorName { get; set; }
  266. /// <summary>
  267. /// 院系所ID
  268. /// </summary>
  269. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  270. public Guid? CollegeID { get; set; }
  271. /// <summary>
  272. /// 院系所代码
  273. /// </summary>
  274. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  275. public string CollegeNo { get; set; }
  276. /// <summary>
  277. /// 院系所
  278. /// </summary>
  279. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  280. public string CollegeName { get; set; }
  281. /// <summary>
  282. /// 校区ID
  283. /// </summary>
  284. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  285. public Guid? CampusID { get; set; }
  286. /// <summary>
  287. /// 校区代码
  288. /// </summary>
  289. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  290. public string CampusCode { get; set; }
  291. /// <summary>
  292. /// 校区名称
  293. /// </summary>
  294. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  295. public string CampusName { get; set; }
  296. /// <summary>
  297. /// 处分类型
  298. /// </summary>
  299. [Required]
  300. [DisplayName("处分类型")]
  301. public int? PunishTypeID { get; set; }
  302. /// <summary>
  303. /// 处分类型
  304. /// </summary>
  305. [DisplayName("处分类型")]
  306. public string PunishTypeName
  307. {
  308. get
  309. {
  310. return IdNameExt.GetDictionaryItem(DictionaryItem.EM_PunishType.ToString()).Where(x => x.Value == PunishTypeID).Select(x => x.Name).FirstOrDefault();
  311. }
  312. }
  313. /// <summary>
  314. /// 处分级别
  315. /// </summary>
  316. [Required]
  317. [DisplayName("处分级别")]
  318. public int? PunishLevelID { get; set; }
  319. /// <summary>
  320. /// 处分级别
  321. /// </summary>
  322. [DisplayName("处分级别")]
  323. public string PunishLevelName
  324. {
  325. get
  326. {
  327. return IdNameExt.GetDictionaryItem(DictionaryItem.EM_PunishLevel.ToString()).Where(x => x.Value == PunishLevelID).Select(x => x.Name).FirstOrDefault();
  328. }
  329. }
  330. /// <summary>
  331. /// 处分文号
  332. /// </summary>
  333. [DisplayName("处分文号")]
  334. public string DocNo { get; set; }
  335. /// <summary>
  336. /// 处分日期
  337. /// </summary>
  338. [Required]
  339. [DisplayName("处分日期")]
  340. [DataType(DataType.Date)]
  341. [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
  342. public DateTime? PunishDate { get; set; }
  343. /// <summary>
  344. /// 处分原因
  345. /// </summary>
  346. [DisplayName("处分原因")]
  347. public string Reason { get; set; }
  348. /// <summary>
  349. /// 撤销文号
  350. /// </summary>
  351. [DisplayName("撤销文号")]
  352. public string CancelDocNo { get; set; }
  353. /// <summary>
  354. /// 撤销日期
  355. /// </summary>
  356. [DisplayName("撤销日期")]
  357. [DataType(DataType.Date)]
  358. [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
  359. public DateTime? CancelDate { get; set; }
  360. /// <summary>
  361. /// 审批状态
  362. /// </summary>
  363. [DisplayName("审批状态")]
  364. public int? ApprovalStatus { get; set; }
  365. /// <summary>
  366. /// 审批状态
  367. /// </summary>
  368. [DisplayName("审批状态")]
  369. public string ApprovalStatusName { get; set; }
  370. /// <summary>
  371. /// 处理动作
  372. /// </summary>
  373. [Required]
  374. [DisplayName("处理动作")]
  375. public string Action { get; set; }
  376. /// <summary>
  377. /// 处理意见
  378. /// </summary>
  379. [DisplayName("处理意见")]
  380. public string Comment { get; set; }
  381. /// <summary>
  382. /// 状态
  383. /// </summary>
  384. [DisplayName("状态")]
  385. public int? RecordStatus { get; set; }
  386. /// <summary>
  387. /// 创建人
  388. /// </summary>
  389. [DisplayName("创建人")]
  390. public Guid? CreateUserID { get; set; }
  391. /// <summary>
  392. /// 创建时间
  393. /// </summary>
  394. [DisplayName("创建时间")]
  395. public DateTime? CreateTime { get; set; }
  396. /// <summary>
  397. /// 修改人
  398. /// </summary>
  399. [DisplayName("修改人")]
  400. public Guid? ModifyUserID { get; set; }
  401. /// <summary>
  402. /// 修改时间
  403. /// </summary>
  404. [DisplayName("修改时间")]
  405. public DateTime? ModifyTime { get; set; }
  406. }
  407. }