using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XYY.Common.Standard.Attributes;
using XYY.Core.Standard;

namespace XYY.Data.Model.Standard.Tracking
{
    /// <summary>
    /// 补充配置
    /// </summary>
    public class Logistics_Trace_SupplementConfig : BaseEntity
    {

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable
        {
            get; set;
        }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete
        {
            get; set;
        }

        /// <summary>
        /// 补充类型
        /// </summary>
        public SupplementType SupplementType
        {
            get; set;
        }
        [NoDb]
        public string StrSupplementType
        {
            get
            {
                return SupplementType.ToString();
            }
        }
        /// <summary>
        /// 补充位置
        /// </summary>
        public TrackSupplementLocation TrackSupplementLocation
        {
            get; set;
        }
        [NoDb]
        public string StrTrackSupplementLocation
        {
            get
            {
                return TrackSupplementLocation.ToString();
            }
        }

        /// <summary>
        /// 补充对象Id
        /// </summary>
        public int SupplementTarge
        {
            get; set;
        }

        /// <summary>
        /// 补充节点
        /// </summary>
        public JudgmentNode JudgmentNode
        {
            get; set;
        }

        [NoDb]
        public string StrJudgmentNode
        {
            get
            {
                return JudgmentNode.ToString();
            }
        }
        /// <summary>
        /// 未更新小时数
        /// </summary>
        public int NoUpdateHour
        {
            get; set;
        }

        /// <summary>
        /// 补充小时数
        /// </summary>
        public int TrackSupplementHour
        {
            get; set;
        }

        /// <summary>
        /// 补充内容
        /// </summary>
        public string TrackSupplementText
        {
            get; set;
        }

    }

    /// <summary>
    /// 补充节点
    /// </summary>
    public enum JudgmentNode
    {
        自定义 = 0,
        称重收件 = 1,
        装箱 = 2,
        国内转运 = 3,
        离港时间 = 4,
        到港时间 = 5,
        清关时间 = 6,
        上网时间 = 7
    }

    public enum TrackSupplementLocation
    {
        国内 = 1,
        国外 = 2
    }

    /// <summary>
    /// 补充类型
    /// </summary>
    public enum SupplementType
    {
        全部 = 1,
        下单渠道 = 2,
        服务渠道 = 3
    }
}
