using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using WalkingTec.Mvvm.Core; namespace HHWMS.Web.Models { [Table("LocationZone")] public class LocationZone : BasePoco { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public new int ID { get; set; } [Display(Name = "Location.ZoneCode", Description = "库区")] [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")] public string ZoneCode { get; set; } [Display(Name = "Location.ZoneName", Description = "名称")] [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")] public string Name { get; set; } /// /// 库区所在楼层(可选;AGV 任务 FromFloor/ToFloor 的取值来源,WMS 不做强校验) /// [Display(Name = "Location.Floor", Description = "库区楼层")] public int? Floor { get; set; } } }