using System.ComponentModel.DataAnnotations;
using Siger.Middlelayer.Repository.Request;

namespace Siger.Middlelayer.AccRepository.Request
{
    public class RequestTrackingSn : RequestPageBase
    {
        public RequestTrackingSn()
        {
            Offset = 1;
            Limit = 10;
        }
        /// <summary>
        /// PHP 配置的工站ID 需要转换
        /// </summary>
        [Required(ErrorMessage = "SectionId 不能为空")]
        public int SectionId { get; set; }
        /// <summary>
        /// 偏移量 
        /// </summary>
        public int Offset { get; set; }
        /// <summary>
        /// 限制量
        /// </summary>
        public int Limit { get; set; }
        public string ProductID { get; set; }
        public searchType Type { get; set; }
        public string Sn { get; set; }
        public string TimeSpan { get; set; }

        public string Pn { get; set; }
        public string Result { get; set; }
    }
    public enum searchType
    {
        Normal = 0,
        Rework = 1
    }
}
