mes_tech_process.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. using Business.Core.Attributes;
  2. using Microsoft.EntityFrameworkCore;
  3. using System.ComponentModel.DataAnnotations;
  4. namespace Business.Domain
  5. {
  6. /// <summary>
  7. /// 工艺关联工序表
  8. /// </summary>
  9. [CollectionName("dopbase", "mes_tech_process")]
  10. [Comment("工艺关联工序表")]
  11. public class mes_tech_process : BaseEntity
  12. {
  13. ///// <summary>
  14. ///// 工艺工序主键
  15. ///// </summary>
  16. //[Key]
  17. //[Comment("工艺工序主键")]
  18. //public long tech_proc_id { get; set; }
  19. /// <summary>
  20. /// 工艺主键
  21. /// </summary>
  22. [Required]
  23. [Comment("工艺主键")]
  24. public long? tech_id { get; set; }
  25. /// <summary>
  26. /// 工序主键
  27. /// </summary>
  28. [Required]
  29. [Comment("工序主键")]
  30. public long? proc_id { get; set; }
  31. /// <summary>
  32. /// 组合层级
  33. /// </summary>
  34. [Required]
  35. [Comment("组合层级")]
  36. public int? level { get; set; }
  37. /// <summary>
  38. /// 是否需要排产:1-是;0-否
  39. /// </summary>
  40. [Required]
  41. [Comment("是否需要排产:1-是;0-否")]
  42. public int? is_schedule { get; set; }
  43. /// <summary>
  44. /// 前置准备时间
  45. /// </summary>
  46. [Precision(20, 8)]
  47. [Comment("前置准备时间")]
  48. public decimal? readytime { get; set; }
  49. /// <summary>
  50. /// 工作中心类型WorkCenterType:1-人工型;2-流水线型;3-设备型
  51. /// </summary>
  52. [Comment("工作中心类型")]
  53. public int? wctype { get; set; }
  54. /// <summary>
  55. /// 前置最小数量LeadQuantity to Start Next
  56. /// </summary>
  57. [Precision(23, 10)]
  58. [Comment("前置最小数量")]
  59. public decimal? lq { get; set; }
  60. /// <summary>
  61. /// 前置等待时间
  62. /// </summary>
  63. [Precision(23, 10)]
  64. [Comment("前置等待时间")]
  65. public decimal? lqt { get; set; }
  66. /// <summary>
  67. /// 子工序加工数量UnitPerParent
  68. /// </summary>
  69. [Precision(23, 10)]
  70. [Comment("子工序加工数量")]
  71. public decimal? upp { get; set; }
  72. /// <summary>
  73. /// 一次可加工数量UnitPerEquipment
  74. /// </summary>
  75. [Precision(23, 10)]
  76. [Comment("一次可加工数量")]
  77. public decimal? upe { get; set; }
  78. /// <summary>
  79. /// 实际运行工位数WorkshopInUse
  80. /// </summary>
  81. [Comment("实际运行工位数")]
  82. public int? wsinuse { get; set; }
  83. ///// <summary>
  84. ///// 效率计算类型 1-节拍时间;2-UPH
  85. ///// </summary>
  86. //[Required]
  87. //[Description("效率计算类型 1-节拍时间;2-UPH")]
  88. //public int? type { get; set; }
  89. /// <summary>
  90. /// UPH
  91. /// </summary>
  92. [Precision(23, 10)]
  93. [Comment("UPH")]
  94. public decimal? uph { get; set; }
  95. /// <summary>
  96. /// 节拍时间
  97. /// </summary>
  98. [Precision(23, 10)]
  99. [Comment("节拍时间")]
  100. public decimal? ct { get; set; }
  101. /// <summary>
  102. /// 效率系数
  103. /// </summary>
  104. [Precision(10, 4)]
  105. [Comment("效率系数")]
  106. public decimal? effect_ratio { get; set; }
  107. /// <summary>
  108. /// 是否需要跟踪工序
  109. /// </summary>
  110. [Comment("是否需要跟踪工序")]
  111. public int? mototrack { get; set; }
  112. /// <summary>
  113. /// 下一工序id
  114. /// </summary>
  115. [Comment("下一工序id")]
  116. public long? nextprocid { get; set; }
  117. /// <summary>
  118. /// 父级工序id
  119. /// </summary>
  120. [Comment("父级工序id")]
  121. public long? parentprocid { get; set; }
  122. /// <summary>
  123. /// 是否需要质检
  124. /// </summary>
  125. [Comment("是否需要质检")]
  126. public int? needqc { get; set; }
  127. /// <summary>
  128. /// 最大并行工位数
  129. /// </summary>
  130. [Comment("最大并行工位数")]
  131. public int? maxworkshop { get; set; }
  132. }
  133. }