StudentFamilyView.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using EMIS.ViewModel.CacheManage;
  6. namespace EMIS.ViewModel.Students
  7. {
  8. public class StudentFamilyView
  9. {
  10. /// <summary>
  11. /// StudentFamilyID
  12. /// </summary>
  13. public System.Guid StudentFamilyID { get; set; }
  14. /// <summary>
  15. /// UserID
  16. /// </summary>
  17. public Nullable<System.Guid> UserID { get; set; }
  18. /// <summary>
  19. /// Name
  20. /// </summary>
  21. public string Name { get; set; }
  22. /// <summary>
  23. /// Relation
  24. /// </summary>
  25. public string Relation { get; set; }
  26. /// <summary>
  27. /// Age
  28. /// </summary>
  29. public Nullable<int> Age { get; set; }
  30. /// <summary>
  31. /// Politics
  32. /// </summary>
  33. public Nullable<int> Politics { get; set; }
  34. public string PoliticsDesc
  35. {
  36. get
  37. {
  38. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Politics.ToString())
  39. .Where(x => x.Value == Politics)
  40. .Select(x => x.Name).FirstOrDefault();
  41. }
  42. }
  43. /// <summary>
  44. /// Unit
  45. /// </summary>
  46. public string Unit { get; set; }
  47. /// <summary>
  48. /// PhoneNumber
  49. /// </summary>
  50. public string PhoneNumber { get; set; }
  51. }
  52. }