using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Microsoft.EntityFrameworkCore; using WalkingTec.Mvvm.Core; namespace HHWMS.Web.Models.Agv { /// /// AGV 任务归档镜像(超 1 个月终态任务备份于此,再由 AgvTaskArchiveJob 清理主表) /// 对应《平库AGV方案流程(AGV自调度版).md》10.2 DDL 第 5 段 /// [Index(nameof(TaskNo))] [Index(nameof(CreateTime))] [Table("AgvTaskHistory")] public class AgvTaskHistory : BasePoco { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public new int ID { get; set; } [Display(Name = "AGV.TaskNo", Description = "WMS任务号")] [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")] public string TaskNo { get; set; } [Display(Name = "AGV.SourceCode", Description = "上游任务号")] [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")] public string SourceCode { get; set; } [Display(Name = "AGV.SourceSystem", Description = "上游来源系统标识")] [StringLength(20, ErrorMessage = "Validate.{0}stringmax{1}")] public string SourceSystem { get; set; } [Display(Name = "AGV.AgvTaskType", Description = "AGV业务类型")] public AgvTaskTypeEnum? AgvTaskType { get; set; } [Display(Name = "AGV.FromLocation", Description = "起点库位编码")] [StringLength(64, ErrorMessage = "Validate.{0}stringmax{1}")] public string FromLocation { get; set; } [Display(Name = "AGV.ToLocation", Description = "终点库位编码")] [StringLength(64, ErrorMessage = "Validate.{0}stringmax{1}")] public string ToLocation { get; set; } [Display(Name = "AGV.FromFloor", Description = "起点楼层")] public int? FromFloor { get; set; } [Display(Name = "AGV.ToFloor", Description = "终点楼层")] public int? ToFloor { get; set; } [Display(Name = "AGV.ContainerCode", Description = "容器号")] [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")] public string ContainerCode { get; set; } [Display(Name = "AGV.Priority", Description = "优先级")] public int? Priority { get; set; } [Display(Name = "AGV.AgvStatus", Description = "归档前任务状态")] public AgvTaskStatusEnum? AgvStatus { get; set; } [Display(Name = "AGV.AgvCarNo", Description = "AGV小车编号")] [StringLength(20, ErrorMessage = "Validate.{0}stringmax{1}")] public string AgvCarNo { get; set; } [Display(Name = "AGV.ErrorMsg", Description = "错误信息")] [StringLength(255, ErrorMessage = "Validate.{0}stringmax{1}")] public string ErrorMsg { get; set; } [Display(Name = "AGV.BillType", Description = "流水类型")] [StringLength(20, ErrorMessage = "Validate.{0}stringmax{1}")] public string BillType { get; set; } [Display(Name = "AGV.Details", Description = "物料明细(JSON)")] public string Details { get; set; } /// /// 归档时间 /// [Display(Name = "AGV.ArchivedAt", Description = "归档时间")] public DateTime? ArchivedAt { get; set; } } }