StudentDistribute_UserView.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using System.ComponentModel.DataAnnotations;
  7. using EMIS.ViewModel.CacheManage;
  8. namespace EMIS.ViewModel.TeachingMaterial
  9. {
  10. public class StudentDistribute_UserView
  11. {
  12. /// <summary>
  13. /// 学生发放ID
  14. /// </summary>
  15. [DisplayName("学生发放ID")]
  16. public Guid StudentDistributeID { get; set; }
  17. /// <summary>
  18. /// 用户ID
  19. /// </summary>
  20. [DisplayName("用户ID")]
  21. public Guid UserID { get; set; }
  22. /// <summary>
  23. /// 学号
  24. /// </summary>
  25. [Required]
  26. [DisplayName("学号")]
  27. public string LoginID { get; set; }
  28. /// <summary>
  29. /// 姓名
  30. /// </summary>
  31. [DisplayName("姓名")]
  32. public string Name { get; set; }
  33. /// <summary>
  34. /// 性别
  35. /// </summary>
  36. [DisplayName("性别")]
  37. public int? Sex { get; set; }
  38. /// <summary>
  39. /// 性别名称
  40. /// </summary>
  41. [DisplayName("性别")]
  42. public string SexName
  43. {
  44. get
  45. {
  46. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
  47. .Where(x => x.Value == Sex)
  48. .Select(x => x.Name).FirstOrDefault();
  49. }
  50. }
  51. /// <summary>
  52. /// 班级ID
  53. /// </summary>
  54. [DisplayName("班级名称")]
  55. public Guid? ClassMajorID { get; set; }
  56. /// <summary>
  57. /// 班级编号
  58. /// </summary>
  59. [DisplayName("班级编号")]
  60. public string ClassMajorCode { get; set; }
  61. /// <summary>
  62. /// 班级名称
  63. /// </summary>
  64. [DisplayName("班级名称")]
  65. public string ClassMajorName { get; set; }
  66. /// <summary>
  67. /// 学籍状态
  68. /// </summary>
  69. [DisplayName("学籍状态")]
  70. public int? StudentStatus { get; set; }
  71. /// <summary>
  72. /// 学籍状态名称
  73. /// </summary>
  74. [DisplayName("学籍状态")]
  75. public string StudentStatusName
  76. {
  77. get
  78. {
  79. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StudentStatus.ToString())
  80. .Where(x => x.Value == StudentStatus).Select(x => x.Name).FirstOrDefault();
  81. }
  82. }
  83. /// <summary>
  84. /// 在校状态
  85. /// </summary>
  86. [DisplayName("在校状态")]
  87. [Required]
  88. public int? InSchoolStatusID { get; set; }
  89. /// <summary>
  90. /// 在校状态名称
  91. /// </summary>
  92. [DisplayName("在校状态")]
  93. public string InSchoolStatusName
  94. {
  95. get
  96. {
  97. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString())
  98. .Where(x => x.Value == InSchoolStatusID)
  99. .Select(x => x.Name).FirstOrDefault();
  100. }
  101. }
  102. /// <summary>
  103. /// 课程代码
  104. /// </summary>
  105. [DisplayName("课程代码")]
  106. public string CourseCode { get; set; }
  107. /// <summary>
  108. /// 课程名称
  109. /// </summary>
  110. [DisplayName("课程名称")]
  111. public string CourseName { get; set; }
  112. /// <summary>
  113. /// 教材编号
  114. /// </summary>
  115. [DisplayName("教材编号")]
  116. public string TeachingMaterialCode { get; set; }
  117. /// <summary>
  118. /// 教材名称
  119. /// </summary>
  120. [DisplayName("教材名称")]
  121. public string TeachingMaterialName { get; set; }
  122. /// <summary>
  123. /// 创建人
  124. /// </summary>
  125. [DisplayName("创建人")]
  126. public string CreateUserName { get; set; }
  127. /// <summary>
  128. /// 创建时间
  129. /// </summary>
  130. [DisplayName("创建时间")]
  131. public DateTime CreateTime { get; set; }
  132. /// <summary>
  133. /// 备注
  134. /// </summary>
  135. [DisplayName("备注")]
  136. public string Remark { get; set; }
  137. }
  138. }