MisconductView.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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 MisconductView
  11. {
  12. /// <summary>
  13. /// 违纪名单ID
  14. /// </summary>
  15. public System.Guid MisconductID { get; set; }
  16. /// <summary>
  17. /// 学生ID
  18. /// </summary>
  19. [Required]
  20. [DisplayName("学号")]
  21. public Nullable<System.Guid> UserID { get; set; }
  22. [DisplayName("学号")]
  23. public string LoginID { get; set; }
  24. [DisplayName("姓名")]
  25. public string Name { get; set; }
  26. [DisplayName("班级")]
  27. public string ClassmajorName { get; set; }
  28. public int? Year { get; set; }
  29. public int? StandardID { get; set; }
  30. /// <summary>
  31. /// 院系所ID
  32. /// </summary>
  33. public Guid? CollegeID { get; set; }
  34. /// <summary>
  35. /// 学年学期
  36. /// </summary>
  37. [Required]
  38. [DisplayName("学年学期")]
  39. public Nullable<System.Guid> SchoolyearID { get; set; }
  40. [DisplayName("学年学期")]
  41. public string SchoolyearCode { get; set; }
  42. /// <summary>
  43. /// 课程ID
  44. /// </summary>
  45. [Required]
  46. [DisplayName("课程名称")]
  47. public Nullable<System.Guid> CoursematerialID { get; set; }
  48. [DisplayName("课程代码")]
  49. public string CourseCode { get; set; }
  50. [DisplayName("课程名称")]
  51. public string CourseName { get; set; }
  52. /// <summary>
  53. /// 考试性质
  54. /// </summary>
  55. [Required]
  56. [DisplayName("考试性质")]
  57. public Nullable<int> ExamsCategoryID { get; set; }
  58. [DisplayName("考试性质")]
  59. public string ExamsCategoryName
  60. {
  61. get
  62. {
  63. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExamsCategory.ToString())
  64. .Where(x => x.Value == ExamsCategoryID)
  65. .Select(x => x.Name).FirstOrDefault();
  66. }
  67. }
  68. /// <summary>
  69. /// 考试状态(舞弊类型)
  70. /// </summary>
  71. [Required]
  72. [DisplayName("考试状态")]
  73. public Nullable<int> ExamsStateID { get; set; }
  74. [DisplayName("考试状态")]
  75. public string ExamsStateName
  76. {
  77. get
  78. {
  79. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExamsState.ToString())
  80. .Where(x => x.Value == ExamsStateID)
  81. .Select(x => x.Name).FirstOrDefault();
  82. }
  83. }
  84. [DisplayName("申请原因")]
  85. public string Reason { get; set; }
  86. /// <summary>
  87. /// 审核状态
  88. /// </summary>
  89. [DisplayName("审核状态")]
  90. public Nullable<int> RecordStatus { get; set; }
  91. public string RecordStatusName { get; set; }
  92. public DateTime? CreateTime { get; set; }
  93. }
  94. }