NceeLineTotal.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 NceeLineTotal : 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. [Comment("年级ID")]
  38. [Required]
  39. public short GradeId { get; set; }
  40. /// <summary>
  41. /// 班级号
  42. /// </summary>
  43. [Comment("班级号")]
  44. public short? ClassNumber { get; set; }
  45. /// <summary>
  46. /// 划线等级
  47. /// </summary>
  48. [Comment("划线等级")]
  49. [Required, Column(TypeName = "smallint")]
  50. public NceeLineLevel NceeLineLevel { get; set; }
  51. /// <summary>
  52. /// 首选科目ID
  53. /// </summary>
  54. [Comment("首选科目ID")]
  55. [Required]
  56. public short DirectionCourseId { get; set; }
  57. /// <summary>
  58. /// 选科组合ID
  59. /// </summary>
  60. [Comment("选科组合ID")]
  61. public short? NceeCourseCombId { get; set; }
  62. /// <summary>
  63. /// 上线人数
  64. /// </summary>
  65. [Comment("上线人数")]
  66. [Required]
  67. public int LineCount { get; set; } = 0;
  68. /// <summary>
  69. /// 总人数
  70. /// </summary>
  71. [Comment("总人数")]
  72. [Required]
  73. public int TotalCount { get; set; } = 0;
  74. /// <summary>
  75. /// 上线比例
  76. /// </summary>
  77. [Comment("上线比例")]
  78. [Required, Column(TypeName = "decimal(10, 8)")]
  79. public decimal LineRate { get; set; } = 0;
  80. }