mo_srm_purchase.cs 4.8 KB

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