WMS/HHWMS.Web/Models/Configs/Container.cs
zhougf 5a04ca9d59 添加工序配置
修改入库页面,任务完成,库存页面等
2025-08-31 15:57:46 +08:00

50 lines
1.8 KiB
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WalkingTec.Mvvm.Core;
namespace HHWMS.Web.Models
{
[Table("Container")]
public class Container : BasePoco
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public new int ID { get; set; }
public LocationZone Zone { get; set; }
[Display(Name = "Location.ZoneCode", Description = "库区")]
public int ZoneId { get; set; }
[Display(Name = "Container.Code", Description = "容器编码")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string Code { get; set; }
[Display(Name = "Container.Type", Description = "容器类型")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string Type { get; set; }
[Display(Name = "Container.IsLock", Description = "锁类型")]
public ContainerLockEnum IsLock { get; set; }
[Display(Name = "Container.Status", Description = "容器状态")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string Status { get; set; }
[Display(Name = "Container.LocationCode", Description = "库位编码")]
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
public string LocationCode { get; set; }
[Display(Name = "System.Length", Description = "长")]
[Column(TypeName = "decimal(8,3)")]
public decimal? Length { get; set; }
[Display(Name = "System.Width", Description = "宽")]
[Column(TypeName = "decimal(8,3)")]
public decimal? Width { get; set; }
[Display(Name = "System.Height", Description = "高")]
[Column(TypeName = "decimal(8,3)")]
public decimal? Height { get; set; }
}
}