50 lines
2.0 KiB
C#
50 lines
2.0 KiB
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using WalkingTec.Mvvm.Core;
|
|
|
|
namespace HHWMS.Web.Models
|
|
{
|
|
[Table("ProcessConfig")]
|
|
public class ProcessConfig : BasePoco
|
|
{
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public new int ID { get; set; }
|
|
[Display(Name = "Process.Code", Description = "工序编码")]
|
|
[Required(ErrorMessage = "Validate.{0}required")]
|
|
[RegularExpression("[0-9]{2}", ErrorMessage = "{0}必须是2位数字")]
|
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
|
|
|
public string Code { get; set; }
|
|
|
|
[Display(Name = "Process.Name", Description = "工序名称")]
|
|
[Required(ErrorMessage = "Validate.{0}required")]
|
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
|
public string Name { get; set; }
|
|
|
|
[Display(Name = "Process.Zone", Description = "存放区域")]
|
|
[Required(ErrorMessage = "Validate.{0}required")]
|
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
|
public string Zone { get; set; }
|
|
|
|
[Display(Name = "Process.Port", Description = "出口")]
|
|
[Required(ErrorMessage = "Validate.{0}required")]
|
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
|
public string Port { get; set; }
|
|
|
|
[Display(Name = "Sys.Spare", Description = "备用1")]
|
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
|
public string Spare1 { get; set; }
|
|
|
|
[Display(Name = "Sys.Spare", Description = "备用2")]
|
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
|
public string Spare2 { get; set; }
|
|
|
|
[Display(Name = "Sys.Spare", Description = "备用3")]
|
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
|
public string Spare3 { get; set; }
|
|
}
|
|
}
|