EvaluationStaffScoreView.cs 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  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.EvaluationManage.EvaluationResult
  9. {
  10. public class EvaluationStaffScoreView
  11. {
  12. /// <summary>
  13. /// 主键ID
  14. /// </summary>
  15. [DisplayName("主键ID")]
  16. public Guid EvaluationStaffScoreID { 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 StaffCode { get; set; }
  44. /// <summary>
  45. /// 任课教师
  46. /// </summary>
  47. [DisplayName("任课教师")]
  48. public string StaffName { 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. public int? TeacherTypeID { get; set; }
  70. /// <summary>
  71. /// 教师类型
  72. /// </summary>
  73. [DisplayName("教师类型")]
  74. public string TeacherTypeName
  75. {
  76. get
  77. {
  78. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeacherType.ToString()).Where(x => x.Value == TeacherTypeID).Select(x => x.Name).FirstOrDefault();
  79. }
  80. }
  81. /// <summary>
  82. /// 在职状态
  83. /// </summary>
  84. [DisplayName("在职状态")]
  85. public int? IncumbencyState { get; set; }
  86. /// <summary>
  87. /// 在职状态
  88. /// </summary>
  89. [DisplayName("在职状态")]
  90. public string IncumbencyStateName
  91. {
  92. get
  93. {
  94. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_IncumbencyState.ToString()).Where(x => x.Value == IncumbencyState).Select(x => x.Name).FirstOrDefault();
  95. }
  96. }
  97. /// <summary>
  98. /// 职称
  99. /// </summary>
  100. [DisplayName("职称")]
  101. public int? TitleID { get; set; }
  102. /// <summary>
  103. /// 职称
  104. /// </summary>
  105. [DisplayName("职称")]
  106. public string TitleName
  107. {
  108. get
  109. {
  110. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Title.ToString()).Where(x => x.Value == TitleID).Select(x => x.Name).FirstOrDefault();
  111. }
  112. }
  113. /// <summary>
  114. /// 课程信息ID
  115. /// </summary>
  116. [Required]
  117. [DisplayName("课程信息ID")]
  118. public Guid? CoursematerialID { get; set; }
  119. /// <summary>
  120. /// 课程代码
  121. /// </summary>
  122. [DisplayName("课程代码")]
  123. public string CourseCode { get; set; }
  124. /// <summary>
  125. /// 课程名称
  126. /// </summary>
  127. [DisplayName("课程名称")]
  128. public string CourseName { get; set; }
  129. /// <summary>
  130. /// 所属教研室ID
  131. /// </summary>
  132. [Required]
  133. [DisplayName("所属教研室ID")]
  134. public Guid? DepartmentID { get; set; }
  135. /// <summary>
  136. /// 所属教研室代码
  137. /// </summary>
  138. [DisplayName("所属教研室代码")]
  139. public string DepartmentNo { get; set; }
  140. /// <summary>
  141. /// 所属教研室
  142. /// </summary>
  143. [DisplayName("所属教研室")]
  144. public string DepartmentName { get; set; }
  145. /// <summary>
  146. /// 院系所ID
  147. /// </summary>
  148. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  149. public Guid? CollegeID { get; set; }
  150. /// <summary>
  151. /// 院系所代码
  152. /// </summary>
  153. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  154. public string CollegeNo { get; set; }
  155. /// <summary>
  156. /// 院系所
  157. /// </summary>
  158. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  159. public string CollegeName { get; set; }
  160. /// <summary>
  161. /// 校区ID
  162. /// </summary>
  163. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  164. public Guid? CampusID { get; set; }
  165. /// <summary>
  166. /// 校区代码
  167. /// </summary>
  168. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  169. public string CampusNo { get; set; }
  170. /// <summary>
  171. /// 校区名称
  172. /// </summary>
  173. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  174. public string CampusName { get; set; }
  175. /// <summary>
  176. /// 学生评分
  177. /// </summary>
  178. [Required]
  179. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EvaluationStudentScore")]
  180. [RegularExpression(@"^\d+(\.\d{1,2})?$", ErrorMessage = "请输入分数或保留2位以下小数点分数")]
  181. public decimal? StudentScore { get; set; }
  182. /// <summary>
  183. /// 院系评分
  184. /// </summary>
  185. [Required]
  186. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EvaluationCollegeScore")]
  187. [RegularExpression(@"^\d+(\.\d{1,2})?$", ErrorMessage = "请输入分数或保留2位以下小数点分数")]
  188. public decimal? CollegeScore { get; set; }
  189. /// <summary>
  190. /// 总评分
  191. /// </summary>
  192. [Required]
  193. [DisplayName("总评分")]
  194. [RegularExpression(@"^\d+(\.\d{1,2})?$", ErrorMessage = "请输入分数或保留2位以下小数点分数")]
  195. public decimal? TotalScore { get; set; }
  196. /// <summary>
  197. /// 备注
  198. /// </summary>
  199. [DisplayName("备注")]
  200. public string Remark { get; set; }
  201. /// <summary>
  202. /// 状态
  203. /// </summary>
  204. [DisplayName("状态")]
  205. public int? RecordStatus { get; set; }
  206. /// <summary>
  207. /// 创建人
  208. /// </summary>
  209. [DisplayName("创建人")]
  210. public Guid? CreateUserID { get; set; }
  211. /// <summary>
  212. /// 创建时间
  213. /// </summary>
  214. [DisplayName("创建时间")]
  215. public DateTime? CreateTime { get; set; }
  216. /// <summary>
  217. /// 修改人
  218. /// </summary>
  219. [DisplayName("修改人")]
  220. public Guid? ModifyUserID { get; set; }
  221. /// <summary>
  222. /// 修改时间
  223. /// </summary>
  224. [DisplayName("修改时间")]
  225. public DateTime? ModifyTime { get; set; }
  226. }
  227. }