srm_purchase.cs 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  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. /// 公司引用id
  27. /// </summary>
  28. [Comment("公司引用id")]
  29. public long company_ref_id { get; set; }
  30. /// <summary>
  31. /// 工厂引用id
  32. /// </summary>
  33. [Comment("工厂引用id")]
  34. public long factory_ref_id { get; set; }
  35. /// <summary>
  36. /// 域编码
  37. /// </summary>
  38. [StringLength(50)]
  39. [Comment("域编码")]
  40. public string domain_code { get; set; }
  41. /// <summary>
  42. /// 物料编码
  43. /// </summary>]
  44. [StringLength(20)]
  45. [Comment("物料编码")]
  46. public string number { get; set; }
  47. /// <summary>
  48. /// 物料名称
  49. /// </summary>
  50. [StringLength(80)]
  51. [Comment("物料名称")]
  52. public string icitem_name { get; set; }
  53. /// <summary>
  54. /// 货源清单编号
  55. /// </summary>
  56. [Comment("货源清单编号")]
  57. [StringLength(80)]
  58. public string sourcelist_number { get; set; }
  59. /// <summary>
  60. /// 供应商id
  61. /// </summary>
  62. [Comment("供应商id")]
  63. public long? supplier_id { get; set; }
  64. /// <summary>
  65. /// 供应商编码
  66. /// </summary>
  67. [StringLength(80)]
  68. [Comment("供应商编码")]
  69. public string supplier_number { get; set; }
  70. /// <summary>
  71. /// 供应商名称
  72. /// </summary>
  73. [StringLength(80)]
  74. [Comment("供应商名称")]
  75. public string supplier_name { get; set; }
  76. /// <summary>
  77. /// 采购组
  78. /// </summary>
  79. [StringLength(80)]
  80. [Comment("采购组")]
  81. public string purchgroup { get; set; }
  82. /// <summary>
  83. /// 采购员
  84. /// </summary>
  85. [StringLength(80)]
  86. [Comment("采购员")]
  87. public string purcher { get; set; }
  88. /// <summary>
  89. /// 采购计量单位
  90. /// </summary>
  91. [StringLength(80)]
  92. [Comment("采购计量单位")]
  93. public string purchase_unit { get; set; }
  94. /// <summary>
  95. /// 采购净价(不含税)
  96. /// </summary>
  97. [Precision(23, 10)]
  98. [Comment("采购净价(不含税)")]
  99. public decimal? netpurchase_price { get; set; }
  100. /// <summary>
  101. /// 税率
  102. /// </summary>
  103. [Precision(23, 10)]
  104. [Comment("税率")]
  105. public decimal? taxrate { get; set; }
  106. /// <summary>
  107. /// 币种
  108. /// </summary>
  109. [Comment("币种")]
  110. public long? currency_type { get; set; }
  111. /// <summary>
  112. /// 采购负责人
  113. /// </summary>
  114. [StringLength(80)]
  115. [Comment("采购负责人")]
  116. public string order_rector_name { get; set; }
  117. /// <summary>
  118. /// 采购负责人_工号
  119. /// </summary>
  120. [StringLength(80)]
  121. [Comment("采购负责人_工号")]
  122. public string order_rector_num { get; set; }
  123. /// <summary>
  124. /// 工厂编码
  125. /// </summary>
  126. [StringLength(80)]
  127. [Comment("工厂编码")]
  128. public string factory_code { get; set; }
  129. /// <summary>
  130. /// 采购部门
  131. /// </summary>
  132. [StringLength(80)]
  133. [Comment("采购部门")]
  134. public string order_dept { get; set; }
  135. /// <summary>
  136. /// 采购单价
  137. /// </summary>
  138. [Precision(23, 10)]
  139. [Comment("采购单价")]
  140. public decimal? order_price { get; set; }
  141. /// <summary>
  142. /// 销售单价
  143. /// </summary>
  144. [Precision(23, 10)]
  145. [Comment("销售单价")]
  146. public decimal? sale_price { get; set; }
  147. /// <summary>
  148. /// 最小订货量
  149. /// </summary>
  150. [Precision(23, 10)]
  151. [Comment("最小订货量")]
  152. public decimal? qty_min { get; set; }
  153. /// <summary>
  154. /// 批量增量
  155. /// </summary>
  156. [Precision(23, 10)]
  157. [Comment("批量增量")]
  158. public decimal? batch_append_qty { get; set; }
  159. /*/// <summary>
  160. /// 是否周期送货
  161. /// </summary>
  162. [Comment("是否周期送货")]
  163. public bool is_week { get; set; }
  164. /// <summary>
  165. /// 每周几送货
  166. /// </summary>
  167. [StringLength(80)]
  168. [Comment("每周几送货")]
  169. public string is_days { get; set; }*/
  170. /// <summary>
  171. /// 计算ID
  172. /// </summary>
  173. [Comment("计算id")]
  174. [NotMapped]
  175. public long? bang_id { get; set; }
  176. /// <summary>
  177. /// 供应类别
  178. /// </summary>
  179. [StringLength(80)]
  180. [Comment("供应类别")]
  181. public string supplier_type { get; set; }
  182. /// <summary>
  183. /// 关税
  184. /// </summary>
  185. [Precision(18, 5)]
  186. [Comment("关税")]
  187. public decimal? tariff { get; set; }
  188. /// <summary>
  189. /// 运费
  190. /// </summary>
  191. [Precision(18, 5)]
  192. [Comment("运费")]
  193. public decimal? freight { get; set; }
  194. /// <summary>
  195. /// 生效日期
  196. /// </summary>
  197. [Comment("生效日期")]
  198. public DateTime? effective_date { get; set; }
  199. /// <summary>
  200. /// 失效日期
  201. /// </summary>
  202. [Comment("失效日期")]
  203. public DateTime? expiring_date { get; set; }
  204. /// <summary>
  205. /// 配额比例
  206. /// </summary>
  207. [Precision(18, 5)]
  208. [Comment("配额比例")]
  209. public decimal? quota_rate { get; set; }
  210. /// <summary>
  211. /// 采购提前期
  212. /// </summary>
  213. [Precision(18, 5)]
  214. [Comment("采购提前期")]
  215. public decimal? lead_time { get; set; }
  216. /// <summary>
  217. /// 价格条款
  218. /// </summary>
  219. [StringLength(64)]
  220. [Comment("价格条款")]
  221. public string? price_terms { get; set; }
  222. /// <summary>
  223. /// 每箱包装数量
  224. /// </summary>
  225. [Precision(18, 5)]
  226. [Comment("每箱包装数量")]
  227. public decimal? packaging_qty { get; set; }
  228. /// <summary>
  229. /// 采购类型 0,采购申请 1,要货令
  230. /// </summary>
  231. [Comment("采购类型")]
  232. public int IsRequireGoods { get; set; }
  233. /// <summary>
  234. /// 配额优先级
  235. /// </summary>
  236. [Comment("配额优先级")]
  237. public int quota_priority { get; set; }
  238. /// <summary>
  239. /// 失效
  240. /// </summary>
  241. [StringLength(64)]
  242. [Comment("失效")]
  243. public string? is_active { get; set; }
  244. /// <summary>
  245. /// 创建用户
  246. /// </summary>
  247. [StringLength(100)]
  248. [Comment("创建用户")]
  249. public string? create_user { get; set; }
  250. /// <summary>
  251. /// 更新用户
  252. /// </summary>
  253. [StringLength(100)]
  254. [Comment("更新用户")]
  255. public string? update_user { get; set; }
  256. /// <summary>
  257. /// 是否按周送货
  258. /// </summary>
  259. [Comment("是否按周送货")]
  260. public bool? is_week { get; set; }
  261. /// <summary>
  262. /// 周期送货日
  263. /// </summary>
  264. [StringLength(255)]
  265. [Comment("周期送货日")]
  266. public string? is_days { get; set; }
  267. }
  268. }