mo_srm_purchase.cs 4.2 KB

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