NbrDetail.cs 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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 NbrDetail
  15. {
  16. /// <summary>
  17. /// 主键
  18. /// </summary>
  19. [Comment("主键")]
  20. [Key]
  21. public int RecID { get; set; }
  22. /// <summary>
  23. /// 域名
  24. /// </summary>
  25. [Comment("域名")]
  26. public string Domain { get; set; }
  27. /// <summary>
  28. /// 类型
  29. /// </summary>
  30. [Comment("类型")]
  31. public string Type { get; set; }
  32. /// <summary>
  33. /// 单据编号
  34. /// </summary>
  35. [Comment("单据编号")]
  36. public string Nbr { get; set; }
  37. /// <summary>
  38. /// 物料编号
  39. /// </summary>
  40. [Comment("物料编号")]
  41. public string ItemNum { get; set; }
  42. /// <summary>
  43. /// 转出数量
  44. /// </summary>
  45. [Comment("转出数量")]
  46. public decimal? QtyFrom { get; set; }
  47. /// <summary>
  48. /// 转入数量
  49. /// </summary>
  50. [Comment("转入数量")]
  51. public decimal? QtyTo { get; set; }
  52. /// <summary>
  53. /// 工单
  54. /// </summary>
  55. [Comment("工单")]
  56. public string WorkOrd { get; set; }
  57. /// <summary>
  58. /// ERP工单
  59. /// </summary>
  60. [Comment("ERP工单")]
  61. public string Address { get; set; }
  62. /// <summary>
  63. /// erpid
  64. /// </summary>
  65. [Comment("erpid")]
  66. public string OrdNbr { get; set; }
  67. /// <summary>
  68. /// ERP行号
  69. /// </summary>
  70. [Comment("ERP行号")]
  71. public short OrdLine { get; set; }
  72. /// <summary>
  73. /// ERPid
  74. /// </summary>
  75. [Comment("ERPid")]
  76. public string ERPfld1 { get; set; }
  77. /// <summary>
  78. /// ERP行号
  79. /// </summary>
  80. [Comment("ERP行号")]
  81. public string ERPfld2 { get; set; }
  82. /// <summary>
  83. /// 原始库位
  84. /// </summary>
  85. [Comment("原始库位")]
  86. public string LocationFrom { get; set; }
  87. /// <summary>
  88. /// 目标库位
  89. /// </summary>
  90. [Comment("目标库位")]
  91. public string LocationTo { get; set; }
  92. /// <summary>
  93. /// 订单数量
  94. /// </summary>
  95. [Comment("订单数量")]
  96. public decimal QtyOrd { get; set; }
  97. /// <summary>
  98. /// 工单需求数量
  99. /// </summary>
  100. [Comment("工单需求数量")]
  101. public decimal? CurrQtyOpened { get; set; }
  102. /// <summary>
  103. /// 行号
  104. /// </summary>
  105. [Comment("行号")]
  106. public short Line { get; set; }
  107. /// <summary>
  108. /// 主表主键
  109. /// </summary>
  110. [Comment("主表主键")]
  111. public int NbrRecID { get; set; }
  112. /// <summary>
  113. /// 是否有效:1-有效;0-无效
  114. /// </summary>
  115. [Comment("是否有效")]
  116. public bool IsActive { get; set; }
  117. /// <summary>
  118. /// 单位
  119. /// </summary>
  120. [Comment("单位")]
  121. public string UM { get; set; }
  122. /// <summary>
  123. /// 创建时间
  124. /// </summary>
  125. [Comment("创建时间")]
  126. public DateTime? CreateTime { get; set; }
  127. /// <summary>
  128. /// 创建人
  129. /// </summary>
  130. [Comment("创建人")]
  131. public string CreateUser { get; set; }
  132. /// <summary>
  133. /// 创建时间
  134. /// </summary>
  135. [Comment("修改时间")]
  136. public DateTime? UpdateTime { get; set; }
  137. /// <summary>
  138. /// 修改人
  139. /// </summary>
  140. [Comment("修改人")]
  141. public string UpdateUser { get; set; }
  142. /// <summary>
  143. /// 批次序列
  144. /// </summary>
  145. [Comment("批次序列")]
  146. public string LotSerial { get; set; }
  147. /// <summary>
  148. /// 工单已发料数量
  149. /// </summary>
  150. [Comment("工单已发料数量")]
  151. public decimal QtyRec { get; set; }
  152. /// <summary>
  153. /// 物料名称
  154. /// </summary>
  155. [Comment("物料名称")]
  156. public string ItemName { get; set; }
  157. /// <summary>
  158. /// 状态:C为已下架、出库
  159. /// </summary>
  160. [Comment("状态")]
  161. public string Status { get; set; }
  162. }
  163. }