using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WCS.BLL.HardWare; namespace WCS.DAL.DbModels { [SugarTable("wcs_shelf_info")] public class ShelfInfo { /// /// 主键 自增Id /// [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsNullable = false, IsIdentity = true)] public int Id { 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_status", IsNullable = true, ColumnDescription = "货架状态")] public ShelfStatusEnum ShelfStatus { get; set; } = ShelfStatusEnum.空货架; /// /// 货架区域 /// [SugarColumn(ColumnName = "shelf_area", Length = 64, IsNullable = true, ColumnDescription = "货架区域")] public string ShelfArea { get; set; } /// /// 货架尺寸 /// [SugarColumn(ColumnName = "shelf_size", Length = 256, IsNullable = true, ColumnDescription = "货架尺寸")] public string ShelfSize { get; set; } /// /// 备注 /// [SugarColumn(ColumnName = "remark", Length = 128, IsNullable = true, ColumnDescription = "备注")] public string Remark { get; set; } #region 当前位置信息 /// /// 当前位置ID /// [SugarColumn(ColumnName = "current_location_id", IsNullable = true, ColumnDescription = "当前位置ID")] public int CurrentLocationId { get; set; } = 0; /// /// 当前位置编码 /// [SugarColumn(ColumnName = "current_location_code", Length = 64, IsNullable = true, ColumnDescription = "当前位置编码")] public string CurrentLocaiotnCode { get; set; } = string.Empty; #endregion /// /// 更新人 /// [SugarColumn(ColumnName = "modify_user", Length = 128, IsNullable = true, ColumnDescription = "更新人")] public string ModifyUser { get; set; } /// /// 更新时间 /// [SugarColumn(ColumnName = "modify_time", IsNullable = false, ColumnDescription = "更新时间")] public DateTime ModifyTime { get; set; } = DateTime.Now; /// /// 是否启用 /// [SugarColumn(ColumnName = "is_enable", IsNullable = false, ColumnDescription = "是否启用")] public bool IsEnable { get; set; } = true; [SugarColumn(IsIgnore = true)] public string IsEnableStr { get { if (IsEnable) return "启用"; else return "禁用"; } } /// /// 序号 /// [SugarColumn(IsIgnore = true)] public int RowNumber { get; set; } /// /// 是否已经选择 /// [SugarColumn(IsIgnore = true)] public bool IsSelected { get; set; } } public enum ShelfStatusEnum { 空货架 = 0, 非空货架 = 1, } }