using System.ComponentModel.DataAnnotations;
using Siger.Middlelayer.Common.ModuleEnum;

namespace Siger.Middlelayer.AccRepository.Request
{
    public class RequestSaveRework
    {
        [Required(ErrorMessage = "Line不能为空")]
        public int Line { get; set; }

        [Required(ErrorMessage = "Station不能为空")]
        public int Station { get; set; }

        public string Wo { get; set; }

        [Required(ErrorMessage = "SN不能为空")]
        public string Sn { get; set; }

        [Required(ErrorMessage = "返工原因不能为空")]
        public string Reason { get; set; }

        public int UserId { get; set; }

        public ReworkCategory ReworkCategory { get; set; }
    }
}
