using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; /* * @author : 刘文奇 * @date : 2024/4/23下午6:31:24 * @desc : 库区表 */ namespace Admin.NET.Core { /// /// 库区表 /// [Table("wms_area")] [Comment("库区表")] public class WmsArea : DEntityBase { /// /// 库区编码 /// [Comment("库区编码")] [Required] [MaxLength(50)] public string AreaCode { get; set; } /// /// 仓库编号 /// [Comment("仓库编号")] [Required] [MaxLength(50)] public string WarehouseCode { get; set; } /// /// 仓库名称 /// [Comment("仓库名称")] [Required] [MaxLength(255)] public string WarehouseName { get; set; } /// /// 库区名称 /// [Comment("库区名称")] [Required] [MaxLength(50)] public string AreaName { get; set; } /// /// 库区描述 /// [Comment("库区描述")] [MaxLength(50)] public string AreaDesc { get; set; } /// /// 库区状态 /// [Comment("库区状态")] [Required] public int AreaStatus { get; set; } /// /// ERP代码 /// [Comment("ERP代码")] [Required] [MaxLength(50)] public string ErpCode { get; set; } /// /// 所属仓库 /// [Comment("所属仓库")] [Required] public long WarehouseId { get; set; } /// /// 零件级管控 /// [Comment("零件级管控")] [Required] public bool IsBarcodeLevelControl { get; set; } /// /// 检验先进先出 /// [Comment("检验先进先出")] [Required] public bool IsFIFO { get; set; } /// /// 零件级管控 /// [Comment("零件级管控")] [Required] public bool IsPartLevelControl { get; set; } /// /// 允许混淆 /// [Comment("允许混淆")] [Required] public bool IsAllowConfusion { get; set; } /// /// 允许负库存 /// [Comment("允许负库存")] [Required] public bool IsAllowNegativeInventory { get; set; } /// /// 是否虚拟 /// [Comment("是否虚拟")] [Required] public bool IsVirtually { get; set; } /// /// 是否禁用 /// [Comment("是否禁用")] [Required] public bool IsDisabled { get; set; } } }