ExaminationExemptionView.cs 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.ComponentModel;
  7. using EMIS.ViewModel.CacheManage;
  8. namespace EMIS.ViewModel.ScoreManage
  9. {
  10. public class ExaminationExemptionView
  11. {/// <summary>
  12. /// 免考名单ID
  13. /// </summary>
  14. public System.Guid ExaminationExemptionID { get; set; }
  15. /// <summary>
  16. /// 学生ID
  17. /// </summary>
  18. [Required]
  19. [DisplayName("学号")]
  20. public Nullable<System.Guid> UserID { get; set; }
  21. [DisplayName("学号")]
  22. public string LoginID { get; set; }
  23. [DisplayName("姓名")]
  24. public string Name { get; set; }
  25. [DisplayName("班级")]
  26. public string ClassmajorName { get; set; }
  27. public int? Year { get; set; }
  28. public int? StandardID { get; set; }
  29. /// <summary>
  30. /// 院系所ID
  31. /// </summary>
  32. public Guid? CollegeID { get; set; }
  33. /// <summary>
  34. /// 学年学期
  35. /// </summary>
  36. [Required]
  37. [DisplayName("学年学期")]
  38. public Nullable<System.Guid> SchoolyearID { get; set; }
  39. [DisplayName("学年学期")]
  40. public string SchoolyearCode { get; set; }
  41. /// <summary>
  42. /// 课程ID
  43. /// </summary>
  44. [Required]
  45. [DisplayName("课程名称")]
  46. public Nullable<System.Guid> CoursematerialID { get; set; }
  47. [DisplayName("课程代码")]
  48. public string CourseCode { get; set; }
  49. [DisplayName("课程名称")]
  50. public string CourseName { get; set; }
  51. /// <summary>
  52. /// 考试性质
  53. /// </summary>
  54. [Required]
  55. [DisplayName("考试性质")]
  56. public Nullable<int> ExamsCategoryID { get; set; }
  57. [DisplayName("考试性质")]
  58. public string ExamsCategoryName
  59. {
  60. get
  61. {
  62. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExamsCategory.ToString())
  63. .Where(x => x.Value == ExamsCategoryID)
  64. .Select(x => x.Name).FirstOrDefault();
  65. }
  66. }
  67. [DisplayName("申请原因")]
  68. public string Reason { get; set; }
  69. /// <summary>
  70. /// 审核状态
  71. /// </summary>
  72. [DisplayName("审核状态")]
  73. public Nullable<int> RecordStatus { get; set; }
  74. public string RecordStatusName { get; set; }
  75. /// <summary>
  76. /// 申请时间
  77. /// </summary>
  78. [DisplayName("申请时间")]
  79. [DisplayFormat(DataFormatString = "yyyy-MM-dd HH:mm:ss")]
  80. public Nullable<System.DateTime> CreateTime { get; set; }
  81. }
  82. }