using SqlSugar; using System; using System.Collections.Generic; using System.Security.Principal; using System.Text; namespace SlnMesnac.Model.domain { [SugarTable("wms_raw_stock"), TenantAttribute("mes")] public class WmsRawStock { /// /// 原材料库存ID /// [SugarColumn(ColumnName = "raw_stock_id", IsPrimaryKey = true, IsIdentity = true)] public long RawStockId { get; set; } /// /// 仓库ID /// [SugarColumn(ColumnName = "warehouse_id")] public long WarehouseId { get; set; } /// /// 仓库楼层 /// [SugarColumn(ColumnName = "warehouse_floor")] public int? WarehouseFloor { get; set; } /// /// 库位编码 /// [SugarColumn(ColumnName = "location_code", Length = 64)] public string LocationCode { get; set; } /// /// 库存类型:1原材料 /// [SugarColumn(ColumnName = "stock_type", Length = 1)] public string StockType { get; set; } /// /// 物料ID /// [SugarColumn(ColumnName = "material_id")] public long MaterialId { get; set; } /// /// 物料条码,非批次号;当柜体不完整时存物料条码 /// [SugarColumn(ColumnName = "instock_batch", Length = 64)] public string InstockBatch { get; set; } /// /// 托盘RFID代码 /// [SugarColumn(ColumnName = "pallet_info_code", Length = 64, IsNullable = true)] public string PalletInfoCode { get; set; } /// /// 销售订单ID /// [SugarColumn(ColumnName = "sale_order_id", DefaultValue = "0")] public long SaleOrderId { get; set; } /// /// 安全库存标识(1是,0否) /// [SugarColumn(ColumnName = "safe_flag", Length = 1)] public string SafeFlag { get; set; } /// /// 入库时间;此入库时间从批次信息中获取,accepted_date /// [SugarColumn(ColumnName = "instock_date")] public DateTime? InstockDate { get; set; } /// /// 最晚出库时间;根据物料信“存放周期“计算出来的时间 /// [SugarColumn(ColumnName = "last_outstock_time")] public DateTime? LastOutstockTime { get; set; } /// /// 质检状态(0待质检,1检验中,2质检通过,3质检不通过) /// [SugarColumn(ColumnName = "quality_status", Length = 1, IsNullable = true)] public string QualityStatus { get; set; } /// /// 完整标识(1是0否)拆分后为0 /// [SugarColumn(ColumnName = "complete_flag", Length = 1, DefaultValue = "1")] public string CompleteFlag { get; set; } /// /// 总数量;库位存放的总数量 /// [SugarColumn(ColumnName = "total_amount", DecimalDigits = 6)] public decimal TotalAmount { get; set; } /// /// 冻结数量;手动冻结的,暂时可不用 /// [SugarColumn(ColumnName = "frozen_amount", DecimalDigits = 6, DefaultValue = "0.000000")] public decimal FrozenAmount { get; set; } /// /// 占用数量;申请时占用的数量,在出库时要减去出库数量,并且总数量要同步更新; /// [SugarColumn(ColumnName = "occupy_amount", DecimalDigits = 6, DefaultValue = "0.000000")] public decimal OccupyAmount { get; set; } /// /// 供应商ID /// [SugarColumn(ColumnName = "supplier_id", IsNullable = true)] public long? SupplierId { get; set; } /// /// 创建人 /// [SugarColumn(ColumnName = "create_by", Length = 64, IsNullable = true)] public string CreateBy { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnName = "create_date")] public DateTime? CreateDate { get; set; } /// /// 最后更新人 /// [SugarColumn(ColumnName = "update_by", Length = 64, IsNullable = true)] public string UpdateBy { get; set; } /// /// 最后更新时间 /// [SugarColumn(ColumnName = "update_date")] public DateTime? UpdateDate { get; set; } /// /// 有效标记 /// [SugarColumn(ColumnName = "active_flag", Length = 1, DefaultValue = "1")] public string ActiveFlag { get; set; } } }