TrainingClassStudentView.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using EMIS.ViewModel.Cache;
  6. namespace EMIS.ViewModel.EducationManage
  7. {
  8. public class TrainingClassStudentView
  9. {
  10. public Guid UserID { get; set; }
  11. public int? SchoolAreaID { get; set; }
  12. public string SchoolAreaName
  13. {
  14. get
  15. {
  16. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolArea.ToString())
  17. .Where(x => x.Value == SchoolAreaID)
  18. .Select(x => x.Name).FirstOrDefault();
  19. }
  20. }
  21. public Guid? CollegeID { get; set; }
  22. public string CollegeName { get; set; }
  23. public Guid? GrademajorID { get; set; }
  24. public int? Year { get; set; }
  25. public Guid? ClassmajorID { get; set; }
  26. public string ClassmajorName { get; set; }
  27. public string UserName { get; set; }
  28. public int? Sex { get; set; }
  29. public string SexName
  30. {
  31. get
  32. {
  33. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
  34. .Where(x => x.Value == Sex)
  35. .Select(x => x.Name).FirstOrDefault();
  36. }
  37. }
  38. public Nullable<int> CertificatesType { get; set; }
  39. public string CertificatesTypeName
  40. {
  41. get
  42. {
  43. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CertificatesType.ToString())
  44. .Where(x => x.Value == CertificatesType)
  45. .Select(x => x.Name).FirstOrDefault();
  46. }
  47. }
  48. public string IDNumber { get; set; }
  49. public string Mobile { get; set; }
  50. }
  51. }