using Dapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XYY.Core;
using XYY.Core.Standard;

namespace XYY.Model.Standard.Finance
{

    public class ViewFinance_Customer_Supplement : Finance_Customer_Supplement
    {
        public string CustomerName
        {
            get; set;
        }

        public string PublicName
        {
            get; set;
        }
    }

    /// <summary>
    /// 补款类型
    /// </summary>
    public enum FinanceCustomerSupplementOrDeductionType
    {
        None = 0,
        补_杂费 = 1,
        补_退件费 = 2,
        补_重派费 = 3,
        扣_重量差异费 = 4,
        扣_时间差异费 = 5,
        扣_索赔 = 6,
        扣_杂费 = 7,
        扣_运费退回 = 8,
        扣_退件退回 = 9,
        补_FBA杂费 = 10
    }



    /// <summary>
    /// 客服登记客户补收金额
    /// </summary>
    [Table("Finance_Customer_Supplement_Test")]
    public class Finance_Customer_Supplement : BaseEntity
    {
        public string Guid
        {
            get; set;
        }

        public string Month
        {
            get; set;
        }

        /// <summary>
        /// 补款类型
        /// 补_杂费 = 1,
        /// 补_退件费 = 2,
        /// 补_重派费 = 3,
        /// 扣_重量差异费 = 4,
        /// 扣_重量差异费 = 5,
        /// 扣_索赔 = 6
        /// 扣_杂费 = 7
        /// </summary>
        public FinanceCustomerSupplementOrDeductionType FinanceCustomerSupplementType
        {
            get; set;
        }

        /// <summary>
        /// 描述
        /// </summary>
        public string OrderRemark
        {
            get; set;
        }

        /// <summary>
        /// 补收金额状态
        /// </summary>
        public CustomerSupplementStatus SupplementStatus
        {
            get; set;
        }

        /// <summary>
        /// 通过时间
        /// </summary>
        public DateTime? PassTime
        {
            get; set;
        }
        /// <summary>
        /// 通过人
        /// </summary>
        public string PassUserName
        {
            get; set;
        }

        /// <summary>
        /// 描述
        /// </summary>
        public string Describe
        {
            get; set;
        }


        public int OrderId
        {
            get; set;
        }

        public int CustomerId
        {
            get; set;
        }

        public string TrackingNumber
        {
            get; set;
        }

        public string SystemNo
        {
            get; set;
        }

        public string CustomerOrderNo
        {
            get; set;
        }

        public decimal Fee
        {
            get; set;
        }

        public string FeeString
        {
            get; set;
        }

        public string CurrenyRate
        {
            get; set;
        }
        public int CreateOrderChannelId
        {
            get; set;
        }
    }
}
