srm_purchase.cs 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. using Business.Core.Attributes;
  2. using Microsoft.EntityFrameworkCore;
  3. using System;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.ComponentModel.DataAnnotations.Schema;
  6. namespace Business.Domain
  7. {
  8. /// <summary>
  9. /// 物料采购报价单
  10. /// </summary>
  11. [CollectionName("dopbase", "srm_purchase")]
  12. [Comment("物料采购报价单")]
  13. [Index(nameof(number), nameof(supplier_number), nameof(tenant_id), nameof(company_id), nameof(factory_id), IsUnique = true)]
  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(20)]
  29. [Comment("物料编码")]
  30. public string number { get; set; }
  31. /// <summary>
  32. /// 物料名称
  33. /// </summary>
  34. [StringLength(80)]
  35. [Comment("物料名称")]
  36. public string icitem_name { get; set; }
  37. /// <summary>
  38. /// 货源清单编号
  39. /// </summary>
  40. [Comment("货源清单编号")]
  41. [StringLength(80)]
  42. public string sourcelist_number { get; set; }
  43. /// <summary>
  44. /// 供应商id
  45. /// </summary>
  46. [Comment("供应商id")]
  47. public long? supplier_id { get; set; }
  48. /// <summary>
  49. /// 供应商编码
  50. /// </summary>
  51. [StringLength(80)]
  52. [Comment("供应商编码")]
  53. public string supplier_number { get; set; }
  54. /// <summary>
  55. /// 供应商名称
  56. /// </summary>
  57. [StringLength(80)]
  58. [Comment("供应商名称")]
  59. public string supplier_name { get; set; }
  60. /// <summary>
  61. /// 采购组
  62. /// </summary>
  63. [StringLength(80)]
  64. [Comment("采购组")]
  65. public string purchgroup { get; set; }
  66. /// <summary>
  67. /// 采购员
  68. /// </summary>
  69. [StringLength(80)]
  70. [Comment("采购员")]
  71. public string purcher { get; set; }
  72. /// <summary>
  73. /// 采购计量单位
  74. /// </summary>
  75. [StringLength(80)]
  76. [Comment("采购计量单位")]
  77. public string purchase_unit { get; set; }
  78. /// <summary>
  79. /// 采购净价(不含税)
  80. /// </summary>
  81. [Precision(23, 10)]
  82. [Comment("采购净价(不含税)")]
  83. public decimal? netpurchase_price { get; set; }
  84. /// <summary>
  85. /// 税率
  86. /// </summary>
  87. [Precision(23, 10)]
  88. [Comment("税率")]
  89. public decimal? taxrate { get; set; }
  90. /// <summary>
  91. /// 币种
  92. /// </summary>
  93. [Comment("币种")]
  94. public long? currency_type { get; set; }
  95. /// <summary>
  96. /// 采购负责人
  97. /// </summary>
  98. [StringLength(80)]
  99. [Comment("采购负责人")]
  100. public string order_rector_name { get; set; }
  101. /// <summary>
  102. /// 采购负责人_工号
  103. /// </summary>
  104. [StringLength(80)]
  105. [Comment("采购负责人_工号")]
  106. public string order_rector_num { get; set; }
  107. /// <summary>
  108. /// 工厂编码
  109. /// </summary>
  110. [StringLength(80)]
  111. [Comment("工厂编码")]
  112. public string factory_code { get; set; }
  113. /// <summary>
  114. /// 采购部门
  115. /// </summary>
  116. [StringLength(80)]
  117. [Comment("采购部门")]
  118. public string order_dept { get; set; }
  119. /// <summary>
  120. /// 采购单价
  121. /// </summary>
  122. [Precision(23, 10)]
  123. [Comment("采购单价")]
  124. public decimal? order_price { get; set; }
  125. /// <summary>
  126. /// 销售单价
  127. /// </summary>
  128. [Precision(23, 10)]
  129. [Comment("销售单价")]
  130. public decimal? sale_price { get; set; }
  131. /// <summary>
  132. /// 最小订货量
  133. /// </summary>
  134. [Precision(23, 10)]
  135. [Comment("最小订货量")]
  136. public decimal? qty_min { get; set; }
  137. /// <summary>
  138. /// 批量增量
  139. /// </summary>
  140. [Precision(23, 10)]
  141. [Comment("批量增量")]
  142. public decimal? batch_append_qty { get; set; }
  143. /*/// <summary>
  144. /// 是否周期送货
  145. /// </summary>
  146. [Comment("是否周期送货")]
  147. public bool is_week { get; set; }
  148. /// <summary>
  149. /// 每周几送货
  150. /// </summary>
  151. [StringLength(80)]
  152. [Comment("每周几送货")]
  153. public string is_days { get; set; }*/
  154. /// <summary>
  155. /// 计算ID
  156. /// </summary>
  157. [Comment("计算id")]
  158. [NotMapped]
  159. public long? bang_id { get; set; }
  160. /// <summary>
  161. /// 供应类别
  162. /// </summary>
  163. [StringLength(80)]
  164. [Comment("供应类别")]
  165. public string supplier_type { get; set; }
  166. /// <summary>
  167. /// 关税
  168. /// </summary>
  169. [Precision(18, 5)]
  170. [Comment("关税")]
  171. public decimal? tariff { get; set; }
  172. /// <summary>
  173. /// 运费
  174. /// </summary>
  175. [Precision(18, 5)]
  176. [Comment("运费")]
  177. public decimal? freight { get; set; }
  178. /// <summary>
  179. /// 生效日期
  180. /// </summary>
  181. [Comment("生效日期")]
  182. public DateTime? effective_date { get; set; }
  183. /// <summary>
  184. /// 失效日期
  185. /// </summary>
  186. [Comment("失效日期")]
  187. public DateTime? expiring_date { get; set; }
  188. /// <summary>
  189. /// 配额比例
  190. /// </summary>
  191. [Precision(18, 5)]
  192. [Comment("配额比例")]
  193. public decimal? quota_rate { get; set; }
  194. /// <summary>
  195. /// 采购提前期
  196. /// </summary>
  197. [Precision(18, 5)]
  198. [Comment("采购提前期")]
  199. public decimal? lead_time { get; set; }
  200. /// <summary>
  201. /// 价格条款
  202. /// </summary>
  203. [StringLength(64)]
  204. [Comment("价格条款")]
  205. public string? price_terms { get; set; }
  206. /// <summary>
  207. /// 每箱包装数量
  208. /// </summary>
  209. [Precision(18, 5)]
  210. [Comment("每箱包装数量")]
  211. public decimal? packaging_qty { get; set; }
  212. /// <summary>
  213. /// 采购类型 0,采购申请 1,要货令
  214. /// </summary>
  215. [Comment("采购类型")]
  216. public int IsRequireGoods { get; set; }
  217. /// <summary>
  218. /// 配额优先级
  219. /// </summary>
  220. [Comment("配额优先级")]
  221. public int quota_priority { get; set; }
  222. /// <summary>
  223. /// 失效
  224. /// </summary>
  225. [StringLength(64)]
  226. [Comment("失效")]
  227. public string? is_active { get; set; }
  228. }
  229. }