Files
2023-07-25 19:20:18 +08:00

46 lines
1.7 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; }
[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; }
}
}