using System;
using System.Collections.Generic;
using System.Text;
using VT.FW.DB;

namespace Edu.Model.Entity.Customer
{
	/// <summary>
	/// 客户幸福存折和返佣实体类
	/// </summary>
	[Serializable]
    [DB(ConnectionName = "DefaultConnection")]
    public class RB_Customer_BalanceDetail
    {
		/// <summary>
		/// 客户幸福存折明细id
		/// </summary>
		public int Id { get; set; }

		/// <summary>
		/// 返佣类型(1-直接返佣[首次报名],2-幸福存折[续费])
		/// </summary>
		public int RebateType { get; set; }

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

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

		/// <summary>
		/// 来源类型
		/// </summary>
		public int OrderSource { get; set; }

		/// <summary>
		/// 类型  1存入   2扣除
		/// </summary>
		public int BalanceType { get; set; }

		/// <summary>
		/// 变更金额
		/// </summary>
		public decimal Money { get; set; }

		/// <summary>
		/// 描述
		/// </summary>
		public string Description { get; set; }

		/// <summary>
		/// 发生时间
		/// </summary>
		public DateTime UpdateTime { get; set; }

		/// <summary>
		/// 账户余额
		/// </summary>
		public decimal AccountMoney { get; set; }

		/// <summary>
		/// 报名人数
		/// </summary>
		public int PeopleNum { get; set; }

		/// <summary>
		/// 销售编号
		/// </summary>
		public int EmployeeId { get; set; }

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

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

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

		/// <summary>
		/// 状态  1已返佣   2待返佣   3部分返佣
		/// </summary>
		public int BalanceState { get; set; }

		/// <summary>
		/// 是否已提现  1是   2否
		/// </summary>
		public int IsRemit { get; set; }

		/// <summary>
		/// 已发放金额( 根据订单返佣设置  按课耗 / 付款后发放)
		/// </summary>
		public decimal GiveOutMoney { get; set; }
	}
}
