using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XYY.Core.Standard.ExcelHelper.MSExcelHelper;
using XYY.Model.Standard.Dto.order;
using XYY.Model.Standard.MpsOrder;

namespace XYY.Model.Standard.Dto.MpsOrder
{
    public class ConfirmCustomerOrderReceiptInput
    {
        public string BoxNumber { get; set; }
        public int OpLength { get; set; }
        public int OpWidth { get; set; }
        public int OpHeight { get; set; }
        public decimal OpWeight { get; set; }

        public decimal OpInputWeight { get; set; }

        public int BillWidth { get; set; }
        public int BillHeight { get; set; }
        public int BillLenght { get; set; }
        public decimal BillWeight { get; set; }

        public InputMode Mode { get; set; }


    }
    public enum InputMode
    {
        取收件 = 1,
        手动输入 = 2
    }

    public class UpdateMpsOrderInfo
    {
        public UpdateMpsOrderInfo()
        {
            goods = new List<Order_MpsOrderGoods>();
        }
        public CustomerOrder mpsOrder { get; set; }
        public List<Order_MpsOrderGoods> goods { get; set; }

    }

    #region 导入下单末端数据
    public class Order_MpsOrderBoxExcelDto
    {
        public string BoxNumber { get; set; }
        public decimal ChannelLength { get; set; }
        public decimal ChannelWidth { get; set; }
        public decimal ChannelHeight { get; set; }
        public decimal ChannelWeight { get; set; }
    }
    public class Order_MpsOrderBoxExcelData
    {
        public int Id { get; set; }
        public int boxId { get; set; }
        public string BoxNumber { get; set; }
        public string TrackingNumber { get; set; }
        public decimal ChannelLength { get; set; }
        public decimal ChannelWidth { get; set; }
        public decimal ChannelHeight { get; set; }
        public decimal ChannelWeight { get; set; }
        public string BoxServiceNumber { get; set; }
    }
    public class Order_MpsOrderBoxExcelMpping : MSExcelClassMapping<Order_MpsOrderBoxExcelDto>
    {
        public Order_MpsOrderBoxExcelMpping()
        {
            Map(x => x.BoxNumber).Name("箱号");
            Map(x => x.ChannelLength).Name("下单长");
            Map(x => x.ChannelWidth).Name("下单宽");
            Map(x => x.ChannelHeight).Name("下单高");
            Map(x => x.ChannelWeight).Name("下单重量(Kg)");
        }
    }
    #endregion

}
