PurOrdDetailBatch.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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 PurOrdDetailBatch
  15. {
  16. /// <summary>
  17. /// 主键
  18. /// </summary>
  19. [Comment("主键")]
  20. [Key]
  21. public int RecID { get; set; }
  22. public int PurOrdDetailRecID { get; set; }
  23. /// <summary>
  24. /// 域名
  25. /// </summary>
  26. [Comment("域名")]
  27. public string Domain { get; set; }
  28. /// <summary>
  29. /// 类型
  30. /// </summary>
  31. [Comment("类型")]
  32. public string Potype { get; set; }
  33. /// <summary>
  34. /// PO单号
  35. /// </summary>
  36. [Comment("PO单号")]
  37. public string PurOrd { get; set; }
  38. /// <summary>
  39. /// 明细表行号
  40. /// </summary>
  41. [Comment("明细表行号")]
  42. public short Line { get; set; }
  43. /// <summary>
  44. /// 行号
  45. /// </summary>
  46. [Comment("行号")]
  47. public short Batch { get; set; }
  48. /// <summary>
  49. /// 物料编码
  50. /// </summary>
  51. [StringLength(100)]
  52. [Comment("物料编码")]
  53. public string ItemNum { get; set; }
  54. /// <summary>
  55. /// 组件物料编码
  56. /// </summary>
  57. [StringLength(100)]
  58. [Comment("组件物料编码")]
  59. public string SuppItem { get; set; }
  60. /// <summary>
  61. /// 订单数量
  62. /// </summary>
  63. [Precision(23, 10)]
  64. [Comment("订单数量")]
  65. public decimal QtyOrded { get; set; }
  66. /// <summary>
  67. /// 已收货数量
  68. /// </summary>
  69. [Precision(23, 10)]
  70. [Comment("已收货数量")]
  71. public decimal QtyReceived { get; set; }
  72. /// <summary>
  73. /// BOM单位用量
  74. /// </summary>
  75. [Precision(23, 10)]
  76. [Comment("BOM单位用量")]
  77. public decimal? QtyBO { get; set; }
  78. /// <summary>
  79. /// PurOrdDetail.QtyOrded*BOM单位用量(按单位规则向上取整)
  80. /// </summary>
  81. [Precision(23, 10)]
  82. [Comment("PurOrdDetail.QtyOrded*BOM单位用量(按单位规则向上取整)")]
  83. public decimal? QtyReleased { get; set; }
  84. /// <summary>
  85. /// 单位
  86. /// </summary>
  87. [Comment("单位")]
  88. public string UM { get; set; }
  89. /// <summary>
  90. /// 是否有效:1-有效;0-无效
  91. /// </summary>
  92. [Comment("是否有效")]
  93. public bool IsActive { get; set; }
  94. /// <summary>
  95. /// 是否确认:1-有效;0-无效
  96. /// </summary>
  97. [Comment("是否确认")]
  98. public bool IsConfirm { get; set; }
  99. /// <summary>
  100. /// 创建时间
  101. /// </summary>
  102. [Comment("创建时间")]
  103. public DateTime? CreateTime { get; set; }
  104. /// <summary>
  105. /// 创建人
  106. /// </summary>
  107. [Comment("创建人")]
  108. public string CreateUser { get; set; }
  109. /// <summary>
  110. /// 创建时间
  111. /// </summary>
  112. [Comment("修改时间")]
  113. public DateTime? UpdateTime { get; set; }
  114. /// <summary>
  115. /// 修改人
  116. /// </summary>
  117. [Comment("修改人")]
  118. public string UpdateUser { get; set; }
  119. /// <summary>
  120. /// 库位
  121. /// </summary>
  122. [Comment("库位")]
  123. public string Location { get; set; }
  124. /// <summary>
  125. /// 状态
  126. /// </summary>
  127. [Comment("状态")]
  128. public string Status { get; set; }
  129. }
  130. }