WorkOrdRouting.cs 7.1 KB

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