srm_po_main.cs 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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_po_main")]
  12. [Comment("采购订单")]
  13. [Index(nameof(po_billno), nameof(tenant_id), nameof(company_id), nameof(factory_id), IsUnique = true)]
  14. public class srm_po_main : BaseEntity
  15. {
  16. /// <summary>
  17. /// PO单号
  18. /// </summary>
  19. [StringLength(80)]
  20. [Comment("PO单号")]
  21. public string po_billno { get; set; }
  22. /// <summary>
  23. /// 采购员
  24. /// </summary>
  25. [StringLength(80)]
  26. [Comment("采购员")]
  27. public string po_purchaser { get; set; }
  28. /// <summary>
  29. /// 采购员工号
  30. /// </summary>
  31. [StringLength(80)]
  32. [Comment("采购员工号")]
  33. public string po_purchaser_no { get; set; }
  34. /// <summary>
  35. /// 下单日期
  36. /// </summary>
  37. [Comment("下单日期")]
  38. public DateTime? po_ssend_date { get; set; }
  39. /// <summary>
  40. /// 订单总价
  41. /// </summary>
  42. [Precision(23, 10)]
  43. [Comment("订单总价")]
  44. public decimal? po_total { get; set; }
  45. /// <summary>
  46. /// 交货方式
  47. /// </summary>
  48. [Required]
  49. [Comment("交货方式")]
  50. public long? po_delivery { get; set; }
  51. /// <summary>
  52. /// 税率
  53. /// </summary>
  54. [Precision(23, 10)]
  55. [Comment("税率")]
  56. public decimal? po_tax_rate { get; set; }
  57. /// <summary>
  58. /// 是否加急
  59. /// </summary>
  60. [Comment("是否加急")]
  61. public int? po_express { get; set; }
  62. /// <summary>
  63. /// 数据状态(0-新增、1-审核中、2-同意、3-关闭)
  64. /// </summary>
  65. [Comment("数据状态")]
  66. public int? state { get; set; }
  67. /// <summary>
  68. /// 备注
  69. /// </summary>
  70. [StringLength(1000)]
  71. [Comment("备注")]
  72. public string po_note { get; set; }
  73. /// <summary>
  74. /// 评审状态
  75. /// </summary>
  76. [Comment("评审状态")]
  77. public int? rstate { get; set; }
  78. /// <summary>
  79. /// 评审次数
  80. /// </summary>
  81. [Precision(23, 10)]
  82. [Comment("评审次数")]
  83. public decimal? rnumber { get; set; }
  84. /// <summary>
  85. /// 评审通过时间
  86. /// </summary>
  87. [Comment("评审通过时间")]
  88. public DateTime? review_rtime { get; set; }
  89. /// <summary>
  90. /// 单据类型
  91. /// </summary>
  92. [Comment("单据类型")]
  93. public int? po_order_type { get; set; }
  94. /// <summary>
  95. /// 币别
  96. /// </summary>
  97. [Required]
  98. [Comment("币别")]
  99. public long? currency { get; set; }
  100. /// <summary>
  101. /// 金蝶单据类型值(标准采购订单、标准委外订单)
  102. /// </summary>
  103. [Comment("金蝶单据类型值")]
  104. public int? bill_type { get; set; }
  105. /// <summary>
  106. /// 采购组织id
  107. /// </summary>
  108. [Comment("采购组织id")]
  109. public long? purchasing_orgid { get; set; }
  110. /// <summary>
  111. /// 采购组织名称
  112. /// </summary>
  113. [StringLength(50)]
  114. [Comment("采购组织名称")]
  115. public string purchasing_orgname { get; set; }
  116. /// <summary>
  117. /// 采购联系人电话
  118. /// </summary>
  119. [StringLength(80)]
  120. [Comment("采购联系人电话")]
  121. public string telephone { get; set; }
  122. /// <summary>
  123. /// 供应商id
  124. /// </summary>
  125. [Required]
  126. [Comment("供应商id")]
  127. public long? supplier_id { get; set; }
  128. /// <summary>
  129. /// 供应商名称
  130. /// </summary>
  131. [StringLength(80)]
  132. [Comment("供应商名称")]
  133. public string supplier_name { get; set; }
  134. /// <summary>
  135. /// 供应商编号
  136. /// </summary>
  137. [StringLength(80)]
  138. [Comment("供应商编号")]
  139. public string supplier_no { get; set; }
  140. /// <summary>
  141. /// 供应商联系人
  142. /// </summary>
  143. [StringLength(80)]
  144. [Comment("供应商联系人")]
  145. public string contact { get; set; }
  146. /// <summary>
  147. /// 供应商联系人电话
  148. /// </summary>
  149. [StringLength(80)]
  150. [Comment("供应商联系人电话")]
  151. public string suppliertelephone { get; set; }
  152. /// <summary>
  153. /// 收货地址
  154. /// </summary>
  155. [StringLength(200)]
  156. [Comment("收货地址")]
  157. public string deliveryaddress { get; set; }
  158. /// <summary>
  159. /// 供应地址
  160. /// </summary>
  161. [StringLength(200)]
  162. [Comment("供应地址")]
  163. public string supplierdddress { get; set; }
  164. /// <summary>
  165. /// 确认状态
  166. /// </summary>
  167. [Comment("确认状态")]
  168. public int? confirmstate { get; set; }
  169. /// <summary>
  170. /// 物流状态
  171. /// </summary>
  172. [Comment("物流状态")]
  173. public int? logisticsstate { get; set; }
  174. /// <summary>
  175. /// 财务状态
  176. /// </summary>
  177. [Comment("财务状态")]
  178. public int? financialstate { get; set; }
  179. /// <summary>
  180. /// 计算ID
  181. /// </summary>
  182. [Comment("计算id")]
  183. [NotMapped]
  184. public long? bang_id { get; set; }
  185. /// <summary>
  186. /// 供应类别
  187. /// </summary>
  188. [Comment("供应类别")]
  189. public string supplier_type { get; set; }
  190. }
  191. }