CourseOutput.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 科目极简输出参数
  5. /// </summary>
  6. public class CourseMiniOutput
  7. {
  8. /// <summary>
  9. /// 主键
  10. /// </summary>
  11. [Required]
  12. public short Id { get; set; }
  13. /// <summary>
  14. /// 名称
  15. /// </summary>
  16. [Required]
  17. public string Name { get; set; }
  18. /// <summary>
  19. /// 简称
  20. /// </summary>
  21. [Required]
  22. public string ShortName { get; set; }
  23. }
  24. /// <summary>
  25. /// 科目简要输出参数
  26. /// </summary>
  27. public class CourseLiteOutput
  28. {
  29. /// <summary>
  30. /// 主键
  31. /// </summary>
  32. [Required]
  33. public short Id { get; set; }
  34. /// <summary>
  35. /// 名称
  36. /// </summary>
  37. [Required]
  38. public string Name { get; set; }
  39. /// <summary>
  40. /// 简称
  41. /// </summary>
  42. [Required]
  43. public string ShortName { get; set; }
  44. /// <summary>
  45. /// 别称
  46. /// </summary>
  47. public string NickName { get; set; }
  48. /// <summary>
  49. /// 状态
  50. /// </summary>
  51. [Required]
  52. public CommonStatus Status { get; set; }
  53. }
  54. /// <summary>
  55. /// 科目完整输出参数
  56. /// </summary>
  57. public class CourseOutput : DEntityOutput<short>
  58. {
  59. /// <summary>
  60. /// 名称
  61. /// </summary>
  62. [Required]
  63. public string Name { get; set; }
  64. /// <summary>
  65. /// 简称
  66. /// </summary>
  67. [Required]
  68. public string ShortName { get; set; }
  69. /// <summary>
  70. /// 别称
  71. /// </summary>
  72. public string NickName { get; set; }
  73. /// <summary>
  74. /// 备注
  75. /// </summary>
  76. public string Remark { get; set; }
  77. }
  78. /// <summary>
  79. /// 高中科目对象
  80. /// </summary>
  81. public class NceeCourseDto
  82. {
  83. /// <summary>
  84. /// 主键
  85. /// </summary>
  86. [Required]
  87. public short Id { get; set; }
  88. /// <summary>
  89. /// 名称
  90. /// </summary>
  91. [Required]
  92. public string Name { get; set; }
  93. /// <summary>
  94. /// 简称
  95. /// </summary>
  96. [Required]
  97. public string ShortName { get; set; }
  98. /// <summary>
  99. /// 别称
  100. /// </summary>
  101. public string NickName { get; set; }
  102. /// <summary>
  103. /// 序
  104. /// </summary>
  105. public short Sequence { get; set; }
  106. /// <summary>
  107. /// 是否跳过
  108. /// </summary>
  109. /// <param name="directionCourseId">首选科目ID</param>
  110. /// <returns></returns>
  111. public bool IsSkip(short directionCourseId)
  112. {
  113. if (Id == 4 && directionCourseId == 8) { return true; }
  114. if (Id == 8 && directionCourseId == 4) { return true; }
  115. return false;
  116. }
  117. }