mo_srm_purchase.cs 6.5 KB

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