StudentReentryView.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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.DifferentDynamic
  7. {
  8. public class StudentReentryView
  9. {
  10. public Guid ID { get; set; }
  11. public Guid? UserID { get; set; }
  12. public string LoginID { get; set; }
  13. public string UserName { get; set; }
  14. public DateTime? EndDate { get; set; }
  15. public int? DifferentDynamicTypeID { get; set; }
  16. public string DifferentDynamicTypeDesc
  17. {
  18. get
  19. {
  20. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ChangeType.ToString())
  21. .Where(x => x.Value == DifferentDynamicTypeID)
  22. .Select(x => x.Name).FirstOrDefault();
  23. }
  24. }
  25. public Guid? ClassmajorID { get; set; }
  26. public string ClassmajorName { get; set; }
  27. public int? StudentStatusID { get; set; }
  28. public string StudentStatusDesc
  29. {
  30. get
  31. {
  32. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StudentStatus.ToString())
  33. .Where(x => x.Value == StudentStatusID).Select(x => x.Name).FirstOrDefault();
  34. }
  35. }
  36. public Guid? AfterClassmajorID { get; set; }
  37. public string AfterClassmajorName { get; set; }
  38. public int? AfterStudentStatusID { get; set; }
  39. public string AfterStudentStatusDesc
  40. {
  41. get
  42. {
  43. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StudentStatus.ToString())
  44. .Where(x => x.Value == AfterStudentStatusID).Select(x => x.Name).FirstOrDefault();
  45. }
  46. }
  47. public int? ReasonID { get; set; }
  48. public string ReasonDesc
  49. {
  50. get
  51. {
  52. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ChangeReason.ToString())
  53. .Where(x => x.Value == ReasonID)
  54. .Select(x => x.Name).FirstOrDefault();
  55. }
  56. }
  57. public DateTime? ApprovalDate { get; set; }
  58. public bool IsReentried { get; set; }
  59. public string IsReentriedDesc
  60. {
  61. get
  62. {
  63. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_YesOrNoStatus.ToString())
  64. .Where(x => x.Value == (IsReentried ? (int)CF_YesOrNoStatus.Yes : (int)CF_YesOrNoStatus.No))
  65. .Select(x => x.Name).FirstOrDefault();
  66. }
  67. }
  68. public Guid? CollegeID { get; set; }
  69. public string CollegeName { get; set; }
  70. public Guid? CampusID { get; set; }
  71. public string CampusName { get; set; }
  72. public DateTime? CreateTime { get; set; }
  73. }
  74. }