NceeLineCourse.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. using Furion.DatabaseAccessor;
  2. using Microsoft.EntityFrameworkCore;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. namespace YBEE.EQM.Core;
  6. /// <summary>
  7. /// 高中双上线
  8. /// </summary>
  9. public class NceeLineCourse : IEntity
  10. {
  11. /// <summary>
  12. /// 主键
  13. /// </summary>
  14. [Comment("主键")]
  15. [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  16. public int Id { get; set; }
  17. /// <summary>
  18. /// 高中分析计划ID
  19. /// </summary>
  20. [Comment("高中分析计划ID")]
  21. [Required]
  22. public int NceePlanId { get; set; }
  23. /// <summary>
  24. /// 数据范围类型
  25. /// </summary>
  26. [Comment("数据范围类型")]
  27. [Required]
  28. public NceeDataScopeType Type { get; set; }
  29. /// <summary>
  30. /// 机构ID
  31. /// </summary>
  32. [Comment("机构ID")]
  33. public short? SysOrgId { get; set; }
  34. /// <summary>
  35. /// 年级ID
  36. /// </summary>
  37. public short GradeId { get; set; }
  38. /// <summary>
  39. /// 班级号
  40. /// </summary>
  41. [Comment("班级号")]
  42. public short? ClassNumber { get; set; }
  43. /// <summary>
  44. /// 划线等级
  45. /// </summary>
  46. [Comment("划线等级")]
  47. [Required, Column(TypeName = "smallint")]
  48. public NceeLineLevel NceeLineLevel { get; set; }
  49. /// <summary>
  50. /// 首选科目ID
  51. /// </summary>
  52. [Comment("首选科目ID")]
  53. [Required]
  54. public short DirectionCourseId { get; set; }
  55. /// <summary>
  56. /// 科目ID
  57. /// </summary>
  58. [Comment("科目ID")]
  59. [Required]
  60. public short CourseId { get; set; }
  61. /// <summary>
  62. /// 上线人数
  63. /// </summary>
  64. [Comment("上线人数")]
  65. [Required]
  66. public int LineCount { get; set; } = 0;
  67. /// <summary>
  68. /// 总人数
  69. /// </summary>
  70. [Comment("总人数")]
  71. [Required]
  72. public int TotalCount { get; set; } = 0;
  73. /// <summary>
  74. /// 上线比例
  75. /// </summary>
  76. [Comment("上线比例")]
  77. [Required, Column(TypeName = "decimal(10, 8)")]
  78. public decimal LineRate { get; set; } = 0;
  79. /// <summary>
  80. /// 是否双上线
  81. /// </summary>
  82. [Comment("是否双上线")]
  83. [Required]
  84. public bool IsDoubleLine { get; set; } = false;
  85. }