WorkOrdRouting.cs 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. using Microsoft.EntityFrameworkCore;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace Business.Domain
  9. {
  10. /// <summary>
  11. /// 工单工艺流程表
  12. /// </summary>
  13. [Comment("工单工艺流程表")]
  14. public class WorkOrdRouting
  15. {
  16. /// <summary>
  17. /// 主键
  18. /// </summary>
  19. [Comment("主键")]
  20. [Key]
  21. public int RecID { get; set; }
  22. /// <summary>
  23. /// 域名
  24. /// </summary>
  25. [Comment("域名")]
  26. public string Domain { get; set; }
  27. /// <summary>
  28. /// 描述
  29. /// </summary>
  30. [Comment("描述")]
  31. public string Descr { get; set; }
  32. /// <summary>
  33. /// 到期日期
  34. /// </summary>
  35. [Comment("到期日期")]
  36. public DateTime? DueDate { get; set; }
  37. /// <summary>
  38. /// 关键工序(需要报工的工序)
  39. /// </summary>
  40. [Comment("关键工序")]
  41. public bool MilestoneOp { get; set; }
  42. /// <summary>
  43. /// 工单
  44. /// </summary>
  45. [Comment("工单")]
  46. public string WorkOrd { get; set; }
  47. /// <summary>
  48. /// 工序
  49. /// </summary>
  50. [Comment("工序")]
  51. public int OP { get; set; }
  52. /// <summary>
  53. /// 父级工序
  54. /// </summary>
  55. [Comment("父级工序")]
  56. public int ParentOp { get; set; }
  57. /// <summary>
  58. /// 运行时间(标准节拍)
  59. /// </summary>
  60. [Comment("运行时间")]
  61. public decimal RunTime { get; set; }
  62. /// <summary>
  63. /// 物料编号
  64. /// </summary>
  65. [Comment("物料编号")]
  66. public string ItemNum { get; set; }
  67. /// <summary>
  68. /// 订单数量
  69. /// </summary>
  70. [Comment("订单数量")]
  71. public decimal? QtyOrded { get; set; }
  72. /// <summary>
  73. /// 报工数量
  74. /// </summary>
  75. [Comment("报工数量")]
  76. public decimal QtyComplete { get; set; }
  77. /// <summary>
  78. /// 工序清场时长(小时)
  79. /// </summary>
  80. [Comment("工序清场时长")]
  81. public decimal WaitTime { get; set; }
  82. /// <summary>
  83. /// 平行加工件数,下序开工前置数量
  84. /// </summary>
  85. [Comment("平行加工件数")]
  86. public int? OverlapUnits { get; set; }
  87. /// <summary>
  88. /// 状态:C为不可用状态
  89. /// </summary>
  90. [Comment("状态")]
  91. public string Status { get; set; }
  92. /// <summary>
  93. /// 是否换包
  94. /// </summary>
  95. [Comment("是否换包")]
  96. public int CommentIndex { get; set; }
  97. /// <summary>
  98. /// 是否有效:1-有效;0-无效
  99. /// </summary>
  100. [Comment("是否有效")]
  101. public bool IsActive { get; set; }
  102. /// <summary>
  103. /// 创建时间
  104. /// </summary>
  105. [Comment("创建时间")]
  106. public DateTime? CreateTime { get; set; }
  107. /// <summary>
  108. /// 工单主键
  109. /// </summary>
  110. [Comment("工单主键")]
  111. public long WorkOrdMasterRecID { get; set; }
  112. /// <summary>
  113. /// 报工批量
  114. /// </summary>
  115. [Comment("报工批量")]
  116. public decimal? PackingQty { get; set; }
  117. /// <summary>
  118. /// 最新报工时间
  119. /// </summary>
  120. [Comment("最新报工时间")]
  121. public DateTime? Last { get; set; }
  122. /// <summary>
  123. /// SAP工序
  124. /// </summary>
  125. [Comment("SAP工序")]
  126. public string StdOp { get; set; }
  127. /// <summary>
  128. /// 工作中心
  129. /// </summary>
  130. [Comment("工作中心")]
  131. public string WorkCtr { get; set; }
  132. /// <summary>
  133. /// 工艺路线编码
  134. /// </summary>
  135. [Comment("工艺路线编码")]
  136. public string Ufld1 { get; set; }
  137. /// <summary>
  138. /// 生产车间
  139. /// </summary>
  140. [Comment("生产车间")]
  141. public string Ufld2 { get; set; }
  142. /// <summary>
  143. /// 工序控制码
  144. /// </summary>
  145. [Comment("工序控制码")]
  146. public string Ufld3 { get; set; }
  147. /// <summary>
  148. /// 工序委外
  149. /// </summary>
  150. [Comment("工序委外")]
  151. public int ProcessOut { get; set; }
  152. /// <summary>
  153. /// 工序委外提前期
  154. /// </summary>
  155. [Comment("工序委外提前期")]
  156. public decimal ProcessOutDay { get; set; }
  157. /// <summary>
  158. /// 工序委外供应商代码
  159. /// </summary>
  160. [Comment("工序委外供应商代码")]
  161. public string ProcessOutSupp { get; set; }
  162. /// <summary>
  163. /// 设备编码
  164. /// </summary>
  165. [Comment("设备编码")]
  166. public string Machine { get; set; }
  167. /// <summary>
  168. /// 模具编码
  169. /// </summary>
  170. [Comment("模具编码")]
  171. public string ToolCode { get; set; }
  172. /// <summary>
  173. /// 人员技能编号
  174. /// </summary>
  175. [Comment("人员技能编号")]
  176. public string Engineer { get; set; }
  177. /// <summary>
  178. /// 标准人数
  179. /// </summary>
  180. [Comment("标准人数")]
  181. public decimal RunCrew { get; set; }
  182. /// <summary>
  183. /// 产线
  184. /// </summary>
  185. [Comment("产线")]
  186. public string ProdLine { get; set; }
  187. /// <summary>
  188. /// 单位产能
  189. /// </summary>
  190. [Comment("单位产能")]
  191. public decimal MachBdnRate { get; set; }
  192. /// <summary>
  193. /// 准备时间
  194. /// </summary>
  195. [Comment("准备时间")]
  196. public decimal StdSetupTime { get; set; }
  197. /// <summary>
  198. /// 工序类型
  199. /// </summary>
  200. [Comment("工序类型")]
  201. public string WorkCode { get; set; }
  202. /// <summary>
  203. /// 作业编码
  204. /// </summary>
  205. [Comment("作业编码")]
  206. public string ChargeCode { get; set; }
  207. /// <summary>
  208. /// 作业编码
  209. /// </summary>
  210. [Comment("作业编码")]
  211. public string ERPfld2 { get; set; }
  212. /// <summary>
  213. /// 机器时间
  214. /// </summary>
  215. [Comment("机器时间")]
  216. public decimal MachinesperOp { get; set; }
  217. /// <summary>
  218. /// 准备时间
  219. /// </summary>
  220. [Comment("准备时间")]
  221. public decimal Setup { get; set; }
  222. /// <summary>
  223. /// 人工时间
  224. /// </summary>
  225. [Comment("人工时间")]
  226. public decimal Labor { get; set; }
  227. }
  228. }