StudentUserView.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. using EMIS.ViewModel.CacheManage;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Linq;
  6. using System.Text;
  7. namespace EMIS.ViewModel.SystemView
  8. {
  9. public class StudentUserView
  10. {
  11. /// <summary>
  12. /// UserID
  13. /// </summary>
  14. public System.Guid UserID { get; set; }
  15. /// <summary>
  16. /// CollegeID
  17. /// </summary>
  18. public Guid? CollegeID { get; set; }
  19. /// <summary>
  20. /// LoginID
  21. /// </summary>
  22. public string LoginID { get; set; }
  23. /// <summary>
  24. /// Name
  25. /// </summary>
  26. public string Name { get; set; }
  27. public DateTime? BirthDate { get; set; }
  28. /// <summary>
  29. /// 性别
  30. /// </summary>
  31. public int? SexID { get; set; }
  32. /// <summary>
  33. /// 性别
  34. /// </summary>
  35. [DisplayName("性别")]
  36. public string SexName
  37. {
  38. get
  39. {
  40. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
  41. .Where(x => x.Value == SexID)
  42. .Select(x => x.Name).FirstOrDefault();
  43. }
  44. }
  45. /// <summary>
  46. /// 角色名称
  47. /// </summary>
  48. public string RoleTypeName { get; set; }
  49. public Guid? RoleID { get; set; }
  50. public string RoleName { get; set; }
  51. /// <summary>
  52. /// 年级
  53. /// </summary>
  54. public int? Grade { get; set; }
  55. /// <summary>
  56. /// 年级
  57. /// </summary>
  58. [DisplayName("年级")]
  59. public string GradeName
  60. {
  61. get
  62. {
  63. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Grade.ToString()).Where(x => x.Value == Grade).Select(x => x.Name).FirstOrDefault();
  64. }
  65. }
  66. public Guid? ClassmajorID { get; set; }
  67. /// <summary>
  68. /// 班级编号
  69. /// </summary>
  70. public string ClassNo { get; set; }
  71. public string ClassmajorName { get; set; }
  72. /// <summary>
  73. /// 在校状态
  74. /// </summary>
  75. public int? InSchool { get; set; }
  76. /// <summary>
  77. /// 在校状态
  78. /// </summary>
  79. [DisplayName("在校状态")]
  80. public string InSchoolName
  81. {
  82. get
  83. {
  84. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString())
  85. .Where(x => x.Value == InSchool)
  86. .Select(x => x.Name).FirstOrDefault();
  87. }
  88. }
  89. public string Remarks { get; set; }
  90. /// <summary>
  91. /// RecordStatus
  92. /// </summary>
  93. public Nullable<int> RecordStatus { get; set; }
  94. public string RecordStatusDesc { get; set; }
  95. /// <summary>
  96. /// CreateUserID
  97. /// </summary>
  98. public Nullable<System.Guid> CreateUserID { get; set; }
  99. public string CreateUserName { get; set; }
  100. /// <summary>
  101. /// CreateTime
  102. /// </summary>
  103. public Nullable<System.DateTime> CreateTime { get; set; }
  104. /// <summary>
  105. /// ModifyUserID
  106. /// </summary>
  107. public Nullable<System.Guid> ModifyUserID { get; set; }
  108. public string ModifyUserName { get; set; }
  109. /// <summary>
  110. /// ModifyTime
  111. /// </summary>
  112. public Nullable<System.DateTime> ModifyTime { get; set; }
  113. }
  114. }