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 = 50, IsNullable = false, ColumnDescription = "货架编码")] public string ShelfCode { get; set; } /// /// 货架类型名称 /// [SugarColumn(ColumnName = "shelf_type", Length = 50, IsNullable = false, ColumnDescription = "货架类型")] public string ShelfType { get; set; } /// /// 货架行数 /// [SugarColumn(ColumnName = "row_counts", IsNullable = false, ColumnDescription = "货架行数")] public int Rowcounts { get; set; } /// /// 货架列数 /// [SugarColumn(ColumnName = "column_counts", IsNullable = false, ColumnDescription = "货架列数")] public int Columncounts { get; set; } /// /// 货架对应警示灯的Id /// [SugarColumn(ColumnName = "light_id", IsNullable = false, ColumnDescription = "货架对应警示灯的Id")] public int LightId { get; set; } /// /// 货架对应Can模块的Ip /// [SugarColumn(ColumnName = "client_ip", Length = 50, IsNullable = false, ColumnDescription = "货架对应Can模块的Ip")] public string ClientIp { get; set; } /// /// 连接Can模块的端口号 /// [SugarColumn(ColumnName = "port", Length = 50, IsNullable = true, ColumnDescription = "连接Can模块的端口号")] public string Port { get; set; } /// /// 货架对应后端的Ip /// [SugarColumn(ColumnName = "server_ip", Length = 50, IsNullable = false, ColumnDescription = "货架对应后端服务的Ip")] public string ServerIp { get; set; } /// /// 货架的组别、区域(区分单个软件管哪些货架的,前端的配置文件配置一个组别,查询时只显示当前组别的货架) /// [SugarColumn(ColumnName = "group_name", Length = 50, IsNullable = false, ColumnDescription = "货架的组别、区域(区分单个软件管哪些货架的,前端的配置文件配置一个组别,查询时只显示当前组别的货架)")] public string GroupName { get; set; } /// /// 是否串联绑定 /// [SugarColumn(ColumnName = "is_bind", IsNullable = false, ColumnDescription = "是否串联绑定")] public bool IsBind { get; set; } /// /// 串联绑定后的大货架编码 /// [SugarColumn(ColumnName = "Bind_shelf_code", IsNullable = true, ColumnDescription = "串联绑定后的大货架编码")] public string? BigShelfCode { get; set; } = string.Empty; /// /// 序号 /// [SugarColumn(IsIgnore = true)] public int RowNumber { get; set; } /// /// 是否已经选择 /// [SugarColumn(IsIgnore = true)] public bool IsSelected { get; set; } } }