using Edu.Common.Enum;
using Edu.Common.Enum.Course;
using System;
using VT.FW.DB;

namespace Edu.Model.Entity.Sell
{
    /// <summary>
    /// 销售提成期数明细实体类
    /// </summary>
    [Serializable]
    [DB(ConnectionName = "DefaultConnection")]
    public class RB_Sell_Commission_Details
    {
        /// <summary>
        /// 编号
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 关联用户
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 班级id
        /// </summary>
        public int ClassId { get; set; }

        /// <summary>
        /// 班级类型  1学生班   2社会班
        /// </summary>
        public int ClassType { get; set; }

        /// <summary>
        /// 订单ID
        /// </summary>
        public int OrderId { get; set; }

        /// <summary>
        /// 提成总金额（不是发放的）
        /// </summary>
        public decimal CommissionMoney { get; set; }

        /// <summary>
        /// 期数id
        /// </summary>
        public int PeriodId { get; set; }

        /// <summary>
        /// 期号
        /// </summary>
        public string Periods { get; set; }

        /// <summary>
        /// 额外奖励
        /// </summary>
        public decimal OtherMoney { get; set; }

        /// <summary>
        /// 额外扣除
        /// </summary>
        public decimal BackMoney { get; set; }

        /// <summary>
        /// 部门id
        /// </summary>
        public int Depart_Id { get; set; }

        /// <summary>
        /// 校区id
        /// </summary>
        public int School_Id { get; set; }

        /// <summary>
        /// 集团id
        /// </summary>
        public int Group_Id { get; set; }

        /// <summary>
        /// 备注， 记录抵扣金额等等
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 学生数量
        /// </summary>
        public int StudentCount { get; set; }

        /// <summary>
        /// 当期提成金额
        /// </summary>
        public decimal CurrentPeriodMoney { get; set; }

        /// <summary>
        /// 当期发放额外提成
        /// </summary>
        public decimal CurrentExtraMoney { get; set; }

        /// <summary>
        /// 是否首次发放提成  1是  其他否
        /// </summary>
        public int IsFirstCommission { get; set; }

        /// <summary>
        /// 总课时
        /// </summary>
        public int TotalHours { get; set; }

        /// <summary>
        /// 累计消费课时
        /// </summary>
        public int TotalLearn { get; set; }

        /// <summary>
        /// 当期课时消耗
        /// </summary>
        public int CurrentHours { get; set; }

        /// <summary>
        /// 是否续班  1是  其他否
        /// </summary>
        public int IsContinueClass { get; set; }

        /// <summary>
        /// 累计已发放金额
        /// </summary>
        public decimal GiveOutMoney { get; set; }

        /// <summary>
        /// 销售提成比例
        /// </summary>
        public decimal SalesRate { get; set; }
        /// <summary>
        /// 老师比例
        /// </summary>
        public decimal TeacherRate { get; set; }
        /// <summary>
        /// 助教比例
        /// </summary>
        public decimal AssistantRate { get; set; }
        /// <summary>
        /// 首次发放比例
        /// </summary>
        public decimal FirstRate { get; set; }

        /// <summary>
        /// 抵扣订单
        /// </summary>
        public int DeductionOrder { get; set; }

        /// <summary>
        /// 抵扣金额
        /// </summary>
        public decimal DeductionMoney { get; set; }

        /// <summary>
        /// 抵扣额外奖励
        /// </summary>
        public decimal DeductionExtraMoney { get; set; }

        /// <summary>
        /// 确认状态  2021-06-30 Add By:W  0-未确认，1-已确认
        /// </summary>
        public int SureStatus { get; set; }

    }
}
