using Edu.Common;
using Edu.Common.Enum.Course;
using Edu.Common.Enum.Customer;
using Edu.Model.ViewModel.Customer;
using System;
using System.Collections.Generic;

namespace Edu.Model.ViewModel.User
{
    /// <summary>
    /// 学生视图实体类
    /// </summary>
    [Serializable]
    public class RB_Student_ViewModel : Entity.User.RB_Student
    {
        /// <summary>
        /// 学生Ids
        /// </summary>
        public string StuIds { get; set; }

        /// <summary>
        /// 创建人姓名
        /// </summary>
        public string CreateByName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public string CreateTimeStr { get { return this.CreateTime.FormatTime(); } }

        /// <summary>
        /// 修改人姓名
        /// </summary>
        public string UpdateByName { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public string UpdateTimeStr { get { return this.UpdateTime.FormatTime(); } }

        /// <summary>
        /// 出生日期字符串
        /// </summary>
        public string StuBirthStr
        {
            get
            {
                return this.StuBirth.FormatDate();
            }
        }

        /// <summary>
        /// 禁用、启用字符串
        /// </summary>
        public string IsDisableStr
        {
            get
            {
                string str = "启用";
                if (this.IsDisable == 0)
                {
                    str = "禁用";
                }
                return str;
            }
        }

        /// <summary>
        /// 所属校区
        /// </summary>
        public string SName { get; set; }

        /// <summary>
        /// 所属校区id
        /// </summary>
        public int SId { get; set; }

        /// <summary>
        /// 地区名称【省/市/区县】
        /// </summary>
        public string AreaName { get; set; }

        /// <summary>
        /// 学生账号
        /// </summary>
        public string StudentAccount { get; set; }

        /// <summary>
        /// 班级名称
        /// </summary>
        public string ClassName { get; set; }

        /// <summary>
        /// 开班类型   1正常班   2滚动班
        /// </summary>
        public int ClassScrollType { get; set; }

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

        /// <summary>
        /// 课程id
        /// </summary>
        public int CourseId { get; set; }

        /// <summary>
        /// 课程
        /// </summary>
        public string CourseName { get; set; }

        /// <summary>
        /// 班级状态
        /// </summary>
        public int ClassStatus { get; set; }

        /// <summary>
        /// 老师名称
        /// </summary>
        public string TeacherName { get; set; }

        /// <summary>
        /// 销售人员
        /// </summary>
        public int EnterID { get; set; }

        /// <summary>
        /// 剩余课时
        /// </summary>
        public int SurplusHours { get; set; }

        /// <summary>
        /// 学生id（rb_order_guest的id）
        /// </summary>
        public int GuestId { get; set; }

        /// <summary>
        /// 关键字搜索
        /// </summary>
        public string KeyWords { get; set; }

        /// <summary>
        /// 订单数量
        /// </summary>
        public int OrderCount { get; set; }

        /// <summary>
        /// 订单实收金额
        /// </summary>
        public decimal OrderIncome { get; set; }

        /// <summary>
        /// 续费订单数量
        /// </summary>
        public int RenewOrderCount { get; set; }

        /// <summary>
        /// 学员状态
        /// </summary>
        public GuestStateEnum StuGuestState { get; set; }

        /// <summary>
        /// 账号表主键编号
        /// </summary>
        public int Account_Id { get; set; }

        /// <summary>
        /// 是否查询自己的客户（1-是）
        /// </summary>
        public int IsQueryMyStu { get; set; }

        /// <summary>
        /// 学生类型  1非关联同行的
        /// </summary>
        public int QStudentType { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public string StartTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public string EndTime { get; set; }

        /// <summary>
        /// 最后一次跟进时间
        /// </summary>
        public string followUpTime { get; set; }

        /// <summary>
        /// 本周新增客户数量
        /// </summary>
        public int WeekCount { get; set; }

        /// <summary>
        /// 本周新增客户数量
        /// </summary>
        public int TodayCount { get; set; }

        /// <summary>
        /// 是否续费学生  1是
        /// </summary>
        public int IsRenewGuest { get; set; }

        /// 协助人员
        /// </summary>
        public List<RB_Student_Assist_Extend> AssistList { get; set; }

        /// <summary>
        /// 查询日期
        /// </summary>
        public string QDate { get; set; }

        /// <summary>
        /// 到访次数
        /// </summary>
        public int VisitCount { get; set; }

        /// <summary>
        /// 试听次数
        /// </summary>
        public int TrialLessonCount{get;set;}

        /// <summary>
        /// 同行
        /// </summary>
        public string CustomerName { get; set; }

        /// <summary>
        /// 同行客户来源(1-企业,2-学校)
        /// </summary>
        public CatetoryTypeEnum CustomerType { get; set; }

        /// <summary>
        /// 来源人名称
        /// </summary>
        public string StuSourceIdName { get; set; }

        /// <summary>
        /// 同业企业
        /// </summary>
        public string EnterpriseName { get; set; }

        /// <summary>
        /// 客户阶段名称
        /// </summary>
        public string StuStageName { get; set; }

        /// <summary>
        /// 客户类型名称
        /// </summary>
        public string StuTypeName { get; set; }

        /// <summary>
        /// 归属类型(1-全部，2-我负责的，3-我协同的)
        /// </summary>
        public int BelongType { get; set; }

        /// <summary>
        /// 操作类型(1-ERP后台操作，2-App小程序操作)
        /// </summary>
        public int OperateType { get; set; }

        /// <summary>
        /// 课程顾问
        /// </summary>
        public int ConsultantId { get; set; }

        /// <summary>
        /// 渠道名称
        /// </summary>
        public string StuChannelName { get; set; }

        /// <summary>
        /// 学习目的名称
        /// </summary>
        public string StuPurposeName { get; set;}

        /// <summary>
        /// 客户需求名称
        /// </summary>
        public string StuNeedsName { get; set; }

        /// <summary>
        /// 线索条数
        /// </summary>
        public int ClueCount { get; set; }

        /// <summary>
        /// 创建人编号
        /// </summary>
        public List<int> CreateIds { get; set; }

        /// <summary>
        /// 课程图标
        /// </summary>
        public string B2BIcon { get; set; }

        /// <summary>
        /// 课程背景颜色
        /// </summary>
        public string B2BBackground { get; set; }

        /// <summary>
        /// 累计课时
        /// </summary>
        public decimal TotalHours { get; set; }

        /// <summary>
        /// 已完成课时
        /// </summary>
        public decimal CompleteHours { get; set; }

        #region 统计数量
        /// <summary>
        /// 开始跟进时间
        /// </summary>
        public string SFTime { get; set; }

        /// <summary>
        /// 结束跟进时间
        /// </summary>
        public string EFTime { get; set; }

        /// <summary>
        /// 根进查询类型  1范围内有  2范围内没有s
        /// </summary>
        public int Q_FType { get; set; }

        /// <summary>
        /// 学习中数量
        /// </summary>
        public int StudyNum { get; set; }

        /// <summary>
        /// 毕业数量
        /// </summary>
        public int GraduateNum { get; set; }

        /// <summary>
        /// 停课数量
        /// </summary>
        public int SuspendNum { get; set; }

        /// <summary>
        /// 退学数量
        /// </summary>
        public int DropOutNum { get; set; }

        /// <summary>
        /// 报名情况  1已报名  2未成交
        /// </summary>
        public int Q_EnrollState { get; set; }
        #endregion

        /// <summary>
        /// 是否存在课程顾问(1-存在,2-不存在)
        /// </summary>
        public int ExistCourseConsultant { get; set; }

        /// <summary>
        /// 查询时间类型(1-本周,2-上周,3-本月,4-上月)
        /// </summary>
        public int QTimeType { get; set; }

        /// <summary>
        ///查询订单编号【查询使用】
        /// </summary>
        public string QOrderIds { get; set; }

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

        /// <summary>
        /// 同业编号
        /// </summary>
        public int CategoryId { get; set; }

        /// <summary>
        /// 课程顾问跟进状态名称
        /// </summary>
        public string AdvisorStatusName { get; set; }

        /// <summary>
        /// 课程顾问跟进信息列表
        /// </summary>
        public List<RB_Student_Advisor_Extend> AdvisorList { get; set; }

        /// <summary>
        /// 客户状态(1-有效，2-无效)
        /// </summary>
        public int QStudentStatus { get; set; }
    }
}