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

namespace Siger.Middlelayer.WmsRepository.Request
{
    public class RequestAddAllocationBill
    {
        /// <summary>
        /// 仓库
        /// </summary>
        [Required(ErrorMessage = "WaveHouseIDNotNull")]
        public int waveHouseID { get; set; }
        [Required(ErrorMessage = "EndWaveHouseID")]
        public int endWaveHouseID { get; set; }

        [Required(ErrorMessage = "StockDataNotNull")]
        public List<StockNode> stockids { get; set; }
        [Required(ErrorMessage = "BillCodeNotNull")]
        public string billcode;
    }
    public class StockNode
    {
        public int id;
        public int businessid;
        public int count;
        public int stockCount;
    }
}
