using System; using SqlSugar; using System.Collections.Generic; namespace ZR.Model.Models.Balance { /// /// 库存管理/库存明细表,数据实体对象 /// /// @author admin /// @date 2023-04-27 /// [SugarTable("stk_balance_dtl")] public class StkBalanceDtl : BusinessBase { /// /// 库存明细表ID /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] public int BalanceId { get; set; } /// /// 库区ID /// public int RegionId { get; set; } /// /// 库位ID /// public int BinId { get; set; } /// /// 交验单号 /// public string DeliverNo { get; set; } /// /// 生产令号 /// public string BomNo { get; set; } /// /// 物料编码 /// public string MaterialCode { get; set; } /// /// 物料名称 /// public string MaterialName { get; set; } /// /// 规格型号/图号 /// public string MaterialSpec { get; set; } /// /// 物料类型(外协件,外购件) /// public string Category { get; set; } /// /// 关键件标识(0非关键件,1关键件) /// public bool KeyFlag { get; set; } /// /// BN/SN码 /// public string BnSnCode { get; set; } /// /// 库存数量 /// public int BalanceQty { get; set; } /// /// 已出库数量 /// public int OutQty { get; set; } /// /// 已装配数量 /// public int AssembleQty { get; set; } /// /// 库存状态(0初始创建,33盘点入库占用,55在库,77盘点出库占用,99出库完成) /// public int Status { get; set; } #region 表外字段 [SugarColumn(IsIgnore = true)] public string RegionName { get; set; } [SugarColumn(IsIgnore = true)] public string RegionCode { get; set; } [SugarColumn(IsIgnore = true)] public string BinCode { get; set; } /// /// Sum库存数量 /// [SugarColumn(IsIgnore = true)] public int SumQty { get; set; } #endregion } }