EvaluationGradeControlView.cs 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  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 Bowin.Common.Mvc;
  8. using EMIS.ViewModel.CacheManage;
  9. namespace EMIS.ViewModel.EvaluationManage.EvaluationSetting
  10. {
  11. public class EvaluationGradeControlView
  12. {
  13. /// <summary>
  14. /// 主键ID
  15. /// </summary>
  16. [DisplayName("主键ID")]
  17. public Guid EvaluationGradeControlID { get; set; }
  18. /// <summary>
  19. /// 学年学期ID
  20. /// </summary>
  21. [Required]
  22. [DisplayName("学年学期ID")]
  23. public Guid? SchoolyearID { get; set; }
  24. /// <summary>
  25. /// 学年学期对应的Value值
  26. /// </summary>
  27. [DisplayName("SchoolyearValue")]
  28. public int? SchoolyearValue { get; set; }
  29. /// <summary>
  30. /// 学年学期
  31. /// </summary>
  32. [DisplayName("学年学期")]
  33. public string SchoolyearCode { get; set; }
  34. /// <summary>
  35. /// 年级专业ID
  36. /// </summary>
  37. [Required]
  38. [DisplayName("年级专业ID")]
  39. public Guid? GrademajorID { get; set; }
  40. /// <summary>
  41. /// 年级专业编号
  42. /// </summary>
  43. [DisplayName("年级专业编号")]
  44. public string GrademajorCode { get; set; }
  45. /// <summary>
  46. /// 年级专业名称
  47. /// </summary>
  48. [DisplayName("年级专业名称")]
  49. public string GrademajorName { get; set; }
  50. /// <summary>
  51. /// 院系专业ID
  52. /// </summary>
  53. [DisplayName("院系专业ID")]
  54. public Guid? FacultymajorID { get; set; }
  55. /// <summary>
  56. /// 院系专业编号
  57. /// </summary>
  58. [DisplayName("院系专业编号")]
  59. public string FacultymajorNo { get; set; }
  60. /// <summary>
  61. /// 院系专业名称
  62. /// </summary>
  63. [DisplayName("院系专业名称")]
  64. public string FacultymajorName { get; set; }
  65. /// <summary>
  66. /// 院系所ID
  67. /// </summary>
  68. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  69. public Guid? CollegeID { get; set; }
  70. /// <summary>
  71. /// 院系所代码
  72. /// </summary>
  73. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  74. public string CollegeNo { get; set; }
  75. /// <summary>
  76. /// 院系所名称
  77. /// </summary>
  78. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  79. public string CollegeName { get; set; }
  80. /// <summary>
  81. /// 校区ID
  82. /// </summary>
  83. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  84. public Guid? CampusID { get; set; }
  85. /// <summary>
  86. /// 校区代码
  87. /// </summary>
  88. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  89. public string CampusNo { get; set; }
  90. /// <summary>
  91. /// 校区名称
  92. /// </summary>
  93. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
  94. public string CampusName { get; set; }
  95. /// <summary>
  96. /// 年级
  97. /// </summary>
  98. [DisplayName("年级")]
  99. public int? GradeID { get; set; }
  100. /// <summary>
  101. /// 年级
  102. /// </summary>
  103. [DisplayName("年级")]
  104. public string GradeName
  105. {
  106. get
  107. {
  108. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Grade.ToString()).Where(x => x.Value == GradeID).Select(x => x.Name).FirstOrDefault();
  109. }
  110. }
  111. /// <summary>
  112. /// 入学学期
  113. /// </summary>
  114. [DisplayName("入学学期")]
  115. public int? SemesterID { get; set; }
  116. /// <summary>
  117. /// 入学学期
  118. /// </summary>
  119. [DisplayName("入学学期")]
  120. public string SemesterName
  121. {
  122. get
  123. {
  124. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Semester.ToString()).Where(x => x.Value == SemesterID).Select(x => x.Name).FirstOrDefault();
  125. }
  126. }
  127. /// <summary>
  128. /// 专业ID(Value)
  129. /// </summary>
  130. [DisplayName("专业ID(Value)")]
  131. public int? StandardID { get; set; }
  132. /// <summary>
  133. /// 专业代码
  134. /// </summary>
  135. [DisplayName("专业代码")]
  136. public string StandardCode
  137. {
  138. get
  139. {
  140. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()).Where(x => x.Value == StandardID).Select(x => x.Code).FirstOrDefault();
  141. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  142. }
  143. }
  144. /// <summary>
  145. /// 专业名称
  146. /// </summary>
  147. [DisplayName("专业名称")]
  148. public string StandardName
  149. {
  150. get
  151. {
  152. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()).Where(x => x.Value == StandardID).Select(x => x.Name).FirstOrDefault();
  153. }
  154. }
  155. /// <summary>
  156. /// 培养层次
  157. /// </summary>
  158. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  159. public int? EducationID { get; set; }
  160. /// <summary>
  161. /// 培养层次
  162. /// </summary>
  163. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  164. public string EducationName
  165. {
  166. get
  167. {
  168. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString()).Where(x => x.Value == EducationID).Select(x => x.Name).FirstOrDefault();
  169. }
  170. }
  171. /// <summary>
  172. /// 学习形式
  173. /// </summary>
  174. [DisplayName("学习形式")]
  175. public int? LearningformID { get; set; }
  176. /// <summary>
  177. /// 学习形式
  178. /// </summary>
  179. [DisplayName("学习形式")]
  180. public string LearningformName
  181. {
  182. get
  183. {
  184. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString()).Where(x => x.Value == LearningformID).Select(x => x.Name).FirstOrDefault();
  185. }
  186. }
  187. /// <summary>
  188. /// 学制
  189. /// </summary>
  190. [DisplayName("学制")]
  191. public decimal? LearnSystem { get; set; }
  192. /// <summary>
  193. /// 入学学年学期ID
  194. /// </summary>
  195. [DisplayName("入学学年学期ID")]
  196. public Guid? StartSchoolyearID { get; set; }
  197. /// <summary>
  198. /// 入学学年学期对应的Value值
  199. /// </summary>
  200. [DisplayName("StartSchoolyearValue")]
  201. public int? StartSchoolyearValue { get; set; }
  202. /// <summary>
  203. /// 入学学年学期
  204. /// </summary>
  205. [DisplayName("入学学年学期")]
  206. public string StartSchoolyearCode { get; set; }
  207. /// <summary>
  208. /// 毕业学期
  209. /// </summary>
  210. [DisplayName("毕业学期")]
  211. public Guid? GraduateSchoolyearID { get; set; }
  212. /// <summary>
  213. /// 毕业学期对应的Value值
  214. /// </summary>
  215. [DisplayName("GraduateSchoolyearValue")]
  216. public int? GraduateSchoolyearValue { get; set; }
  217. /// <summary>
  218. /// 毕业学期
  219. /// </summary>
  220. [DisplayName("毕业学期")]
  221. public string GraduateSchoolyearCode { get; set; }
  222. /// <summary>
  223. /// 班级数
  224. /// </summary>
  225. [DisplayName("班级数")]
  226. public int? ClassmajorCount { get; set; }
  227. /// <summary>
  228. /// 学生数
  229. /// </summary>
  230. [DisplayName("学生数")]
  231. public int? StudentCount { get; set; }
  232. /// <summary>
  233. /// 可评次数
  234. /// </summary>
  235. [Required]
  236. [DisplayName("可评次数")]
  237. [RegularExpression(@"^\d+$", ErrorMessage = "请输入非负整数")]
  238. public int? Number { get; set; }
  239. /// <summary>
  240. /// 开始时间
  241. /// </summary>
  242. [Required]
  243. [DisplayName("开始时间")]
  244. [DataType(DataType.DateTime)]
  245. public DateTime? StartTime { get; set; }
  246. /// <summary>
  247. /// 结束时间
  248. /// </summary>
  249. [Required]
  250. [DisplayName("结束时间")]
  251. [DataType(DataType.DateTime)]
  252. [DateTimeNotLessThan("StartTime", "开始时间")]
  253. public DateTime? EndTime { get; set; }
  254. /// <summary>
  255. /// 状态
  256. /// </summary>
  257. [DisplayName("状态")]
  258. public int? RecordStatus { get; set; }
  259. /// <summary>
  260. /// 创建人
  261. /// </summary>
  262. [DisplayName("创建人")]
  263. public Guid? CreateUserID { get; set; }
  264. /// <summary>
  265. /// 创建人
  266. /// </summary>
  267. [DisplayName("创建人")]
  268. public string CreateUserName { get; set; }
  269. /// <summary>
  270. /// 创建时间
  271. /// </summary>
  272. [DisplayName("创建时间")]
  273. public DateTime? CreateTime { get; set; }
  274. /// <summary>
  275. /// 修改人
  276. /// </summary>
  277. [DisplayName("修改人")]
  278. public Guid? ModifyUserID { get; set; }
  279. /// <summary>
  280. /// 修改人
  281. /// </summary>
  282. [DisplayName("修改人")]
  283. public string ModifyUserName { get; set; }
  284. /// <summary>
  285. /// 修改时间
  286. /// </summary>
  287. [DisplayName("修改时间")]
  288. public DateTime? ModifyTime { get; set; }
  289. }
  290. }