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

namespace Edu.Model.Entity.Course
{
    /// <summary>
    /// 课程报价单实体
    /// </summary>
    [Serializable]
    [DB(ConnectionName = "DefaultConnection")]
    public class RB_Course_Offer
    {
		/// <summary>
		/// 主键编号
		/// </summary>
		public int Id { get; set; }

		/// <summary>
		/// 流水号
		/// </summary>
		public string SerialNum { get; set; }

		/// <summary>
		/// 报价单名称
		/// </summary>
		public string Name { get; set; }

		/// <summary>
		/// 有效期开始时间
		/// </summary>
		public DateTime EffectiveStart { get; set; }

		/// <summary>
		/// 有效期结束时间
		/// </summary>
		public DateTime EffectiveEnd { get; set; }

		/// <summary>
		/// 客户类型(1-新客户,2-续班客户)
		/// </summary>
		public CustomerTypeEnum CustomerType { get; set; }

		/// <summary>
		/// 客户来源(1-学校介绍,2-朋友介绍,3-网络广告)
		/// </summary>
		public CustomerSourceEnum CustomerSource { get; set; }

		/// <summary>
		/// 总原价
		/// </summary>
		public decimal TotalOriginalPrice { get; set; }

		/// <summary>
		/// 总金额
		/// </summary>
		public decimal TotalPrice { get; set; }

		/// <summary>
		/// 优惠总额
		/// </summary>
		public decimal TotalDiscountPrice { get; set; }

		/// <summary>
		/// 报价单状态(见枚举)
		/// </summary>
		public CustomerStatusEnum CustomerStatus { get; set; }

		/// <summary>
		/// 客户微信信息
		/// </summary>
		public string CustomerInfo { get; set; }

		/// <summary>
		/// 创建人
		/// </summary>
		public int CreateBy { get; set; }

		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreateTime { get; set; }

		/// <summary>
		/// 修改人
		/// </summary>
		public int UpdateBy { get; set; }

		/// <summary>
		/// 修改时间
		/// </summary>
		public DateTime UpdateTime { get; set; }

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

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

		/// <summary>
		/// 删除状态(1-删除)
		/// </summary>
		public DateStateEnum Status { get; set; }

		/// <summary>
		/// 客户名称
		/// </summary>
		public string CustomerName { get; set; }

		/// <summary>
		/// 客户电话
		/// </summary>
		public string CustomerTel { get; set; }

		/// <summary>
		/// 客户人数
		/// </summary>
		public int JoinNum { get; set; }

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

		/// <summary>
		/// 申请改价原因
		/// </summary>
		public string ApplyReason { get; set; }

		/// <summary>
		/// 报价单类型
		/// </summary>
		public OfferTypeEnum OfferType { get; set; }
	}
}
