UserView.cs 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using EMISOnline.ViewModel.Cache;
  6. namespace EMISOnline.ViewModel.SystemView
  7. {
  8. public class UserView
  9. {
  10. /// <summary>
  11. /// UserID
  12. /// </summary>
  13. public System.Guid UserID { get; set; }
  14. /// <summary>
  15. /// LoginID
  16. /// </summary>
  17. public string LoginID { get; set; }
  18. /// <summary>
  19. /// Name
  20. /// </summary>
  21. public string Name { get; set; }
  22. public Guid? UniversityID { get; set; }
  23. public Guid? CampusID { get; set; }
  24. public Guid? CollegeID { get; set; }
  25. public string CollegeName { get; set; }
  26. public Guid? DepartmentID { get; set; }
  27. public string DepartmentName { get; set; }
  28. public string HierarchyID { get; set; }
  29. public Guid? StaffID { get; set; }
  30. public Guid? StudentID { get; set; }
  31. public DateTime? BirthDate { get; set; }
  32. public int? Sex { get; set; }
  33. public string SexDesc
  34. {
  35. get
  36. {
  37. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
  38. .Where(x => x.Value == Sex)
  39. .Select(x => x.Name).FirstOrDefault();
  40. }
  41. }
  42. public Guid? RoleID { get; set; }
  43. public string RoleName { get; set; }
  44. public int? DataRange { get; set; }
  45. public string DataRangeDesc
  46. {
  47. get
  48. {
  49. return IdNameExt.GetDictionaryItem(DictionaryItem.SYS_DataRange.ToString())
  50. .Where(x => x.Value == DataRange)
  51. .Select(x => x.Name).FirstOrDefault();
  52. }
  53. }
  54. public string Remarks { get; set; }
  55. /// <summary>
  56. /// RecordStatus
  57. /// </summary>
  58. public Nullable<int> RecordStatus { get; set; }
  59. public string RecordStatusDesc
  60. {
  61. get
  62. {
  63. return IdNameExt.GetDictionaryItem(DictionaryItem.SYS_STATUS.ToString())
  64. .Where(x => x.Value == RecordStatus)
  65. .Select(x => x.Name).FirstOrDefault();
  66. }
  67. }
  68. /// <summary>
  69. /// CreateUserID
  70. /// </summary>
  71. public Nullable<System.Guid> CreateUserID { get; set; }
  72. public string CreateUserName { get; set; }
  73. /// <summary>
  74. /// CreateTime
  75. /// </summary>
  76. public Nullable<System.DateTime> CreateTime { get; set; }
  77. /// <summary>
  78. /// ModifyUserID
  79. /// </summary>
  80. public Nullable<System.Guid> ModifyUserID { get; set; }
  81. public string ModifyUserName { get; set; }
  82. /// <summary>
  83. /// ModifyTime
  84. /// </summary>
  85. public Nullable<System.DateTime> ModifyTime { get; set; }
  86. }
  87. }