mo_mes_mooccupy.cs 3.4 KB

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