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_Achievements_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>
		/// 父级ID
		/// </summary>
		public int PeriodId { get; set; }

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

		/// <summary>
		/// 提成总金额
		/// </summary>
		public decimal CommissionMoney { 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>
		/// 是否首次提成  1是  2否
		/// </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>
		/// 累计已发放金额
		/// </summary>
		public decimal GiveOutMoney { get; set; }

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

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

		/// <summary>
		/// 确认状态  0-未确认，1-已确认
		/// </summary>
		public int SureStatus { get; set; }

		/// <summary>
		/// 类型  1市场、2顾问、3教师
		/// </summary>
		public int UserType { get; set; }

		/// <summary>
		/// 相关的 achempId（订单人员表）
		/// </summary>
		public int RelatedId { get; set; }

		/// <summary>
		/// 是否部门提成   1是  2否
		/// </summary>
		public int IsDept { get; set; }

		/// <summary>
		/// 首次发放比例
		/// </summary>
		public decimal FirstRate { get; set; }

	}
}
