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_Emp
	{
		/// <summary>
		/// Id
		/// </summary>
		public int Id { get; set; }

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

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

		/// <summary>
		/// 使用规则ID
		/// </summary>
		public int RuleId { get; set; }

		/// <summary>
		/// 提成人
		/// </summary>
		public int EmpId { get; set; }

		/// <summary>
		/// 提成比例
		/// </summary>
		public decimal Rate { get; set; }

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

		/// <summary>
		/// 订单应发提成
		/// </summary>
		public decimal PushMoney { get; set; }

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

		/// <summary>
		/// 状态  1发放完毕   2未发放完毕
		/// </summary>
		public int GiveOutState { get; set; }

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

		/// <summary>
		/// 开始的周期ID
		/// </summary>
		public int PeriodsId { get; set; }

		/// <summary>
		/// 销售额
		/// </summary>
		public decimal SaleMoney { get; set; }

		/// <summary>
		/// 备注
		/// </summary>
		public string Remark { get; set; }

		/// <summary>
		/// 订单业绩
		/// </summary>
		public decimal OrderSaleMoney { get; set; }
	}
}
