using Magicodes.ExporterAndImporter.Core; using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WIDESEA_Core.DB.Models; namespace WIDESEA_Model.Models { [SugarTable(nameof(Dt_InventoryInfo), "库存详情")] public class Dt_InventoryInfo : BaseEntity { /// /// 主键 /// [ImporterHeader(Name = "主键")] [ExporterHeader(DisplayName = "主键")] [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")] public int Id { get; set; } /// /// 托盘编号 /// [ImporterHeader(Name = "托盘编号")] [ExporterHeader(DisplayName = "托盘编号")] [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "托盘编号")] public string PalletCode { get; set; } /// /// 库房编号 /// [ImporterHeader(Name = "库房编号")] [ExporterHeader(DisplayName = "库房编号")] [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "库房编号")] public string WarehouseCode { get; set; } /// /// 货位编号 //要是是立库的就是要==“立库‘ 平库的就是有编码的 /// [ImporterHeader(Name = "货位编号")] [ExporterHeader(DisplayName = "货位编号")] [SugarColumn(IsNullable = true, Length = 20, ColumnDescription = "货位编号")] public string LocationCode { get; set; } /// /// 库存状态 /// [ImporterHeader(Name = "库存状态")] [ExporterHeader(DisplayName = "库存状态")] [SugarColumn(IsNullable = false, ColumnDescription = "库存状态")] public int StockStatus { get; set; } /// /// 物料编号 /// [ImporterHeader(Name = "物料编号")] [ExporterHeader(DisplayName = "物料编号")] [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "物料编号")] public string MaterielCode { get; set; } /// /// 物料名称 /// [ImporterHeader(Name = "物料名称")] [ExporterHeader(DisplayName = "物料名称")] [SugarColumn(IsNullable = false, Length = 200, ColumnDescription = "物料名称")] public string MaterielName { get; set; } /// /// 物料规格 /// [ImporterHeader(Name = "物料规格")] [ExporterHeader(DisplayName = "物料规格")] [SugarColumn(IsNullable = false, Length = 200, ColumnDescription = "物料规格")] public string MaterielSpec { get; set; } /// /// 批次号 /// [ImporterHeader(Name = "批次号")] [ExporterHeader(DisplayName = "批次号")] [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "批次号")] public string BatchNo { get; set; } /// /// 实际总库存数 /// [ImporterHeader(Name = "实际库存数")] [ExporterHeader(DisplayName = "实际库存数")] [SugarColumn(IsNullable = false, ColumnDescription = "实际库存数")] public decimal StockQuantity { get; set; } /// /// 待出库数 整个出库单占用的 /// [ImporterHeader(Name = "待出库数")] [ExporterHeader(DisplayName = "待出库数")] [SugarColumn(IsNullable = false, ColumnDescription = "出库数", DefaultValue = "0")] public decimal OutboundQuantity { get; set; } /// /// 盘点数;盘点后实际数量 /// [ImporterHeader(Name = "盘点数")] [ExporterHeader(DisplayName = "盘点数")] [SugarColumn(IsNullable = false, ColumnDescription = "盘点数", DefaultValue = "0")] public decimal SupplyQuantity { get; set; } /// /// 入库时间 /// [ImporterHeader(Name = "入库时间")] [ExporterHeader(DisplayName = "入库时间")] [SugarColumn(IsNullable = true, ColumnDescription = "入库时间")] public DateTime? InDate { get; set; } /// /// 生产日期 /// [ImporterHeader(Name = "生产日期")] [ExporterHeader(DisplayName = "生产日期")] [SugarColumn(IsNullable = true, ColumnDescription = "生产日期")] public string ProductionDate { get; set; } /// /// 保质期 /// [ImporterHeader(Name = "保质期")] [ExporterHeader(DisplayName = "保质期")] [SugarColumn(IsNullable = false, ColumnDescription = "保质期")] public int ShelfLife { get; set; } /// /// 有效期至 /// [ImporterHeader(Name = "有效期至")] [ExporterHeader(DisplayName = "有效期至")] [SugarColumn(IsNullable = true, ColumnDescription = "有效期至")] public string ValidityPeriod { get; set; } /// /// 备注 /// [ImporterHeader(Name = "备注")] [ExporterHeader(DisplayName = "备注")] [SugarColumn(IsNullable = true, ColumnDescription = "备注")] public string Remark { get; set; } } }