MonthlyProdCapacity.cs 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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(PlanMonth), nameof(ProdLine), nameof(tenant_id),nameof(company_id), nameof(factory_id), IsUnique = true)]
  16. public class MonthlyProdCapacity:BaseEntity
  17. {
  18. /// <summary>
  19. /// 年
  20. /// </summary>
  21. [Comment("年")]
  22. public int? Year { get; set; }
  23. /// <summary>
  24. /// 月
  25. /// </summary>
  26. [Comment("月")]
  27. public int? Month { get; set; }
  28. /// <summary>
  29. /// 计划年月
  30. /// </summary>
  31. [Comment("计划年月")]
  32. public string PlanMonth { get; set; }
  33. /// <summary>
  34. /// 生产线
  35. /// </summary>
  36. [Comment("生产线")]
  37. public string ProdLine { get; set; }
  38. /// <summary>
  39. /// 日工作时间(小时)
  40. /// </summary>
  41. [Comment("日工作时间(小时)")]
  42. public decimal DailyWorks { get; set; }
  43. /// <summary>
  44. /// 月工作天数(天)
  45. /// </summary>
  46. [Comment("月工作天数(天)")]
  47. public decimal MonthWorks { get; set; }
  48. /// <summary>
  49. /// 班次数
  50. /// </summary>
  51. [Comment("班次数")]
  52. public int FlightQty { get; set; }
  53. /// <summary>
  54. /// 月度可利用工作时间(小时)
  55. /// </summary>
  56. [Comment("月度可利用工作时间(小时)")]
  57. public decimal AvailableTimes { get; set; }
  58. /// <summary>
  59. /// 月度需求工作时间(小时)
  60. /// </summary>
  61. [Comment("月度需求工作时间(小时)")]
  62. public decimal NeedWorks { get; set; }
  63. /// <summary>
  64. /// 排产效率
  65. /// </summary>
  66. [Comment("排产效率")]
  67. public decimal ProdRate { get; set; }
  68. /// <summary>
  69. /// 产线标准产能符合率
  70. /// </summary>
  71. [Comment("产线标准产能符合率")]
  72. public decimal Rate { get; set; }
  73. /// <summary>
  74. /// 是否加班:是,否
  75. /// </summary>
  76. [Comment("是否加班")]
  77. public string IsOverTime { get; set; }
  78. /// <summary>
  79. /// 加班工时
  80. /// </summary>
  81. [Comment("加班工时")]
  82. public decimal OverTimes { get; set; }
  83. }
  84. }