ScoreConvertByLevelView.cs 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using System.ComponentModel.DataAnnotations;
  7. using EMIS.ViewModel.CacheManage;
  8. namespace EMIS.ViewModel.ScoreManage
  9. {
  10. public class ScoreConvertByLevelView
  11. {
  12. /// <summary>
  13. /// 主键ID
  14. /// </summary>
  15. public Guid? ScoreConvertByLevelScoreID { get; set; }
  16. /// <summary>
  17. /// 学年学期
  18. /// </summary>
  19. [DisplayName("学年学期")]
  20. public Guid? SchoolyearID { get; set; }
  21. /// <summary>
  22. /// 学年学期
  23. /// </summary>
  24. public string SchoolyearCode { get; set; }
  25. /// <summary>
  26. /// 过级成绩ID
  27. /// </summary>
  28. [Required]
  29. [DisplayName("考试科目")]
  30. public Guid? LevelScoreID { get; set; }
  31. /// <summary>
  32. /// 课程主键
  33. /// </summary>
  34. [Required]
  35. [DisplayName("课程")]
  36. public Guid? CoursematerialID { get; set; }
  37. /// <summary>
  38. /// 课程名称
  39. /// </summary>
  40. public string CourseName { get; set; }
  41. /// <summary>
  42. /// 课程代码
  43. /// </summary>
  44. public string CourseCode { get; set; }
  45. /// <summary>
  46. /// 成绩
  47. /// </summary>
  48. public decimal? Score { get; set; }
  49. public string ExaminationSubjectName { get; set; }
  50. /// <summary>
  51. /// 过级成绩
  52. /// </summary>
  53. public decimal? LeveLScore { get; set; }
  54. /// <summary>
  55. /// 院系所ID
  56. /// </summary>
  57. public Guid? CollegeID { get; set; }
  58. /// <summary>
  59. /// 院系所
  60. /// </summary>
  61. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  62. public string CollegeName { get; set; }
  63. /// <summary>
  64. /// 替换的院系所
  65. /// </summary>
  66. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  67. public Guid? ReplaceCollegeID { get; set; }
  68. /// <summary>
  69. /// 年级
  70. /// </summary>
  71. [DisplayName("年级")]
  72. public int? Year { get; set; }
  73. /// <summary>
  74. /// 年级
  75. /// </summary>
  76. [DisplayName("年级")]
  77. public int? ReplaceYear { get; set; }
  78. /// <summary>
  79. /// 专业名称ID
  80. /// </summary>
  81. [DisplayName("专业")]
  82. public int? StandardID { get; set; }
  83. /// <summary>
  84. /// 专业名称
  85. /// </summary>
  86. public string StandardStr
  87. {
  88. get
  89. {
  90. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  91. .Where(x => x.Value == StandardID)
  92. .Select(x => x.Name).FirstOrDefault();
  93. }
  94. }
  95. /// <summary>
  96. /// 专业名称
  97. /// </summary>
  98. [DisplayName("专业")]
  99. public int? ReplaceStandardID { get; set; }
  100. /// <summary>
  101. /// 班级ID
  102. /// </summary>
  103. [DisplayName("班级名称")]
  104. public Guid? ClassmajorID { get; set; }
  105. /// <summary>
  106. /// 班级ID
  107. /// </summary>
  108. [DisplayName("班级名称")]
  109. public Guid? ReplaceClassmajorID { get; set; }
  110. /// <summary>
  111. /// 班级名称
  112. /// </summary>
  113. public string ClassmajorName { get; set; }
  114. /// <summary>
  115. /// 用户ID
  116. /// </summary>
  117. public Guid? UserID { get; set; }
  118. /// <summary>
  119. /// 学号
  120. /// </summary>
  121. public string LoginID { get; set; }
  122. /// <summary>
  123. /// 姓名
  124. /// </summary>
  125. public string UserName { get; set; }
  126. /// <summary>
  127. /// 考试类型ID
  128. /// </summary>
  129. [DisplayName("考试类型")]
  130. public Nullable<System.Guid> ExaminationTypeID { get; set; }
  131. /// <summary>
  132. /// 考试类型
  133. /// </summary>
  134. [DisplayName("考试类型")]
  135. public string ExaminationTypeName { get; set; }
  136. /// <summary>
  137. /// 考试类别ID
  138. /// </summary>
  139. [DisplayName("考试类别")]
  140. public Nullable<int> ExaminationFormID { get; set; }
  141. /// <summary>
  142. /// 考试类别
  143. /// </summary>
  144. [DisplayName("考试类别")]
  145. public string ExaminationFormName
  146. {
  147. get
  148. {
  149. return IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationForm.ToString())
  150. .Where(x => x.Value == ExaminationFormID)
  151. .Select(x => x.Name).FirstOrDefault();
  152. }
  153. }
  154. }
  155. }