MonthlyProdCapacityDtl.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. using Microsoft.EntityFrameworkCore;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace Business.Domain
  10. {
  11. /// <summary>
  12. /// 月度产能共识明细表
  13. /// </summary>
  14. [Comment("月度产能共识主表")]
  15. [Index(nameof(Year), nameof(Month), nameof(ProdLine), nameof(tenant_id), nameof(factory_id), IsUnique = true)]
  16. public class MonthlyProdCapacityDtl
  17. {
  18. /// <summary>
  19. /// 主键
  20. /// </summary>
  21. [Comment("主键")]
  22. [Key]
  23. [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  24. public long Id { get; set; }
  25. /// <summary>
  26. /// 主表id
  27. /// </summary>
  28. public long MainId { get; set; }
  29. /// <summary>
  30. /// 年
  31. /// </summary>
  32. [Comment("年")]
  33. public int? Year { get; set; }
  34. /// <summary>
  35. /// 月
  36. /// </summary>
  37. [Comment("月")]
  38. public int? Month { get; set; }
  39. /// <summary>
  40. /// 生产线
  41. /// </summary>
  42. [Comment("生产线")]
  43. public string ProdLine { get; set; }
  44. /// <summary>
  45. /// 日工作时间(小时)
  46. /// </summary>
  47. [Comment("日工作时间(小时)")]
  48. public decimal? DailyWorks { get; set; }
  49. /// <summary>
  50. /// 月工作天数(天)
  51. /// </summary>
  52. [Comment("月工作天数(天)")]
  53. public decimal? YearWorks { get; set; }
  54. /// <summary>
  55. /// 班次数
  56. /// </summary>
  57. [Comment("班次数")]
  58. public int? FlightQty { get; set; }
  59. /// <summary>
  60. /// 月度可利用工作时间(小时)
  61. /// </summary>
  62. [Comment("月度可利用工作时间(小时)")]
  63. public decimal? AvailableTimes { get; set; }
  64. /// <summary>
  65. /// 月度需求工作时间(小时)
  66. /// </summary>
  67. [Comment("月度需求工作时间(小时)")]
  68. public decimal? NeedWorks { get; set; }
  69. /// <summary>
  70. /// 排产效率
  71. /// </summary>
  72. [Comment("排产效率")]
  73. public decimal? ProdRate { get; set; }
  74. /// <summary>
  75. /// 产线标准产能符合率
  76. /// </summary>
  77. [Comment("产线标准产能符合率")]
  78. public decimal? Rate { get; set; }
  79. /// <summary>
  80. /// 是否加班:是,否
  81. /// </summary>
  82. [Comment("是否加班")]
  83. public string IsOverTime { get; set; }
  84. /// <summary>
  85. /// 加班工时
  86. /// </summary>
  87. [Comment("加班工时")]
  88. public decimal? OverTimes { get; set; }
  89. /// <summary>
  90. /// 集团id
  91. /// </summary>
  92. [Comment("集团id")]
  93. public long? tenant_id { get; set; }
  94. /// <summary>
  95. /// 工厂id
  96. /// </summary>
  97. [Comment("工厂id")]
  98. public long? factory_id { get; set; }
  99. /// <summary>
  100. /// 整体需求计划版本号
  101. /// </summary>
  102. [Comment("整体需求计划版本号")]
  103. public string Version { get; set; }
  104. }
  105. }