UserView.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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 UserView
  10. {
  11. /// <summary>
  12. /// UserID
  13. /// </summary>
  14. public System.Guid UserID { get; set; }
  15. /// <summary>
  16. /// LoginID
  17. /// </summary>
  18. public string LoginID { get; set; }
  19. /// <summary>
  20. /// Name
  21. /// </summary>
  22. public string Name { get; set; }
  23. public Guid? CollegeID { get; set; }
  24. /// <summary>
  25. /// 院系所代码
  26. /// </summary>
  27. public string CollegeCode { get; set; }
  28. public string CollegeName { get; set; }
  29. public Guid? DepartmentID { get; set; }
  30. /// <summary>
  31. /// 教研室代码
  32. /// </summary>
  33. public string DepartmentCode { get; set; }
  34. public string DepartmentName { get; set; }
  35. public DateTime? BirthDate { get; set; }
  36. /// <summary>
  37. /// 性别码
  38. /// </summary>
  39. public int? Sex { get; set; }
  40. /// <summary>
  41. /// 性别名称
  42. /// </summary>
  43. [DisplayName("性别")]
  44. public string SexName
  45. {
  46. get
  47. {
  48. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
  49. .Where(x => x.Value == Sex)
  50. .Select(x => x.Name).FirstOrDefault();
  51. }
  52. }
  53. /// <summary>
  54. /// 角色名称
  55. /// </summary>
  56. public string RoleTypeName { get; set; }
  57. public Guid? RoleID { get; set; }
  58. public string RoleName { get; set; }
  59. /// <summary>
  60. /// 数据范围码
  61. /// </summary>
  62. public int? DataRange { get; set; }
  63. /// <summary>
  64. /// 数据范围
  65. /// </summary>
  66. [DisplayName("数据范围")]
  67. public string DataRangeName
  68. {
  69. get
  70. {
  71. return IdNameExt.GetDictionaryItem(DictionaryItem.SYS_DataRange.ToString())
  72. .Where(x => x.Value == DataRange)
  73. .Select(x => x.Name).FirstOrDefault();
  74. }
  75. }
  76. public string Remarks { get; set; }
  77. /// <summary>
  78. /// RecordStatus
  79. /// </summary>
  80. public Nullable<int> RecordStatus { get; set; }
  81. public string RecordStatusDesc { get; set; }
  82. /// <summary>
  83. /// CreateUserID
  84. /// </summary>
  85. public Nullable<System.Guid> CreateUserID { get; set; }
  86. public string CreateUserName { get; set; }
  87. /// <summary>
  88. /// CreateTime
  89. /// </summary>
  90. public Nullable<System.DateTime> CreateTime { get; set; }
  91. /// <summary>
  92. /// ModifyUserID
  93. /// </summary>
  94. public Nullable<System.Guid> ModifyUserID { get; set; }
  95. public string ModifyUserName { get; set; }
  96. /// <summary>
  97. /// ModifyTime
  98. /// </summary>
  99. public Nullable<System.DateTime> ModifyTime { get; set; }
  100. }
  101. }