LevelScoreView.cs 14 KB

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