using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; /* * @author : 刘文奇 * @date : 2024/4/23下午6:30:44 * @desc : 库位表 */ namespace Admin.NET.Core { /// /// 库位表 /// [Table("wms_place")] [Comment("库位表")] public class WmsPlace : DEntityBase { /// /// 库位编码 /// [Comment("库位编码")] [Required] [MaxLength(50)] public string PlaceCode { get; set; } /// /// 库位名称 /// [Comment("库位名称")] [Required] [MaxLength(50)] public string PlaceName { get; set; } /// /// 库位别名 /// [Comment("库位别名")] [MaxLength(50)] public string PlaceAlias { get; set; } /// /// 库位类型 /// [Comment("库位类型")] [Required] public int PlaceType { get; set; } /// /// 库位类型名称 /// [Comment("库位类型名称")] [Required] [MaxLength(50)] public string PlaceTypeName { get; set; } /// /// 存放单位 /// [Comment("存放单位")] [MaxLength(50)] public string StockUnit { get; set; } /// /// 库位属性 /// [Comment("库位属性")] [Required] public int PlaceStatus { get; set; } /// /// 是否堆垛机库位 /// [Comment("是否堆垛机库位")] public bool? IsSrmPlace { get; set; } /// /// 堆垛机库位号 /// [Comment("堆垛机库位号")] [MaxLength(50)] public string SrmPlaceNo { get; set; } /// /// 是否RGV库位 /// [Comment("是否RGV库位")] public bool? IsRgvPlace { get; set; } /// /// RGV库位号 /// [Comment("RGV库位号")] [MaxLength(50)] public string RgvPlaceNo { get; set; } /// /// 是否AGV库位 /// [Comment("是否AGV库位")] public bool? IsAgvPlace { get; set; } /// /// AGV库位号 /// [Comment("AGV库位号")] [MaxLength(50)] public string AgvPlaceNo { get; set; } /// /// 是否输送线库位 /// [Comment("是否输送线库位")] public bool? IsTransPlace { get; set; } /// /// 输送线库位号 /// [Comment("输送线库位号")] [MaxLength(50)] public string TransPlaceNo { get; set; } /// /// 是否激活与任务调度 /// [Comment("是否激活与任务调度")] public bool? IsActivateWCS { get; set; } /// /// 库存环境 /// [Comment("库存环境")] [MaxLength(255)] public string Environment { get; set; } /// /// 库区编号 /// [Comment("库区编号")] [Required] [MaxLength(50)] public string AreaCode { get; set; } /// /// 所在库区 /// [Comment("所在库区")] [Required] public long AreaId { get; set; } /// /// 库区名称 /// [Comment("库区名称")] [Required] [MaxLength(50)] public string AreaName { get; set; } /// /// 检验码 /// [Comment("检验码")] [MaxLength(255)] public string VerificationCode { get; set; } /// /// 排 /// [Comment("排")] [Required] public int RowNo { get; set; } /// /// 列 /// [Comment("列")] [Required] public int ColumnNo { get; set; } /// /// 层 /// [Comment("层")] [Required] public int LayerNo { get; set; } /// /// 巷道 /// [Comment("巷道")] [Required] public int LaneNo { get; set; } /// /// 库位X坐标 /// [Comment("库位X坐标")] [MaxLength(255)] public string Xzb { get; set; } /// /// 库位Y坐标 /// [Comment("库位Y坐标")] [MaxLength(255)] public string Yzb { get; set; } /// /// 库位Z坐标 /// [Comment("库位Z坐标")] [MaxLength(255)] public string Zzb { get; set; } /// /// 库位长度 /// [Comment("库位长度")] [Required] [Column("Length", TypeName = "decimal(10,3)")] public decimal Length { get; set; } /// /// 库位宽度 /// [Comment("库位宽度")] [Required] [Column("Width", TypeName = "decimal(10,3)")] public decimal Width { get; set; } /// /// 库位高度 /// [Comment("库位高度")] [Required] [Column("Height", TypeName = "decimal(10,3)")] public decimal Height { get; set; } /// /// 最大承重 /// [Comment("最大承重")] [Required] [Column("MaxWeight", TypeName = "decimal(10,3)")] public decimal MaxWeight { get; set; } /// /// 入库顺序 /// [Comment("入库顺序")] [Required] public int InSequence { get; set; } /// /// 出库顺序 /// [Comment("出库顺序")] [Required] public int OutSequence { get; set; } /// /// 是否虚拟 /// [Comment("是否虚拟")] [Required] public bool IsVirtually { get; set; } /// /// 是否禁用 /// [Comment("是否禁用")] [Required] public bool IsDisabled { get; set; } } }