ic_item_inventory.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. using Business.Core.Attributes;
  2. using Business.Model;
  3. using Microsoft.EntityFrameworkCore;
  4. using System.ComponentModel;
  5. using System.ComponentModel.DataAnnotations;
  6. namespace Business.Model.MES.IC
  7. {
  8. /// <summary>
  9. /// 物料库存明细表
  10. /// </summary>
  11. [CollectionName("dopbase", "ic_item_inventory")]
  12. [Comment("物料库存明细表")]
  13. public class ic_item_inventory:BaseEntity
  14. {
  15. /// <summary>
  16. /// 物料库存主键
  17. /// </summary>
  18. [Required]
  19. [Comment("物料库存主键")]
  20. public long icitem_stock_id { get; set; }
  21. /// <summary>
  22. /// 仓库id
  23. /// </summary>
  24. [Required]
  25. [Comment("仓库id")]
  26. public long stock_id { get; set; }
  27. /// <summary>
  28. /// 仓库名称
  29. /// </summary>
  30. [StringLength(80)]
  31. [Comment("仓库名称")]
  32. public string? stock_name { get; set; }
  33. /// <summary>
  34. /// 库位id
  35. /// </summary>
  36. [Required]
  37. [Comment("库位id")]
  38. public long stock_place_id { get; set; }
  39. /// <summary>
  40. /// 库位编码
  41. /// </summary>
  42. [StringLength(80)]
  43. [Comment("库位编码")]
  44. public string? stock_place_code { get; set; }
  45. /// <summary>
  46. /// 批次号
  47. /// </summary>
  48. [StringLength(80)]
  49. [Comment("批次号")]
  50. public string? batch_no { get; set; }
  51. /// <summary>
  52. /// 数量
  53. /// </summary>
  54. [Precision(23, 10)]
  55. [Comment("数量")]
  56. public decimal? qty { get; set; }
  57. /// <summary>
  58. /// 金额
  59. /// </summary>
  60. [Precision(23, 10)]
  61. [Comment("金额")]
  62. public decimal? bal { get; set; }
  63. /// <summary>
  64. /// 保质期时长
  65. /// </summary>
  66. [Precision(23, 10)]
  67. [Comment("保质期时长")]
  68. public decimal? kf_period { get; set; }
  69. /// <summary>
  70. /// 保质期时间
  71. /// </summary>
  72. [Comment("保质期时间")]
  73. public DateTime? kf_date { get; set; }
  74. /// <summary>
  75. /// 锁定库存
  76. /// </summary>
  77. [Precision(23, 10)]
  78. [Comment("锁定库存")]
  79. public decimal? qty_lock { get; set; }
  80. /// <summary>
  81. /// 安全库存
  82. /// </summary>
  83. [Precision(23, 10)]
  84. [Comment("安全库存")]
  85. public decimal? sec_qty { get; set; }
  86. /// <summary>
  87. /// 单位
  88. /// </summary>
  89. [StringLength(80)]
  90. [Comment("单位")]
  91. public string? unit { get; set; }
  92. /// <summary>
  93. /// 日期
  94. /// </summary>
  95. [Comment("日期")]
  96. public DateTime? rq { get; set; }
  97. }
  98. }