using System;
using System.Collections.Generic;
using System.Text;

namespace AutoTurnOver.Models.ApiDto
{
    public class mPlanToPurchaseDto
    {
        ///<summary>
        ///从哪个仓库发出(仓库编码) 国内到货仓
        ///</summary>
        public string bp_sendfromCode { get; set; }

        /// <summary>
        /// 是否调拨
        /// </summary>
        public int bp_send { get; set; }

        /// <summary>
        /// 海外仓
        /// </summary>
        public string bp_sendtoCode { get; set; }

        ///<summary>
        ///运输方式
        /// -1 = 无
        /// 1 = 陆运
        /// 2 = 海运
        /// 3 = 空运
        /// 铁路运输= 4
        ///</summary>
        public int bp_sendtype { get; set; }

        /// <summary>
        /// 头程渠道
        /// </summary>
        public string logistics_code { get; set; }

        /// <summary>
        /// 采购单类型
        /// 1 = 预计缺货
        /// 2 = 实际缺货
        /// 3 = 补货
        /// </summary>
        public int sys_source { get; set; }

        public string bp_remark { get; set; }

        /// <summary>
        /// 采购计划单sku
        /// </summary>
        public List<bi_buyplandetail> bi_buyplandetail { get; set; }
    }

    /// <summary>
    /// sku详情
    /// </summary>
    public class bi_buyplandetail
    {
        ///<summary>
        ///SKU
        ///</summary>
        public string bd_sku { get; set; }

        public int sys_source { get; set; }

        ///<summary>
        ///采购数量
        ///</summary>
        public decimal bd_count { get; set; }

        ///<summary>
        ///采购价格
        ///</summary>
        public decimal bd_price { get; set; }

        ///<summary>
        ///对应的供应商ID,   这个是skums那边的供应商id
        ///</summary>
        public int bd_supid { get; set; }

        ///<summary>
        ///供应商名称
        ///</summary>
        public string bd_supplier { get; set; }
    }
}
