srm_purchase.cs 4.9 KB

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