mes_mooccupy.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. using Business.Core.Attributes;
  2. using Microsoft.EntityFrameworkCore;
  3. using System;
  4. using System.ComponentModel;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.ComponentModel.DataAnnotations.Schema;
  7. namespace Business.Domain
  8. {
  9. /// <summary>
  10. /// 在制工单占用记录表
  11. /// </summary>
  12. [CollectionName("dopbase", "mes_mooccupy")]
  13. [Comment("在制工单占用记录表")]
  14. public class mes_mooccupy : BaseEntity
  15. {
  16. ///// <summary>
  17. ///// 工单占用ID
  18. ///// </summary>
  19. //[Key]
  20. //[Comment("工单占用ID")]
  21. //public long moo_id { get; set; }
  22. /// <summary>
  23. /// 类型--原始,分配
  24. /// </summary>
  25. [StringLength(50)]
  26. [Comment("类型--原始,分配")]
  27. public string moo_id_type { get; set; }
  28. /// <summary>
  29. /// 订单id
  30. /// </summary>
  31. [Comment("订单id")]
  32. public long? moo_id_billid { get; set; }
  33. /// <summary>
  34. /// 订单号
  35. /// </summary>
  36. [StringLength(50)]
  37. [Comment("订单号")]
  38. public string fbill_no { get; set; }
  39. /// <summary>
  40. /// 行号
  41. /// </summary>
  42. [Comment("行号")]
  43. public long? fentry_id { get; set; }
  44. /// <summary>
  45. /// 物料编码
  46. /// </summary>
  47. [Required]
  48. [StringLength(50)]
  49. [Comment("物料编码")]
  50. public string fitem_number { get; set; }
  51. /// <summary>
  52. /// 物料名称
  53. /// </summary>
  54. [Required]
  55. [StringLength(500)]
  56. [Comment("物料名称")]
  57. public string fitem_name { get; set; }
  58. /// <summary>
  59. /// 规格型号
  60. /// </summary>
  61. [StringLength(500)]
  62. [Comment("规格型号")]
  63. public string fmodel { get; set; }
  64. /// <summary>
  65. /// 工单id
  66. /// </summary>
  67. [Comment("工单id")]
  68. public long? moo_moid { get; set; }
  69. /// <summary>
  70. /// 工单号
  71. /// </summary>
  72. [StringLength(50)]
  73. [Comment("工单号")]
  74. public string moo_mo { get; set; }
  75. /// <summary>
  76. /// 占用量
  77. /// </summary>
  78. [Precision(23, 10)]
  79. [Comment("占用量")]
  80. public decimal? moo_qty { get; set; }
  81. /// <summary>
  82. /// 开始时间
  83. /// </summary>
  84. [Comment("开始时间")]
  85. public DateTime? moo_stime { get; set; }
  86. /// <summary>
  87. /// 结束时间
  88. /// </summary>
  89. [Comment("结束时间")]
  90. public DateTime? moo_etime { get; set; }
  91. /// <summary>
  92. /// 占用状态-1占用 默认0
  93. /// </summary>
  94. [DefaultValue(0)]
  95. [Comment("占用状态-1占用 默认0")]
  96. public int? moo_state { get; set; }
  97. /// <summary>
  98. /// 变更人
  99. /// </summary>
  100. [StringLength(50)]
  101. [Comment("变更人")]
  102. public string moo_cbr { get; set; }
  103. /// <summary>
  104. /// 变更时间
  105. /// </summary>
  106. [Comment("变更时间")]
  107. public DateTime? moo_ctime { get; set; }
  108. /// <summary>
  109. /// 变更原因
  110. /// </summary>
  111. [StringLength(500)]
  112. [Comment("变更原因")]
  113. public string moo_creason { get; set; }
  114. /// <summary>
  115. /// 计算ID
  116. /// </summary>
  117. [Comment("计算id")]
  118. [NotMapped]
  119. public long? bang_id { get; set; }
  120. }
  121. }