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

namespace XYY.Model.Standard.Finance
{

    public class View_Finance_Customer_Account : Finance_Customer_Account
    {
        /// <summary>
        /// 帐户名称
        /// </summary>
        public string CustomerAccountName
        {
            get; set;
        }

        public int SalesmanUserId
        {
            get; set;
        }

        public string SealsmanUserName
        {
            get; set;
        }
    }

    /// <summary>
    /// 客户帐户
    /// </summary>
    [TrackTable(typeof(Finance_Customer_AccountLog))]
    public class Finance_Customer_Account : BaseEntity
    {
        /// <summary>
        /// 当前逾期天数
        /// </summary>
        public int CurrentOverdueDays
        {
            get; set;
        }

        /// <summary>
        /// 客户
        /// </summary>
        public int CustomerId
        {
            get; set;
        }



        /// <summary>
        /// 余额
        /// </summary>
        [Track("余额")]
        public decimal Balance
        {
            get; set;
        }

        /// <summary>
        /// 授信
        /// </summary>
        [Track("授信")]
        public decimal Quota
        {
            get; set;
        }

        /// <summary>
        /// 基础授信
        /// </summary>
        [Track("基础授信")]
        public decimal BaseQuota
        {
            get; set;
        }

        /// <summary>
        /// 逾期收款比例
        /// </summary> 
        [Track("逾期收款比例")]
        public decimal OverdueRatio
        {
            get; set;
        }

        /// <summary>
        /// 付款期限天数
        /// </summary>
        [Track("付款期限天数")]
        public int RepaymentTermDay
        {
            get; set;
        }

        /// <summary>
        /// 最终帐单
        /// </summary> 
        [Track("最终帐单")]
        public int LastBillId
        {
            get; set;
        }

        public DateTime? QuotaExpirationTime { get; set; }
        public int? QuotaExpirationId { get; set; }
        /// <summary>
        /// AccountTypeEnum
        /// </summary>
        public AccountTypeEnum? AccountType { get; set; }
        public bool Arrears { get; set; }
        public string Currency { get; set; }

    }
}
