DegreeForeignLanguageScoreView.cs 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Linq;
  5. using System.Text;
  6. using EMIS.ViewModel.CacheManage;
  7. using System.ComponentModel.DataAnnotations;
  8. namespace EMIS.ViewModel.DegreeManage.DegreeSetting
  9. {
  10. public class DegreeForeignLanguageScoreView
  11. {
  12. /// <summary>
  13. /// 学位申请ID
  14. /// </summary>
  15. [DisplayName("学位申请ID")]
  16. public Guid DegreeApplyID { get; set; }
  17. /// <summary>
  18. /// 毕业申请ID
  19. /// </summary>
  20. [DisplayName("毕业申请ID")]
  21. public Guid GraduationApplyID { get; set; }
  22. /// <summary>
  23. /// 等级成绩ID
  24. /// </summary>
  25. [DisplayName("等级成绩ID")]
  26. public Guid? LevelScoreID { get; set; }
  27. /// <summary>
  28. /// 学年学期
  29. /// </summary>
  30. [DisplayName("学年学期")]
  31. public Guid? SchoolyearID { get; set; }
  32. /// <summary>
  33. /// 学年学期
  34. /// </summary>
  35. [DisplayName("学年学期")]
  36. public string SchoolyearCode { get; set; }
  37. /// <summary>
  38. /// 考试科目ID
  39. /// </summary>
  40. [DisplayName("考试科目ID")]
  41. public Guid? ExaminationSubjectID { get; set; }
  42. /// <summary>
  43. /// 考试科目
  44. /// </summary>
  45. [DisplayName("考试科目")]
  46. public string ExaminationSubjectName { get; set; }
  47. /// <summary>
  48. /// 用户ID
  49. /// </summary>
  50. [DisplayName("用户ID")]
  51. public Guid? UserID { get; set; }
  52. /// <summary>
  53. /// 学号
  54. /// </summary>
  55. [DisplayName("学号")]
  56. public string StudentNo { get; set; }
  57. /// <summary>
  58. /// 姓名
  59. /// </summary>
  60. [DisplayName("姓名")]
  61. public string UserName { get; set; }
  62. /// <summary>
  63. /// 性别
  64. /// </summary>
  65. [DisplayName("性别")]
  66. public int? SexID { get; set; }
  67. /// <summary>
  68. /// 性别
  69. /// </summary>
  70. [DisplayName("性别")]
  71. public string SexName
  72. {
  73. get
  74. {
  75. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
  76. .Where(x => x.Value == SexID)
  77. .Select(x => x.Name).FirstOrDefault();
  78. }
  79. }
  80. /// <summary>
  81. /// 出生日期
  82. /// </summary>
  83. [DisplayName("出生日期")]
  84. public DateTime? BirthDate { get; set; }
  85. /// <summary>
  86. /// 民族
  87. /// </summary>
  88. [DisplayName("民族")]
  89. public int? NationID { get; set; }
  90. /// <summary>
  91. /// 民族
  92. /// </summary>
  93. [DisplayName("民族")]
  94. public string NationName
  95. {
  96. get
  97. {
  98. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Nation.ToString())
  99. .Where(x => x.Value == NationID)
  100. .Select(x => x.Name).FirstOrDefault();
  101. }
  102. }
  103. /// <summary>
  104. /// 政治面貌
  105. /// </summary>
  106. [DisplayName("政治面貌")]
  107. public int? PoliticsID { get; set; }
  108. /// <summary>
  109. /// 政治面貌
  110. /// </summary>
  111. [DisplayName("政治面貌")]
  112. public string PoliticsName
  113. {
  114. get
  115. {
  116. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Politics.ToString())
  117. .Where(x => x.Value == PoliticsID)
  118. .Select(x => x.Name).FirstOrDefault();
  119. }
  120. }
  121. /// <summary>
  122. /// 身份证号
  123. /// </summary>
  124. [DisplayName("身份证号")]
  125. public string IDNumber { get; set; }
  126. /// <summary>
  127. /// 在校状态
  128. /// </summary>
  129. [DisplayName("在校状态")]
  130. public int? InSchoolStatusID { get; set; }
  131. /// <summary>
  132. /// 在校状态
  133. /// </summary>
  134. [DisplayName("在校状态")]
  135. public string InSchoolStatusName
  136. {
  137. get
  138. {
  139. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString())
  140. .Where(x => x.Value == InSchoolStatusID)
  141. .Select(x => x.Name).FirstOrDefault();
  142. }
  143. }
  144. /// <summary>
  145. /// 学籍状态
  146. /// </summary>
  147. [DisplayName("学籍状态")]
  148. public int? StudentStatusID { get; set; }
  149. /// <summary>
  150. /// 学籍状态
  151. /// </summary>
  152. [DisplayName("学籍状态")]
  153. public string StudentStatusName
  154. {
  155. get
  156. {
  157. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StudentStatus.ToString())
  158. .Where(x => x.Value == StudentStatusID).Select(x => x.Name).FirstOrDefault();
  159. }
  160. }
  161. /// <summary>
  162. /// 年级
  163. /// </summary>
  164. [DisplayName("年级")]
  165. public int? YearID { get; set; }
  166. /// <summary>
  167. /// 专业ID(Value)
  168. /// </summary>
  169. [DisplayName("专业ID(Value)")]
  170. public int? StandardID { get; set; }
  171. /// <summary>
  172. /// 专业代码
  173. /// </summary>
  174. [DisplayName("专业代码")]
  175. public string StandardCode
  176. {
  177. get
  178. {
  179. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  180. .Where(x => x.Value == StandardID)
  181. .Select(x => x.Code).FirstOrDefault();
  182. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  183. }
  184. }
  185. /// <summary>
  186. /// 专业名称
  187. /// </summary>
  188. [DisplayName("专业名称")]
  189. public string StandardName
  190. {
  191. get
  192. {
  193. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  194. .Where(x => x.Value == StandardID)
  195. .Select(x => x.Name).FirstOrDefault();
  196. }
  197. }
  198. /// <summary>
  199. /// 培养层次
  200. /// </summary>
  201. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  202. public int? EducationID { get; set; }
  203. /// <summary>
  204. /// 培养层次
  205. /// </summary>
  206. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  207. public string EducationName
  208. {
  209. get
  210. {
  211. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString())
  212. .Where(x => x.Value == EducationID)
  213. .Select(x => x.Name).FirstOrDefault();
  214. }
  215. }
  216. /// <summary>
  217. /// 学习形式
  218. /// </summary>
  219. [DisplayName("学习形式")]
  220. public int? LearningformID { get; set; }
  221. /// <summary>
  222. /// 学习形式
  223. /// </summary>
  224. [DisplayName("学习形式")]
  225. public string LearningformName
  226. {
  227. get
  228. {
  229. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString())
  230. .Where(x => x.Value == LearningformID)
  231. .Select(x => x.Name).FirstOrDefault();
  232. }
  233. }
  234. /// <summary>
  235. /// 学制
  236. /// </summary>
  237. [DisplayName("学制")]
  238. public decimal? LearnSystem { get; set; }
  239. /// <summary>
  240. /// 班级信息ID
  241. /// </summary>
  242. [DisplayName("班级信息ID")]
  243. public Guid? ClassmajorID { get; set; }
  244. /// <summary>
  245. /// 班级编号
  246. /// </summary>
  247. [DisplayName("班级编号")]
  248. public string ClassmajorCode { get; set; }
  249. /// <summary>
  250. /// 班级名称
  251. /// </summary>
  252. [DisplayName("班级名称")]
  253. public string ClassmajorName { get; set; }
  254. /// <summary>
  255. /// 年级专业ID
  256. /// </summary>
  257. [DisplayName("年级专业ID")]
  258. public Guid? GrademajorID { get; set; }
  259. /// <summary>
  260. /// 年级专业编号
  261. /// </summary>
  262. [DisplayName("年级专业编号")]
  263. public string GrademajorCode { get; set; }
  264. /// <summary>
  265. /// 年级专业名称
  266. /// </summary>
  267. [DisplayName("年级专业名称")]
  268. public string GrademajorName { get; set; }
  269. /// <summary>
  270. /// 院系专业ID
  271. /// </summary>
  272. [DisplayName("院系专业ID")]
  273. public Guid? FacultymajorID { get; set; }
  274. /// <summary>
  275. /// 院系专业编号
  276. /// </summary>
  277. [DisplayName("院系专业编号")]
  278. public string FacultymajorCode { get; set; }
  279. /// <summary>
  280. /// 院系专业名称
  281. /// </summary>
  282. [DisplayName("院系专业名称")]
  283. public string FacultymajorName { get; set; }
  284. /// <summary>
  285. /// 院系所ID
  286. /// </summary>
  287. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  288. public Guid? CollegeID { get; set; }
  289. /// <summary>
  290. /// 院系所代码
  291. /// </summary>
  292. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  293. public string CollegeNo { get; set; }
  294. /// <summary>
  295. /// 院系所名称
  296. /// </summary>
  297. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  298. public string CollegeName { get; set; }
  299. /// <summary>
  300. /// 校区ID
  301. /// </summary>
  302. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  303. public Guid? CampusID { get; set; }
  304. /// <summary>
  305. /// 校区代码
  306. /// </summary>
  307. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  308. public string CampusNo { get; set; }
  309. /// <summary>
  310. /// 校区名称
  311. /// </summary>
  312. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
  313. public string CampusName { get; set; }
  314. /// <summary>
  315. /// 成绩单编号
  316. /// </summary>
  317. [DisplayName("成绩单编号")]
  318. public string ScoreNo { get; set; }
  319. /// <summary>
  320. /// 考试日期
  321. /// </summary>
  322. [DisplayName("考试日期")]
  323. public DateTime? ExaminationDate { get; set; }
  324. /// <summary>
  325. /// 有效期
  326. /// </summary>
  327. [DisplayName("有效期")]
  328. public DateTime? ValidDate { get; set; }
  329. /// <summary>
  330. /// 总成绩
  331. /// </summary>
  332. [DisplayName("总成绩")]
  333. public decimal? TotalScore { get; set; }
  334. /// <summary>
  335. /// 审批状态
  336. /// </summary>
  337. [DisplayName("审批状态")]
  338. public int? ApprovalStatus { get; set; }
  339. /// <summary>
  340. /// 通过成绩
  341. /// </summary>
  342. [DisplayName("通过成绩")]
  343. public decimal? PassScore { get; set; }
  344. /// <summary>
  345. /// 成绩等级ID
  346. /// </summary>
  347. [DisplayName("成绩等级ID")]
  348. public Guid? LevelSettingID { get; set; }
  349. /// <summary>
  350. /// 等级名称
  351. /// </summary>
  352. [DisplayName("等级名称")]
  353. public string LevelName { get; set; }
  354. /// <summary>
  355. /// 备注
  356. /// </summary>
  357. [DisplayName("备注")]
  358. public string Remark { get; set; }
  359. /// <summary>
  360. /// 状态
  361. /// </summary>
  362. [DisplayName("状态")]
  363. public int? RecordStatus { get; set; }
  364. /// <summary>
  365. /// 创建人
  366. /// </summary>
  367. [DisplayName("创建人")]
  368. public Guid? CreateUserID { get; set; }
  369. /// <summary>
  370. /// 创建时间
  371. /// </summary>
  372. [DisplayName("创建时间")]
  373. public DateTime? CreateTime { get; set; }
  374. /// <summary>
  375. /// 修改人
  376. /// </summary>
  377. [DisplayName("")]
  378. public Guid? ModifyUserID { get; set; }
  379. /// <summary>
  380. /// 修改时间
  381. /// </summary>
  382. [DisplayName("修改时间")]
  383. public DateTime? ModifyTime { get; set; }
  384. }
  385. }