using Edu.Model.Entity.Sell;
using Edu.Model.ViewModel.Course;
using Edu.Model.ViewModel.User;
using System;
using System.Collections.Generic;

namespace Edu.Model.ViewModel.Sell
{
    /// <summary>
    /// 市场顾问提成规则实体类
    /// </summary>
    [Serializable]
    public class RB_Sell_Achievements_Rule_ViewModel : RB_Sell_Achievements_Rule
    {
        /// <summary>
        /// 业绩比例
        /// </summary>
        public List<AchievementsRateModel> RateList { get; set; }

        /// <summary>
        /// 课程
        /// </summary>
        public List<RB_Course_ViewModel> CourseList { get; set; }

        /// <summary>
        /// 人员列表
        /// </summary>
        public List<Employee_ViewModel> EmpList { get; set; }

        /// <summary>
        /// 部门下人员列表
        /// </summary>
        public List<Employee_ViewModel> ChildEmpList { get; set; }

        /// <summary>
        /// 校区名称
        /// </summary>
        public string SchoolName { get; set; }
    }

    /// <summary>
    /// 业绩比列
    /// </summary>
    public class AchievementsRateModel { 
        /// <summary>
        /// 开始值   （不包含）
        /// </summary>
        public decimal StartValue { get; set; }
        /// <summary>
        /// 结束值  -1表示不限   (包含)
        /// </summary>
        public decimal EndValue { get; set; }
        /// <summary>
        /// 提成比例  百分比
        /// </summary>
        public decimal Rate { get; set; }
    }
}