srm_purchase.cs 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. using Business.Core.Attributes;
  2. using Business.Model;
  3. using Microsoft.EntityFrameworkCore;
  4. using System.ComponentModel;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.ComponentModel.DataAnnotations.Schema;
  7. namespace Business.Model.SRM
  8. {
  9. /// <summary>
  10. /// 物料采购报价单
  11. /// </summary>
  12. [CollectionName("dopbase", "srm_purchase")]
  13. [Comment("物料采购报价单")]
  14. public class srm_purchase : BaseEntity
  15. {
  16. public srm_purchase(long Id) : base(Id)
  17. {
  18. }
  19. /// <summary>
  20. /// 物料id
  21. /// </summary>
  22. [Required]
  23. [Comment("物料id")]
  24. public long icitem_id { get; set; }
  25. /// <summary>
  26. /// 物料名称
  27. /// </summary>
  28. [StringLength(80)]
  29. [Comment("物料名称")]
  30. public string? icitem_name { get; set; }
  31. /// <summary>
  32. /// 货源清单编号
  33. /// </summary>
  34. [Comment("货源清单编号")]
  35. [StringLength(80)]
  36. public string? sourcelist_number { get; set; }
  37. /// <summary>
  38. /// 供应商id
  39. /// </summary>
  40. [Comment("供应商id")]
  41. public long? supplier_id { get; set; }
  42. /// <summary>
  43. /// 供应商编码
  44. /// </summary>
  45. [StringLength(80)]
  46. [Comment("供应商编码")]
  47. public string? supplier_number { get; set; }
  48. /// <summary>
  49. /// 供应商名称
  50. /// </summary>
  51. [StringLength(80)]
  52. [Comment("供应商名称")]
  53. public string? supplier_name { get; set; }
  54. /// <summary>
  55. /// 采购组
  56. /// </summary>
  57. [StringLength(80)]
  58. [Comment("采购组")]
  59. public string? purchgroup { get; set; }
  60. /// <summary>
  61. /// 采购员
  62. /// </summary>
  63. [StringLength(80)]
  64. [Comment("采购员")]
  65. public string? purcher { get; set; }
  66. /// <summary>
  67. /// 采购计量单位
  68. /// </summary>
  69. [StringLength(80)]
  70. [Comment("采购计量单位")]
  71. public string? purchase_unit { get; set; }
  72. /// <summary>
  73. /// 采购净价(不含税)
  74. /// </summary>
  75. [Precision(23, 10)]
  76. [Comment("采购净价(不含税)")]
  77. public decimal? netpurchase_price { get; set; }
  78. /// <summary>
  79. /// 税率
  80. /// </summary>
  81. [Precision(23, 10)]
  82. [Comment("税率")]
  83. public decimal? taxrate { get; set; }
  84. /// <summary>
  85. /// 币种
  86. /// </summary>
  87. [Comment("币种")]
  88. public long? currency_type { get; set; }
  89. /// <summary>
  90. /// 采购负责人
  91. /// </summary>
  92. [StringLength(80)]
  93. [Comment("采购负责人")]
  94. public string? order_rector_name { get; set; }
  95. /// <summary>
  96. /// 采购负责人_工号
  97. /// </summary>
  98. [StringLength(80)]
  99. [Comment("采购负责人_工号")]
  100. public string? order_rector_num { get; set; }
  101. /// <summary>
  102. /// 工厂编码
  103. /// </summary>
  104. [StringLength(80)]
  105. [Comment("工厂编码")]
  106. public string? factory_code { get; set; }
  107. /// <summary>
  108. /// 采购部门
  109. /// </summary>
  110. [StringLength(80)]
  111. [Comment("采购部门")]
  112. public string? order_dept { get; set; }
  113. /// <summary>
  114. /// 采购单价
  115. /// </summary>
  116. [Precision(23, 10)]
  117. [Comment("采购单价")]
  118. public decimal? order_price { get; set; }
  119. /// <summary>
  120. /// 销售单价
  121. /// </summary>
  122. [Precision(23, 10)]
  123. [Comment("销售单价")]
  124. public decimal? sale_price { get; set; }
  125. /// <summary>
  126. /// 最小订货量
  127. /// </summary>
  128. [Precision(23, 10)]
  129. [Comment("最小订货量")]
  130. public decimal? qty_min { get; set; }
  131. /// <summary>
  132. /// 批量增量
  133. /// </summary>
  134. [Precision(23, 10)]
  135. [Comment("批量增量")]
  136. public decimal? batch_append_qty { get; set; }
  137. /// <summary>
  138. /// 计算ID
  139. /// </summary>
  140. [Comment("计算id")]
  141. [NotMapped]
  142. public long? bang_id { get; set; }
  143. }
  144. }