using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WCS.DAL.DbModels; namespace WCS.BLL.DbModels { /// /// 当前库存盘点表 /// [SugarTable("wcs_mat_detail_stocktaking_info")] public class MatDetailStocktakingInfo { /// /// 主键 自增Id /// [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsNullable = false, IsIdentity = true)] public int Id { get; set; } /// /// 货架库存明细当前的ID /// [SugarColumn(ColumnName = "mat_detail_current_id", IsNullable = false, ColumnDescription = "库存明细当前的ID")] public int MatDetailCurrentId { get; set; } #region 货架属性 /// /// 货架ID /// [SugarColumn(ColumnName = "shelf_id", IsNullable = false, ColumnDescription = "货架ID")] public int ShlefId { get; set; } /// /// 货架编码 对应二维码 /// [SugarColumn(ColumnName = "shelf_code", Length = 64, IsNullable = false, ColumnDescription = "货架编码")] public string ShelfCode { get; set; } /// /// 货架类型 /// [SugarColumn(ColumnName = "shelf_type", Length = 64, IsNullable = true, ColumnDescription = "货架类型")] public string ShelfType { get; set; } /// /// 货架区域 /// [SugarColumn(ColumnName = "shelf_area", Length = 64, IsNullable = true, ColumnDescription = "货架区域")] public string ShelfArea { get; set; } #endregion #region 物料属性 /// /// 物料编码 /// [SugarColumn(ColumnName = "mat_code", Length = 100, IsNullable = true, ColumnDescription = "物料编号")] public string MatCode { get; set; } /// /// 物料名称 /// [SugarColumn(ColumnName = "mat_name", Length = 150, IsNullable = true, ColumnDescription = "物料名称")] public string MatName { get; set; } /// /// 物料规格 /// [SugarColumn(ColumnName = "mat_spec", Length = 150, IsNullable = true, ColumnDescription = "物料规格")] public string MatSpec { get; set; } /// /// 物料数量(原始数量) /// [SugarColumn(ColumnName = "mat_qty", IsNullable = false, ColumnDescription = "物料数量(原始数量)")] public int MatQty { get; set; } /// /// 物料数量(盘点数量) /// [SugarColumn(ColumnName = "stocktaking_qty", IsNullable = false, ColumnDescription = "物料数量(盘点数量)")] public int StocktakingQty { get; set; } /// /// 物料供应商 /// [SugarColumn(ColumnName = "mat_supplier", Length = 128, IsNullable = true, ColumnDescription = "物料供应商")] public string? MatSupplier { get; set; } /// /// 物料客户 /// [SugarColumn(ColumnName = "mat_customer", Length = 128, IsNullable = true, ColumnDescription = "物料客户")] public string? MatCustomer { get; set; } #endregion /// /// 盘点人 /// [SugarColumn(ColumnName = "stocktaking_user", IsNullable = false, Length = 50, ColumnDescription = "盘点人")] public string? StocktakingUser { get; set; } /// /// 盘点时间 /// [SugarColumn(ColumnName = "stocktaking_time", IsNullable = false, ColumnDescription = "盘点时间")] public DateTime? StocktakingTime { get; set; } = DateTime.Now; /// /// 盘点状态 /// [SugarColumn(ColumnName = "stocktaking_status", IsNullable = false, ColumnDescription = "盘点状态")] public StocktakingStatusEnum StocktakingStatus { get; set; } = StocktakingStatusEnum.未提交; /// /// 序号 /// [SugarColumn(IsIgnore = true)] public int RowNumber { get; set; } /// /// 是否已经选择 /// [SugarColumn(IsIgnore = true)] public bool IsSelected { get; set; } } public enum StocktakingStatusEnum { 未提交 = 0, 已提交 = 1, } }