ClubCourseView.cs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. using EMIS.ViewModel.CacheManage;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.Linq;
  7. using System.Text;
  8. namespace EMIS.ViewModel.CultureplanManage.CourseMaterial
  9. {
  10. public class ClubCourseView
  11. {
  12. /// <summary>
  13. /// 主键ID
  14. /// </summary>
  15. [DisplayName("主键ID")]
  16. public Guid ClubCourseID { get; set; }
  17. /// <summary>
  18. /// 课程信息ID
  19. /// </summary>
  20. [Required]
  21. [DisplayName("课程信息ID")]
  22. public Guid? CoursematerialID { get; set; }
  23. /// <summary>
  24. /// 课程代码
  25. /// </summary>
  26. [DisplayName("课程代码")]
  27. public string CourseCode { get; set; }
  28. /// <summary>
  29. /// 课程名称
  30. /// </summary>
  31. [DisplayName("课程名称")]
  32. public string CourseName { get; set; }
  33. /// <summary>
  34. /// 简称
  35. /// </summary>
  36. [DisplayName("课程简称")]
  37. public string Abbreviation { get; set; }
  38. /// <summary>
  39. /// 课程级别
  40. /// </summary>
  41. [DisplayName("课程级别")]
  42. public int? CourseLevelID { get; set; }
  43. /// <summary>
  44. /// 课程级别
  45. /// </summary>
  46. [DisplayName("课程级别")]
  47. public string CourseLevelName
  48. {
  49. get
  50. {
  51. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseLevel.ToString())
  52. .Where(x => x.Value == CourseLevelID)
  53. .Select(x => x.Name).FirstOrDefault();
  54. }
  55. }
  56. /// <summary>
  57. /// 课程科类
  58. /// </summary>
  59. [DisplayName("课程科类")]
  60. public int? CourseScienceID { get; set; }
  61. /// <summary>
  62. /// 课程科类
  63. /// </summary>
  64. [DisplayName("课程科类")]
  65. public string CourseScienceName
  66. {
  67. get
  68. {
  69. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseScience.ToString())
  70. .Where(x => x.Value == CourseScienceID)
  71. .Select(x => x.Name).FirstOrDefault();
  72. }
  73. }
  74. /// <summary>
  75. /// 上课类型ID
  76. /// </summary>
  77. [DisplayName("上课类型ID")]
  78. public Guid? ClassGroupingID { get; set; }
  79. /// <summary>
  80. /// 上课类型
  81. /// </summary>
  82. [DisplayName("上课类型")]
  83. public string ClassName { get; set; }
  84. /// <summary>
  85. /// 是否启用
  86. /// </summary>
  87. [DisplayName("是否启用")]
  88. public bool IsEnable { get; set; }
  89. /// <summary>
  90. /// 是否启用
  91. /// </summary>
  92. [DisplayName("是否启用")]
  93. public string IsEnableName
  94. {
  95. get
  96. {
  97. return IsEnable == true ? "是" : "否";
  98. }
  99. }
  100. /// <summary>
  101. /// 状态
  102. /// </summary>
  103. [DisplayName("状态")]
  104. public int? RecordStatus { get; set; }
  105. /// <summary>
  106. /// 创建人
  107. /// </summary>
  108. [DisplayName("创建人")]
  109. public Guid? CreateUserID { get; set; }
  110. /// <summary>
  111. /// 创建时间
  112. /// </summary>
  113. [DisplayName("创建时间")]
  114. public DateTime? CreateTime { get; set; }
  115. /// <summary>
  116. /// 修改人
  117. /// </summary>
  118. [DisplayName("修改人")]
  119. public Guid? ModifyUserID { get; set; }
  120. /// <summary>
  121. /// 修改时间
  122. /// </summary>
  123. [DisplayName("修改时间")]
  124. public DateTime? ModifyTime { get; set; }
  125. }
  126. }