ExaminationSuspensionView.cs 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 ExaminationSuspensionView
  11. {
  12. /// <summary>
  13. /// 缓考名单ID
  14. /// </summary>
  15. public System.Guid ExaminationSuspensionID { 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. [DisplayName("申请原因")]
  69. public string Reason { get; set; }
  70. /// <summary>
  71. /// 审核状态
  72. /// </summary>
  73. [DisplayName("审核状态")]
  74. public Nullable<int> RecordStatus { get; set; }
  75. public string RecordStatusName { get; set; }
  76. /// <summary>
  77. /// 申请时间
  78. /// </summary>
  79. [DisplayName("申请时间")]
  80. [DisplayFormat(DataFormatString = "yyyy-MM-dd HH:mm:ss")]
  81. public Nullable<System.DateTime> CreateTime { get; set; }
  82. }
  83. }