62 lines
2.3 KiB
C#
62 lines
2.3 KiB
C#
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using System.Security.Policy;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Internal;
|
|
using WalkingTec.Mvvm.Core;
|
|
|
|
namespace HHWMS.Web.Models
|
|
{
|
|
[Index(nameof(TaskNo), IsUnique = true)]
|
|
[Table("TaskHeader")]
|
|
public class TaskHeader : BasePoco
|
|
{
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public new int ID { get; set; }
|
|
|
|
[Display(Name = "Task.ZoneCode", Description = "库区")]
|
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
|
public string ZoneCode { get; set; }
|
|
|
|
[Display(Name = "Task.TaskNo", Description = "任务号")]
|
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
|
[Required(ErrorMessage = "Validate.{0}required")]
|
|
public string TaskNo { get; set; }
|
|
|
|
[Display(Name = "Task.TaskType", Description = "任务类型")]
|
|
public TaskTypeEnum? TaskType { get; set; }
|
|
|
|
[Display(Name = "Task.FromLocation", Description = "起始仓位")]
|
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
|
public string FromLocation { get; set; }
|
|
|
|
[Display(Name = "Task.ToLocation", Description = "目标仓位")]
|
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
|
public string ToLocation { get; set; }
|
|
|
|
[Display(Name = "Task.Station", Description = "站台")]
|
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
|
public string Station { get; set; }
|
|
|
|
[Display(Name = "Task.ContainerCode", Description = "容器编码")]
|
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
|
public string ContainerCode { get; set; }
|
|
|
|
[Display(Name = "Task.RoadWay", Description = "巷道")]
|
|
public short? RoadWay { get; set; }
|
|
|
|
[Display(Name = "Task.Priority", Description = "优先级")]
|
|
public short? Priority { get; set; }
|
|
|
|
[Display(Name = "Task.Status", Description = "任务状态")]
|
|
public TaskStatusEnum? Status { get; set; }
|
|
|
|
[Display(Name = "Task.ErrorMsg", Description = "错误信息")]
|
|
public string ErrorMsg { get; set; }
|
|
|
|
}
|
|
}
|