SOCGenerateView.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using EMIS.ViewModel.CacheManage;
  7. using EMIS.ViewModel.EducationManagement;
  8. using EMIS.ViewModel.EducationManage;
  9. using EMIS.Entities;
  10. using EMIS.ViewModel.Students;
  11. namespace EMIS.ViewModel.DQPSystem
  12. {
  13. public class SOCGenerateView
  14. {
  15. /// <summary>
  16. /// 教学任务ID
  17. /// </summary>
  18. [DisplayName("教学任务ID")]
  19. public Guid? EducationMissionID { get; set; }
  20. /// <summary>
  21. /// SOC设置ID
  22. /// </summary>
  23. [DisplayName("SOC设置ID")]
  24. public Guid? SOCTemplateID { get; set; }
  25. /// <summary>
  26. /// 处理方式
  27. /// </summary>
  28. [DisplayName("处理方式")]
  29. public int? HandleModeID { get; set; }
  30. /// <summary>
  31. /// 处理方式
  32. /// </summary>
  33. [DisplayName("处理方式")]
  34. public string HandleModeName
  35. {
  36. get
  37. {
  38. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_HandleMode.ToString())
  39. .Where(x => x.Value == HandleModeID)
  40. .Select(x => x.Name).FirstOrDefault();
  41. }
  42. }
  43. /// <summary>
  44. /// 选修类型
  45. /// </summary>
  46. public int? OptionalCourseTypeID { get; set; }
  47. /// <summary>
  48. /// 院系专业ID
  49. /// </summary>
  50. [DisplayName("院系专业ID")]
  51. public Guid? FacultymajorID { get; set; }
  52. /// <summary>
  53. /// 院系专业
  54. /// </summary>
  55. [DisplayName("院系专业")]
  56. public string FacultymajorName { get; set; }
  57. /// <summary>
  58. /// 开课学年
  59. /// </summary>
  60. //[Required]
  61. [DisplayName("开课学年")]
  62. public int? SchoolyearNumID { get; set; }
  63. [DisplayName("开课学年")]
  64. public string SchoolyearNumNameStr { get; set; }
  65. /// <summary>
  66. /// 开课学年
  67. /// </summary>
  68. [DisplayName("开课学年")]
  69. public string SchoolyearNumName
  70. {
  71. get
  72. {
  73. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolyearNum.ToString())
  74. .Where(x => x.Value == SchoolyearNumID)
  75. .Select(x => x.Name).FirstOrDefault();
  76. }
  77. }
  78. /// <summary>
  79. /// 学期
  80. /// </summary>
  81. //[Required]
  82. [DisplayName("学期")]
  83. public int? SchoolcodeID { get; set; }
  84. [DisplayName("学期")]
  85. public string SchoolcodeStr { get; set; }
  86. /// <summary>
  87. /// 学期
  88. /// </summary>
  89. [DisplayName("学期")]
  90. public string SchoolcodeName
  91. {
  92. get
  93. {
  94. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Semester.ToString()).Where(x => x.Value == SchoolcodeID).Select(x => x.Name).FirstOrDefault();
  95. }
  96. }
  97. public SOCView SOCView { get; set; }
  98. public IEnumerable<SOCDetailView> SOCDetailViewList { get; set; }
  99. public EducationMissionClassView EducationMissionClassView { get; set; }
  100. public IEnumerable<MissionClassTeacherView> MissionClassTeacherViewList { get; set; }
  101. public List<Guid?> ClassmajorIDList { get; set; }
  102. public IEnumerable<Guid> StudentUserIDList { get; set; }
  103. public IEnumerable<CF_Classmajor> ClassmajorList { get; set; }
  104. public EducationMissionView EducationMissionView { get; set; }
  105. public IEnumerable<CF_Student> StudentList { get; set; }
  106. }
  107. }