using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Siger.Middlelayer.AccRepository.Request
{
    public class RequestPacking
    {
      
        [Required(ErrorMessage = "Number Rquired")]
        public string Number { get; set; }

    }

    public class RequestPackinglist
    {
        [Required(ErrorMessage = "Staion Rquired")]
        public int Staion { get; set; }
        [Required(ErrorMessage = "Postiion Rquired")]
        public int Postiion { get; set; }
        [Required(ErrorMessage = "BoxId Rquired")]
        public string BoxId { get; set; }
        [Required(ErrorMessage = "UserId Rquired")]
        public string UserId { get; set; }
        public List<PackingInfo> PackingInfos { get; set; }
    }

    public class PackingInfo
    {
        /// <summary>
        /// 框号
        /// </summary>
        [Required(ErrorMessage = "Number Rquired")]
        public string Number { get; set; }
        /// <summary>
        /// OK数量
        /// </summary>
        [Required(ErrorMessage = "Count Rquired")]
        public int Count { get; set; }
    }
}
