ResitView.cs 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. using EMIS.ViewModel.Cache;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. namespace EMIS.ViewModel.ScoreManage
  7. {
  8. public class ResitView
  9. {
  10. public Guid ResitID { get; set; }
  11. public Guid? ExaminationScoreID { get; set; }
  12. public Guid? SchoolyearID { get; set; }
  13. public string SchoolyearCode { get; set; }
  14. public Guid? ExaminationBatchID { get; set; }
  15. public string ExaminationBatchName { get; set; }
  16. public Guid? ExaminationTypeID { get; set; }
  17. public string ExaminationTypeName { get; set; }
  18. public Guid? ExaminationProjectID { get; set; }
  19. public string ExaminationProjectName { get; set; }
  20. public int? ExaminationSubjectID { get; set; }
  21. public string ExaminationSubjectName
  22. {
  23. get
  24. {
  25. return IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationSubject.ToString())
  26. .Where(x => x.Value == ExaminationSubjectID)
  27. .Select(x => x.Name).FirstOrDefault();
  28. }
  29. }
  30. public Guid? CollegeID { get; set; }
  31. public string CollegeName { get; set; }
  32. public int? Year { get; set; }
  33. public int? StandardID { get; set; }
  34. public string StandardName
  35. {
  36. get
  37. {
  38. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  39. .Where(x => x.Value == StandardID)
  40. .Select(x => x.Name).FirstOrDefault();
  41. }
  42. }
  43. /// <summary>
  44. /// 校区
  45. /// </summary>
  46. public int? SchoolAreaID { get; set; }
  47. public string SchoolAreaName
  48. {
  49. get
  50. {
  51. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolArea.ToString())
  52. .Where(x => x.Value == SchoolAreaID)
  53. .Select(x => x.Name).FirstOrDefault();
  54. }
  55. }
  56. public Guid? ClassmajorID { get; set; }
  57. public string ClassmajorName { get; set; }
  58. public Guid? UserID { get; set; }
  59. public string UserName { get; set; }
  60. public int? CertificatesType { get; set; }
  61. public string CertificatesTypeName
  62. {
  63. get
  64. {
  65. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CertificatesType.ToString())
  66. .Where(x => x.Value == CertificatesType)
  67. .Select(x => x.Name).FirstOrDefault();
  68. }
  69. }
  70. public string IDNumber { get; set; }
  71. public decimal? Score { get; set; }
  72. public DateTime? Expire { get; set; }
  73. }
  74. }