mo_mes_mooccupy.cs 3.6 KB

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