mes_oorder.cs 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. using Business.Core.Attributes;
  2. using Microsoft.EntityFrameworkCore;
  3. using System;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.ComponentModel.DataAnnotations.Schema;
  6. namespace Business.Domain
  7. {
  8. /// <summary>
  9. /// 委外订单表
  10. /// </summary>
  11. [CollectionName("dopbase", "mes_oorder")]
  12. [Comment("委外订单表")]
  13. public class mes_oorder : BaseEntity
  14. {
  15. ///// <summary>
  16. ///// 委外订单id
  17. ///// </summary>
  18. //[Key]
  19. //[Comment("委外订单id")]
  20. //public long oorder_id { get; set; }
  21. /// <summary>
  22. /// 生产工单编号
  23. /// </summary>
  24. [StringLength(50)]
  25. [Comment("生产工单编号")]
  26. public string oorder_no { get; set; }
  27. /// <summary>
  28. /// 生产工单类型
  29. /// </summary>
  30. [StringLength(80)]
  31. [Comment("生产工单类型")]
  32. public string oorder_type { get; set; }
  33. /// <summary>
  34. /// 委外订单日期
  35. /// </summary>
  36. [Comment("委外订单日期")]
  37. public DateTime? oorder_date { get; set; }
  38. /// <summary>
  39. /// 订单状态
  40. /// </summary>
  41. [StringLength(50)]
  42. [Comment("订单状态")]
  43. public string oorder_state { get; set; }
  44. /// <summary>
  45. /// 生产组织
  46. /// </summary>
  47. [Comment("生产组织")]
  48. public long? ooentry_prd { get; set; }
  49. /// <summary>
  50. /// 生产组织名称
  51. /// </summary>
  52. [StringLength(50)]
  53. [Comment("生产组织名称")]
  54. public string ooentry_prdname { get; set; }
  55. /// <summary>
  56. /// 工作中心id
  57. /// </summary>
  58. [Comment("工作中心id")]
  59. public long? ooentry_wrkc { get; set; }
  60. /// <summary>
  61. /// 工作中心名称
  62. /// </summary>
  63. [StringLength(50)]
  64. [Comment("工作中心名称")]
  65. public string ooentry_wrkcname { get; set; }
  66. /// <summary>
  67. /// 计划员工号
  68. /// </summary>
  69. [StringLength(80)]
  70. [Comment("计划员工号")]
  71. public string planner_num { get; set; }
  72. /// <summary>
  73. /// 计划员名称
  74. /// </summary>
  75. [StringLength(80)]
  76. [Comment("计划员名称")]
  77. public string planner_name { get; set; }
  78. /// <summary>
  79. /// 计划开工日期
  80. /// </summary>
  81. [Comment("计划开工日期")]
  82. public DateTime? ooentry_stime { get; set; }
  83. /// <summary>
  84. /// 计划完工日期
  85. /// </summary>
  86. [Comment("计划完工日期")]
  87. public DateTime? ooentry_etime { get; set; }
  88. /// <summary>
  89. /// 产品代码
  90. /// </summary>
  91. [StringLength(80)]
  92. [Comment("产品代码")]
  93. public string product_code { get; set; }
  94. /// <summary>
  95. /// fms旧料号
  96. /// </summary>
  97. [StringLength(80)]
  98. [Comment("fms旧料号")]
  99. public string ffms_number { get; set; }
  100. /// <summary>
  101. /// 产品名称
  102. /// </summary>
  103. [StringLength(500)]
  104. [Comment("产品名称")]
  105. public string product_name { get; set; }
  106. /// <summary>
  107. /// 规格型号
  108. /// </summary>
  109. [StringLength(500)]
  110. [Comment("规格型号")]
  111. public string specification_model { get; set; }
  112. /// <summary>
  113. /// bom编码
  114. /// </summary>
  115. [StringLength(80)]
  116. [Comment("bom编码")]
  117. public string bom_number { get; set; }
  118. /// <summary>
  119. /// 单位
  120. /// </summary>
  121. [StringLength(80)]
  122. [Comment("单位")]
  123. public string unit { get; set; }
  124. /// <summary>
  125. /// 工单进度
  126. /// </summary>
  127. [StringLength(500)]
  128. [Comment("工单进度")]
  129. public string morder_progress { get; set; }
  130. /// <summary>
  131. /// 工单生产数量(计划数量)
  132. /// </summary>
  133. [Precision(20, 10)]
  134. [Comment("工单生产数量(计划数量)")]
  135. public decimal? morder_production_number { get; set; }
  136. /// <summary>
  137. /// 需求数量
  138. /// </summary>
  139. [Precision(20, 10)]
  140. [Comment("需求数量")]
  141. public decimal? need_number { get; set; }
  142. /// <summary>
  143. /// 剩余可用数量
  144. /// </summary>
  145. [Precision(20, 10)]
  146. [Comment("剩余可用数量")]
  147. public decimal? remaining_number { get; set; }
  148. /// <summary>
  149. /// 报工数量
  150. /// </summary>
  151. [Precision(23, 10)]
  152. [Comment("报工数量")]
  153. public decimal? work_number { get; set; }
  154. /// <summary>
  155. /// 报检数量
  156. /// </summary>
  157. [Precision(23, 10)]
  158. [Comment("报检数量")]
  159. public decimal? inspection_number { get; set; }
  160. /// <summary>
  161. /// 合格数量
  162. /// </summary>
  163. [Precision(23, 10)]
  164. [Comment("合格数量")]
  165. public decimal? qualified_number { get; set; }
  166. /// <summary>
  167. /// 入库数量
  168. /// </summary>
  169. [Precision(23, 10)]
  170. [Comment("入库数量")]
  171. public decimal? inventory_number { get; set; }
  172. /// <summary>
  173. /// 已开通知单数量
  174. /// </summary>
  175. [Precision(23, 10)]
  176. [Comment("已开通知单数量")]
  177. public decimal? notice_qty { get; set; }
  178. /// <summary>
  179. /// 启动状态
  180. /// </summary>
  181. [Comment("启动状态")]
  182. public int? moentry_on { get; set; }
  183. /// <summary>
  184. /// 开始时间
  185. /// </summary>
  186. [Comment("开始时间")]
  187. public DateTime? start_time { get; set; }
  188. /// <summary>
  189. /// 最近暂停时间
  190. /// </summary>
  191. [Comment("最近暂停时间")]
  192. public DateTime? pause_time { get; set; }
  193. /// <summary>
  194. /// 最近重启时间
  195. /// </summary>
  196. [Comment("最近重启时间")]
  197. public DateTime? restart_time { get; set; }
  198. ///// <summary>
  199. ///// 扩展
  200. ///// </summary>
  201. //public string ext { get; set; }
  202. /// <summary>
  203. /// 项目名称
  204. /// </summary>
  205. [StringLength(255)]
  206. [Comment("项目名称")]
  207. public string project_name { get; set; }
  208. /// <summary>
  209. /// 发料状态 1-待发料 2-已发料
  210. /// </summary>
  211. [Comment("发料状态 1-待发料 2-已发料")]
  212. public int? sent_status { get; set; }
  213. /// <summary>
  214. /// 加工单位
  215. /// </summary>
  216. [StringLength(100)]
  217. [Comment("加工单位")]
  218. public string production_unit { get; set; }
  219. /// <summary>
  220. /// 加工单位编码
  221. /// </summary>
  222. [StringLength(20)]
  223. [Comment("加工单位编码")]
  224. public string production_unit_code { get; set; }
  225. /// <summary>
  226. /// 所需物料是否充足 1-充足 0-缺料
  227. /// </summary>
  228. [Comment("所需物料是否充足 1-充足 0-缺料")]
  229. public int? need_icitem_status { get; set; }
  230. /// <summary>
  231. /// 计算ID
  232. /// </summary>
  233. [Comment("计算id")]
  234. [NotMapped]
  235. public long? bang_id { get; set; }
  236. /// <summary>
  237. /// 订单行id
  238. /// </summary>
  239. [Comment("订单行id")]
  240. public long? sentry_id { get; set; }
  241. }
  242. }