mo_srm_pr_main.cs 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. using Business.Core.Attributes;
  2. using Business.MongoModel;
  3. using Microsoft.EntityFrameworkCore;
  4. using MongoDB.Bson.Serialization.Attributes;
  5. using System.ComponentModel;
  6. using System.ComponentModel.DataAnnotations;
  7. using System.ComponentModel.DataAnnotations.Schema;
  8. namespace Business.MongoModel.SRM
  9. {
  10. /// <summary>
  11. /// 采购申请单
  12. /// </summary>
  13. [CollectionName("dopbase", "mo_srm_pr_main")]
  14. [Comment("采购申请单")]
  15. public class mo_srm_pr_main : MoBaseEntity
  16. {
  17. /// <summary>
  18. /// pr单号
  19. /// </summary>
  20. [StringLength(80)]
  21. [Comment("pr单号")]
  22. public string? pr_billno { get; set; }
  23. /// <summary>
  24. /// 关联工单号
  25. /// </summary>
  26. [StringLength(80)]
  27. [Comment("关联工单号")]
  28. public string? pr_mono { get; set; }
  29. /// <summary>
  30. /// 工单行号
  31. /// </summary>
  32. [Comment("工单行号")]
  33. public int? entity_id { get; set; }
  34. /// <summary>
  35. /// 供应商id
  36. /// </summary>
  37. [Required]
  38. [Comment("供应商id")]
  39. public long? pr_purchaseid { get; set; }
  40. /// <summary>
  41. /// 供应商编码
  42. /// </summary>
  43. [StringLength(80)]
  44. [Comment("供应商编码")]
  45. public string? pr_purchasenumber { get; set; }
  46. /// <summary>
  47. /// 供应商名称
  48. /// </summary>
  49. [StringLength(80)]
  50. [Comment("供应商名称")]
  51. public string? pr_purchasename { get; set; }
  52. /// <summary>
  53. /// 采购员
  54. /// </summary>
  55. [StringLength(80)]
  56. [Comment("采购员")]
  57. public string? pr_purchaser { get; set; }
  58. /// <summary>
  59. /// 采购员工号(采购信息表)
  60. /// </summary>
  61. [StringLength(80)]
  62. [Comment("采购员工号")]
  63. public string? pr_purchaser_num { get; set; }
  64. /// <summary>
  65. /// 需求数量
  66. /// </summary>
  67. [Precision(23, 10)]
  68. [Comment("需求数量")]
  69. public decimal? pr_rqty { get; set; }
  70. /// <summary>
  71. /// 申请数量
  72. /// </summary>
  73. [Precision(23, 10)]
  74. [Comment("申请数量")]
  75. public decimal? pr_aqty { get; set; }
  76. /// <summary>
  77. /// 建议数量
  78. /// </summary>
  79. [Precision(23, 10)]
  80. [Comment("建议数量")]
  81. public decimal? pr_sqty { get; set; }
  82. /// <summary>
  83. /// 物料id
  84. /// </summary>
  85. [Required]
  86. [Comment("物料id")]
  87. public long? icitem_id { get; set; }
  88. /// <summary>
  89. /// 物料名称
  90. /// </summary>
  91. [StringLength(80)]
  92. [Comment("物料名称")]
  93. public string? icitem_name { get; set; }
  94. /// <summary>
  95. /// 单据类型
  96. /// </summary>
  97. [Comment("单据类型")]
  98. public int? pr_order_type { get; set; }
  99. /// <summary>
  100. /// 系统建议下单日期
  101. /// </summary>
  102. [Comment("系统建议下单日期")]
  103. public DateTime? pr_ssend_date { get; set; }
  104. /// <summary>
  105. /// 系统建议到达日期(建议到货日期)
  106. /// </summary>
  107. [Comment("系统建议到达日期")]
  108. public DateTime? pr_sarrive_date { get; set; }
  109. /// <summary>
  110. /// 采购员建议到货日期
  111. /// </summary>
  112. [Comment("采购员建议到货日期")]
  113. public DateTime? pr_bsarrive_date { get; set; }
  114. /// <summary>
  115. /// 订单到货日期
  116. /// </summary>
  117. [Comment("订单到货日期")]
  118. public DateTime? pr_oarrive_date { get; set; }
  119. /// <summary>
  120. /// 计划下单日期
  121. /// </summary>
  122. [Comment("计划下单日期")]
  123. public DateTime? pr_psend_date { get; set; }
  124. /// <summary>
  125. /// 计划到达日期
  126. /// </summary>
  127. [Comment("计划到达日期")]
  128. public DateTime? pr_parrive_date { get; set; }
  129. /// <summary>
  130. /// 需求到货日期
  131. /// </summary>
  132. [Comment("需求到货日期")]
  133. public DateTime? pr_rarrive_date { get; set; }
  134. /// <summary>
  135. /// 再计划到货日期
  136. /// </summary>
  137. [Comment("再计划到货日期")]
  138. public DateTime? pr_rparrive_date { get; set; }
  139. /// <summary>
  140. /// 采购确认到货日期
  141. /// </summary>
  142. [Comment("采购确认到货日期")]
  143. public DateTime? pr_pur_affirm_date { get; set; }
  144. /// <summary>
  145. /// 系统价格(含税)
  146. /// </summary>
  147. [Precision(23, 10)]
  148. [Comment("系统价格(含税)")]
  149. public decimal? pr_sysprice { get; set; }
  150. /// <summary>
  151. /// 订单价格(含税)
  152. /// </summary>
  153. [Precision(23, 10)]
  154. [Comment("订单价格(含税)")]
  155. public decimal? pr_orderprice { get; set; }
  156. /// <summary>
  157. /// 采购净价(不含税)
  158. /// </summary>
  159. [Precision(23, 10)]
  160. [Comment("采购净价(不含税)")]
  161. public decimal? pr_price { get; set; }
  162. /// <summary>
  163. /// 税率
  164. /// </summary>
  165. [Precision(23, 10)]
  166. [Comment("税率")]
  167. public decimal? pr_rate { get; set; }
  168. /// <summary>
  169. /// 单位
  170. /// </summary>
  171. [StringLength(20)]
  172. [Comment("单位")]
  173. public string? pr_unit { get; set; }
  174. /// <summary>
  175. /// 状态
  176. /// </summary>
  177. [Comment("状态")]
  178. public int? state { get; set; }
  179. /// <summary>
  180. /// 已申请数量
  181. /// </summary>
  182. [Precision(23, 10)]
  183. [Comment("已申请数量")]
  184. public decimal? old_apply_aqty { get; set; }
  185. /// <summary>
  186. /// 申请类型
  187. /// </summary>
  188. [Comment("申请类型")]
  189. public int? pr_type { get; set; }
  190. /// <summary>
  191. /// 币种
  192. /// </summary>
  193. [Required]
  194. [Comment("币种")]
  195. public long? currencytype { get; set; }
  196. /// <summary>
  197. /// 安全库存触发采购比例
  198. /// </summary>
  199. [Precision(23, 10)]
  200. [Comment("安全库存触发采购比例")]
  201. public decimal? secInv_ratio { get; set; }
  202. /// <summary>
  203. /// 备注
  204. /// </summary>
  205. [StringLength(1000)]
  206. [Comment("备注")]
  207. public string? remark { get; set; }
  208. /// <summary>
  209. /// 拒绝原因
  210. /// </summary>
  211. [StringLength(1000)]
  212. [Comment("拒绝原因")]
  213. public string? pr_rreason { get; set; }
  214. /// <summary>
  215. /// 计算ID
  216. /// </summary>
  217. [Comment("计算id")]
  218. public long? bang_id { get; set; }
  219. /// <summary>
  220. /// 订单行id
  221. /// </summary>
  222. [Comment("订单行id")]
  223. public long? sentry_id { get; set; }
  224. /// <summary>
  225. /// 是否最优解
  226. /// </summary>
  227. [Comment("是否最优解")]
  228. [NotMapped]
  229. [BsonIgnore]
  230. public bool isbestoptions { get; set; }
  231. /// <summary>
  232. /// 总共提前期
  233. /// </summary>
  234. [Comment("总共提前期")]
  235. [BsonIgnore]
  236. [NotMapped]
  237. public decimal? totalLeadTime { get; set; }
  238. /// <summary>
  239. /// 项次号
  240. /// </summary>
  241. [StringLength(50)]
  242. [Comment("项次号")]
  243. public string? num { get; set; }
  244. }
  245. }