StudentUserView.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. using EMIS.ViewModel.Cache;
  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. public string IDNumber { get; set; }
  24. /// <summary>
  25. /// Name
  26. /// </summary>
  27. public string Name { get; set; }
  28. public DateTime? BirthDate { get; set; }
  29. /// <summary>
  30. /// 性别
  31. /// </summary>
  32. public int? Sex { get; set; }
  33. /// <summary>
  34. /// 性别
  35. /// </summary>
  36. [DisplayName("性别")]
  37. public string SexName
  38. {
  39. get
  40. {
  41. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
  42. .Where(x => x.Value == Sex)
  43. .Select(x => x.Name).FirstOrDefault();
  44. }
  45. }
  46. /// <summary>
  47. /// 角色名称
  48. /// </summary>
  49. public string RoleTypeName { get; set; }
  50. public Guid? RoleID { get; set; }
  51. public string RoleName { get; set; }
  52. /// <summary>
  53. /// 年级
  54. /// </summary>
  55. public int? Grade { get; set; }
  56. /// <summary>
  57. /// 年级
  58. /// </summary>
  59. [DisplayName("年级")]
  60. public string GradeName
  61. {
  62. get
  63. {
  64. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Schoolyear.ToString())
  65. .Where(x => x.Value == Grade)
  66. .Select(x => x.Name).FirstOrDefault();
  67. }
  68. }
  69. public Guid? ClassmajorID { get; set; }
  70. /// <summary>
  71. /// 班级编号
  72. /// </summary>
  73. public string ClassNo { get; set; }
  74. public string ClassmajorName { get; set; }
  75. /// <summary>
  76. /// 在校状态
  77. /// </summary>
  78. public int? InSchool { get; set; }
  79. /// <summary>
  80. /// 在校状态
  81. /// </summary>
  82. [DisplayName("在校状态")]
  83. public string InSchoolName
  84. {
  85. get
  86. {
  87. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString())
  88. .Where(x => x.Value == InSchool)
  89. .Select(x => x.Name).FirstOrDefault();
  90. }
  91. }
  92. public string Remarks { get; set; }
  93. /// <summary>
  94. /// RecordStatus
  95. /// </summary>
  96. public Nullable<int> RecordStatus { get; set; }
  97. public string RecordStatusDesc { get; set; }
  98. /// <summary>
  99. /// CreateUserID
  100. /// </summary>
  101. public Nullable<System.Guid> CreateUserID { get; set; }
  102. public string CreateUserName { get; set; }
  103. /// <summary>
  104. /// CreateTime
  105. /// </summary>
  106. public Nullable<System.DateTime> CreateTime { get; set; }
  107. /// <summary>
  108. /// ModifyUserID
  109. /// </summary>
  110. public Nullable<System.Guid> ModifyUserID { get; set; }
  111. public string ModifyUserName { get; set; }
  112. /// <summary>
  113. /// ModifyTime
  114. /// </summary>
  115. public Nullable<System.DateTime> ModifyTime { get; set; }
  116. }
  117. }