using XYY.Core.Standard;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XYY.Common.Standard.Attributes;
using XYY.Model.Standard.User.Enums;
using XYY.Model.Standard.User;

namespace XYY.Model.Standard
{
    public class User_Customer : BaseEntity
    {
        public UserSystem SystemId
        {
            get; set;
        }


        [NoDb]
        public string DockingPlatformName
        {
            get
            {
                return DockingPlatform.ToString();
            }
        }

        [NoDb]
        public string SalesmanUserName
        {
            get; set;
        }

        public DockingPlatform DockingPlatform
        {
            get; set;
        }

        public bool AutomaticSerialNumber
        {
            get; set;
        }

        public string DefaultHSCODE
        {
            get; set;
        }

        public bool SupplementaryCall
        {
            get; set;
        }

        public bool SupplementaryStateCity
        {
            get; set;
        }

        public bool AdjustmentDeclaration
        {
            get; set;
        }



        [NoDb]
        public string SupplementSheetName
        {
            get
            {
                return SupplementSheet.ToString();
            }
        }


        public SupplementSheet SupplementSheet
        {
            get; set;
        }

        /// <summary>
        /// 客户编码
        /// </summary>
        public string CustomerNumber { get; set; }

        /// <summary>
        /// 所属公司
        /// </summary>
        public string CompanyName { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        public string Contact { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        public string ContactNumber { get; set; }

        public string EMail { get; set; }

        /// <summary>
        /// 客户地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 合同名称
        /// </summary>
        public string ContractFile { get; set; }

        /// <summary>
        /// 合作时间
        /// </summary>
        public DateTime? CooperationTime { get; set; }

        /// <summary>
        /// 结算周期 1.自定义 2.日结 3.周结 4.半月结 5.月结
        /// </summary>
        public int BillingCycle { get; set; }

        /// <summary>
        /// 是否激活
        /// </summary>
        public bool IsActive { get; set; }

        /// <summary>
        /// 创建时的客户ID
        /// </summary>
        public int CreateCustomerId { get; set; }

        /// <summary>
        /// 业务员ID
        /// </summary>
        public int? SalesmanUserId { get; set; }

        /// <summary>
        /// 结算公司
        /// </summary>
        public SettlementCompany SettlementCompany
        {
            get; set;
        }

        [NoDb]
        public string StrSettlementCompany
        {
            get
            {
                return SettlementCompany.ToString();
            }
        }

        public string Abbreviation
        {
            get; set;
        }

        /// <summary>
        /// 客户类型
        /// </summary>
        public CustomerType? Type
        {
            get; set;
        }

        /// <summary>
        /// 结算节点
        /// </summary>
        //public DeductionNode DeductionNode
        //{
        //    get; set;
        //}
    }
}
