srm_purchase.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. using Business.Core.Attributes;
  2. using Business.Model;
  3. using Microsoft.EntityFrameworkCore;
  4. using System.ComponentModel;
  5. using System.ComponentModel.DataAnnotations;
  6. namespace Bussiness.Model.SRM
  7. {
  8. /// <summary>
  9. /// 物料采购信息表
  10. /// </summary>
  11. [CollectionName("dopbase", "srm_purchase")]
  12. [Comment("物料采购信息表")]
  13. public class srm_purchase : BaseEntity
  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(80)]
  25. [Comment("物料名称")]
  26. public string? icitem_name { get; set; }
  27. /// <summary>
  28. /// 计划id
  29. /// </summary>
  30. [Required]
  31. [Comment("计划id")]
  32. public long? ic_plan_id { get; set; }
  33. /// <summary>
  34. /// 采购负责人
  35. /// </summary>
  36. [StringLength(80)]
  37. [Comment("采购负责人")]
  38. public string? order_rector_name { get; set; }
  39. /// <summary>
  40. /// 采购负责人_工号
  41. /// </summary>
  42. [StringLength(80)]
  43. [Comment("采购负责人_工号")]
  44. public string? order_rector_num { get; set; }
  45. /// <summary>
  46. /// 工厂编码
  47. /// </summary>
  48. [StringLength(80)]
  49. [Comment("工厂编码")]
  50. public string? factory_code { get; set; }
  51. /// <summary>
  52. /// 采购部门
  53. /// </summary>
  54. [StringLength(80)]
  55. [Comment("采购部门")]
  56. public string? order_dept { get; set; }
  57. /// <summary>
  58. /// 采购单价
  59. /// </summary>
  60. [Precision(20, 8)]
  61. [Comment("采购单价")]
  62. public decimal? order_price { get; set; }
  63. /// <summary>
  64. /// 销售单价
  65. /// </summary>
  66. [Precision(20, 8)]
  67. [Comment("销售单价")]
  68. public decimal? sale_price { get; set; }
  69. /// <summary>
  70. /// 最小订货量
  71. /// </summary>
  72. [Precision(20, 8)]
  73. [Comment("最小订货量")]
  74. public decimal? qty_min { get; set; }
  75. /// <summary>
  76. /// 批量增量
  77. /// </summary>
  78. [Precision(20, 8)]
  79. [Comment("批量增量")]
  80. public decimal? batch_append_qty { get; set; }
  81. /// <summary>
  82. /// 采购订单差异科目代码
  83. /// </summary>
  84. [Required]
  85. [Comment("采购订单差异科目代码")]
  86. public long? pov_acct { get; set; }
  87. /// <summary>
  88. /// 采购发票差异科目代码
  89. /// </summary>
  90. [Required]
  91. [Comment("采购发票差异科目代码")]
  92. public long? piv_acct { get; set; }
  93. }
  94. }