SubmitedScoreView.cs 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using EMIS.ViewModel.CacheManage;
  7. using System.ComponentModel.DataAnnotations;
  8. namespace EMIS.ViewModel.Students
  9. {
  10. public class SubmitedScoreView
  11. {
  12. /// <summary>
  13. /// 主键
  14. /// </summary>
  15. [DisplayName("主键")]
  16. public Guid SubmitedScoreID { get; set; }
  17. public Guid? UserID { get; set; }
  18. /// <summary>
  19. /// 学号
  20. /// </summary>
  21. [DisplayName("学号")]
  22. public string LoginID { get; set; }
  23. /// <summary>
  24. /// 姓名
  25. /// </summary>
  26. [DisplayName("姓名")]
  27. public string UserName { get; set; }
  28. /// <summary>
  29. /// 学年学期
  30. /// </summary>
  31. [DisplayName("学年学期")]
  32. public Guid? SchoolyearID { get; set; }
  33. /// <summary>
  34. /// 学期
  35. /// </summary>
  36. [DisplayName("学期")]
  37. public string SchoolyearCode { get; set; }
  38. /// <summary>
  39. /// 学期
  40. /// </summary>
  41. [DisplayName("学期")]
  42. public int? Schoolyear { get; set; }
  43. /// <summary>
  44. /// 科目号
  45. /// </summary>
  46. [DisplayName("科目号")]
  47. public string CourseCode { get; set; }
  48. /// <summary>
  49. /// 科目
  50. /// </summary>
  51. [DisplayName("科目")]
  52. public string CourseName { get; set; }
  53. /// <summary>
  54. /// 总成绩
  55. /// </summary>
  56. [DisplayName("总成绩")]
  57. public decimal? TotalScore { get; set; }
  58. public string TotalScoreStr { get; set; }
  59. /// <summary>
  60. /// 平时成绩
  61. /// </summary>
  62. //[DisplayName("平时成绩")]
  63. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Peacetime")]
  64. public decimal? Pingshi { get; set; }
  65. /// <summary>
  66. /// 技术成绩
  67. /// </summary>
  68. //[DisplayName("技术成绩")]
  69. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Technique")]
  70. public decimal? Jishu { get; set; }
  71. /// <summary>
  72. /// 理论成绩
  73. /// </summary>
  74. //[DisplayName("理论成绩")]
  75. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Theoretical")]
  76. public decimal? Lilun { get; set; }
  77. /// <summary>
  78. /// 课程学分
  79. /// </summary>
  80. [DisplayName("课程学分")]
  81. public decimal? ScoreCredit { get; set; }
  82. /// <summary>
  83. /// 类型
  84. /// </summary>
  85. [DisplayName("类型")]
  86. public string CoursetypeName { get; set; }
  87. /// <summary>
  88. /// 录入时间
  89. /// </summary>
  90. [DisplayName("录入时间")]
  91. public DateTime? CreateTime { get; set; }
  92. /// <summary>
  93. /// 操作员
  94. /// </summary>
  95. [DisplayName("操作员")]
  96. public string OperaUser { get; set; }
  97. /// <summary>
  98. /// 考试性质
  99. /// </summary>
  100. [DisplayName("考试性质")]
  101. public string ExamsCategoryName { get; set; }
  102. /// <summary>
  103. /// 考试状态
  104. /// </summary>
  105. [DisplayName("考试状态")]
  106. public string ExamsStateName { get; set; }
  107. public Guid? CoursematerialID { get; set; }
  108. public int? StarttermID { get; set; }
  109. public string Startterm
  110. {
  111. get
  112. {
  113. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Startterm.ToString())
  114. .Where(x => x.Value == StarttermID)
  115. .Select(x => x.Code).FirstOrDefault();
  116. }
  117. }
  118. /// <summary>
  119. /// 备注
  120. /// </summary>
  121. [DisplayName("备注")]
  122. public string Remarks { get; set; }
  123. /// <summary>
  124. /// 备注
  125. /// </summary>
  126. [DisplayName("备注")]
  127. public string StudentScoreRemark { get; set; }
  128. }
  129. }