using System.Collections.Generic;

namespace RGD.ZhiQianAPI.ZhiQianModel
{
    public class CreateOrder
    {
        private int _zoneid;
        private int _poolid;
        private string _orderno;
        private bool _appendflag;
        private List<BoxList> _boxLists;

        /// <summary>
        /// 区域组id,区分agv执行逻辑,主要分为普通出入库模式和盘库模式
        /// </summary>
        public int zoneid { get => _zoneid; set => _zoneid = value; }

        /// <summary>
        /// 运单池id,固定值
        /// </summary>
        public int poolid { get => _poolid; set => _poolid = value; }

        /// <summary>
        /// 运单号,采用时间戳模式
        /// </summary>
        public string orderno { get => _orderno; set => _orderno = value; }

        /// <summary>
        /// 后续是否追加任务
        /// </summary>
        public bool appendflag { get => _appendflag; set => _appendflag = value; }

        /// <summary>
        /// 任务列表
        /// </summary>
        public List<BoxList> boxlist { get => _boxLists; set => _boxLists = value; }
    }

    public class BoxList
    {
        private string _src;
        private string _dst;
        private string _box;
        private int _scansrc;
        private int _scandst;
        private int _rgsTaskId;

        /// <summary>
        /// 取货位置
        /// </summary>
        public string src { get => _src; set => _src = value; }

        /// <summary>
        /// 目的位置
        /// </summary>
        public string dst { get => _dst; set => _dst = value; }

        /// <summary>
        /// 料箱码,实际不需要
        /// </summary>
        public string box { get => _box; set => _box = value; }

        /// <summary>
        /// 取货是否扫码,默认不扫
        /// </summary>
        public int scansrc { get => _scansrc; set => _scansrc = 0; }

        /// <summary>
        /// 放货是否扫码,默认不扫
        /// </summary>
        public int scandst { get => _scandst; set => _scandst = 0; }

        /// <summary>
        /// 对应大任务id
        /// </summary>
        public int rgsTaskId { get => _rgsTaskId; set => _rgsTaskId = value; }
    }
}