StudentEncourageView.cs 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493
  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 StudentEncourageView
  11. {
  12. /// <summary>
  13. /// 主键ID
  14. /// </summary>
  15. [DisplayName("主键ID")]
  16. public Guid StudentEncourageID { 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? EncourageNameID { get; set; }
  302. /// <summary>
  303. /// 奖励名称
  304. /// </summary>
  305. [DisplayName("奖励名称")]
  306. public string EncourageName
  307. {
  308. get
  309. {
  310. return IdNameExt.GetDictionaryItem(DictionaryItem.EM_EncourageName.ToString()).Where(x => x.Value == EncourageNameID).Select(x => x.Name).FirstOrDefault();
  311. }
  312. }
  313. /// <summary>
  314. /// 奖励类型
  315. /// </summary>
  316. [Required]
  317. [DisplayName("奖励类型")]
  318. public int? EncourageTypeID { get; set; }
  319. /// <summary>
  320. /// 奖励类型
  321. /// </summary>
  322. [DisplayName("奖励类型")]
  323. public string EncourageTypeName
  324. {
  325. get
  326. {
  327. return IdNameExt.GetDictionaryItem(DictionaryItem.EM_EncourageType.ToString()).Where(x => x.Value == EncourageTypeID).Select(x => x.Name).FirstOrDefault();
  328. }
  329. }
  330. /// <summary>
  331. /// 奖励级别
  332. /// </summary>
  333. [Required]
  334. [DisplayName("奖励级别")]
  335. public int? EncourageLevelID { get; set; }
  336. /// <summary>
  337. /// 奖励级别
  338. /// </summary>
  339. [DisplayName("奖励级别")]
  340. public string EncourageLevelName
  341. {
  342. get
  343. {
  344. return IdNameExt.GetDictionaryItem(DictionaryItem.EM_EncourageLevel.ToString()).Where(x => x.Value == EncourageLevelID).Select(x => x.Name).FirstOrDefault();
  345. }
  346. }
  347. /// <summary>
  348. /// 奖励文号
  349. /// </summary>
  350. [DisplayName("奖励文号")]
  351. public string DocNo { get; set; }
  352. /// <summary>
  353. /// 颁奖单位
  354. /// </summary>
  355. [Required]
  356. [DisplayName("颁奖单位")]
  357. public string Unit { get; set; }
  358. /// <summary>
  359. /// 奖励日期
  360. /// </summary>
  361. [Required]
  362. [DisplayName("奖励日期")]
  363. [DataType(DataType.Date)]
  364. [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
  365. public DateTime? EncourageDate { get; set; }
  366. /// <summary>
  367. /// 奖励金额
  368. /// </summary>
  369. [Required]
  370. [DisplayName("奖励金额")]
  371. [RegularExpression(@"^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$", ErrorMessage = "请输入金额")]
  372. public decimal? Amount { get; set; }
  373. /// <summary>
  374. /// 奖励原因
  375. /// </summary>
  376. [DisplayName("奖励原因")]
  377. public string Reason { get; set; }
  378. /// <summary>
  379. /// 审批状态
  380. /// </summary>
  381. [DisplayName("审批状态")]
  382. public int? ApprovalStatus { get; set; }
  383. /// <summary>
  384. /// 审批状态
  385. /// </summary>
  386. [DisplayName("审批状态")]
  387. public string ApprovalStatusName { get; set; }
  388. /// <summary>
  389. /// 处理动作
  390. /// </summary>
  391. [Required]
  392. [DisplayName("处理动作")]
  393. public string Action { get; set; }
  394. /// <summary>
  395. /// 处理意见
  396. /// </summary>
  397. [DisplayName("处理意见")]
  398. public string Comment { get; set; }
  399. /// <summary>
  400. /// 状态
  401. /// </summary>
  402. [DisplayName("状态")]
  403. public int? RecordStatus { get; set; }
  404. /// <summary>
  405. /// 创建人
  406. /// </summary>
  407. [DisplayName("创建人")]
  408. public Guid? CreateUserID { get; set; }
  409. /// <summary>
  410. /// 创建时间
  411. /// </summary>
  412. [DisplayName("创建时间")]
  413. public DateTime? CreateTime { get; set; }
  414. /// <summary>
  415. /// 修改人
  416. /// </summary>
  417. [DisplayName("修改人")]
  418. public Guid? ModifyUserID { get; set; }
  419. /// <summary>
  420. /// 修改时间
  421. /// </summary>
  422. [DisplayName("修改时间")]
  423. public DateTime? ModifyTime { get; set; }
  424. }
  425. }