mes_tech_process.cs 4.2 KB

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