using Elasticsearch.Net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XYY.Core.Standard.ExcelHelper.MSExcelHelper;

namespace XYY.Model.Standard.Finance
{
    public class View_ChinaPostQuotationDiscount
    {
        public int CustomerId
        {
            get; set;
        }

        public int ExpressId
        {
            get; set;
        }

        public int SalesmanUserId
        {
            get; set;
        }

        public decimal 折扣
        {
            get; set;
        }

        public string 线路名称
        {
            get; set;
        }

        public string 生效时间
        {
            get; set;
        }

        public string 客户
        {
            get; set;
        }

        public bool IsActive
        {
            get; set;
        }
    }
    public class View_Quotation
    {
        public int Sort
        {
            get; set;
        }
        public int Id
        {
            get; set;
        }

        public int CustomerId
        {
            get; set;
        }

        public int ExpressId
        {
            get; set;
        }

        public int SalesmanUserId
        {
            get; set;
        }

        public string 起重
        {
            get; set;
        }
        /// <summary>
        /// 附加费处理时使用
        /// </summary>
        public string 起重费
        {
            get; set;
        }

        public string 限重
        {
            get; set;
        }

        public string 续重
        {
            get; set;
        }
        /// <summary>
        /// 附加费处理时使用
        /// </summary>
        public string 续重费 { get; set; }


        public string 国家
        {
            get; set;
        }

        public string 二字简码
        {
            get; set;
        }

        public string 跟单员
        {
            get; set;
        }
        public string 客户
        {
            get; set;
        }
        public string 线路名称
        {
            get; set;
        }
        public string 渠道代码
        {
            get; set;
        }
        public string 运费
        {
            get; set;
        }
        public string 操作费
        {
            get; set;
        }
        public string 重量段
        {
            get; set;
        }

        public string 开始重量
        {
            get; set;
        }
        public string 结束重量
        {
            get; set;
        }
        public string 生效时间
        {
            get; set;
        }

        public bool ChannelEnabled { get; set; }
        /// <summary>
        /// Logistics_ExpressFeeGrads 中的 Countory
        /// </summary>
        public string Countory { get; set; }

    }

    public class DiscountDto {
        public DateTime setTime { get; set; }
        public int ExpressId { get; set; }
        public List<CustomerDiscount> discountData { get; set; }
    }
    public class CustomerDiscount
    {
        public string CompanyName { get; set; }
        public int customerId { get; set; }
        public decimal Discount { get; set; }
    }
    public class CustomerDiscountMpping : MSExcelClassMapping<CustomerDiscount>
    {
        public CustomerDiscountMpping()
        {
            Map(x => x.CompanyName).Name("客户名称");
            Map(x => x.Discount).Name("折扣");
        }
    }
}
