using System;
using System.Collections.Generic;
using System.Text;
using Edu.Common.Enum.Sale;
using Edu.Model.Entity.WeChat;
using Edu.Model.Public;

namespace Edu.Model.ViewModel.WeChat
{
    /// <summary>
    /// 企业微信客户库扩展类
    /// </summary>
    public class RB_WeChat_CustomerLibrary_ViewModel : RB_WeChat_CustomerLibrary
    {
        /// <summary>
        /// 分配的部门
        /// </summary>
        public List<User.RB_Department_ViewModel> DeptList { get; set; }

        /// <summary>
        /// 分配的员工
        /// </summary>
        public List<User.Employee_ViewModel> EmpList { get; set; }

        /// <summary>
        /// 回收条件列表
        /// </summary>
        public List<RecycleConditionModel> ConditionList { get; set; }

        /// <summary>
        /// 私库限制列表
        /// </summary>
        public List<PrivateLibraryLimitExtend> LimitList { get; set; }

        /// <summary>
        /// 免回收时间段列表
        /// </summary>
        public List<NotRecycleTimeModel> NotRecycleTimeList { get; set; }

        /// <summary>
        /// 占用私库名额类型名称
        /// </summary>
        public string PrivateLibraryTypeStr { get; set; }
    }

    /// <summary>
    /// 免回收时间段
    /// </summary>
    public class NotRecycleTimeModel { 
        /// <summary>
        /// 开始时间
        /// </summary>
        public string StartTime { get; set; }

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

        /// <summary>
        /// 类型  1每天
        /// </summary>
        public int Type { get; set; }
    }

    /// <summary>
    /// 自动回收条件
    /// </summary>
    public class RecycleConditionModel
    {
        /// <summary>
        /// 类型 1未跟进   2未加微信好友  3客户阶段未到达"成交"阶段  4客户阶段达到某一个后  没有签到拜访   5没有再次跟进   6没有再次更新客户阶段
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public int Num { get; set; }

        /// <summary>
        ///  类型   1天   2小时   3分钟
        /// </summary>
        public int DateType { get; set; }

        /// <summary>
        /// 阶段ID
        /// </summary>
        public int StageId { get; set; }
    }

    /// <summary>
    /// 私库限制
    /// </summary>
    public class PrivateLibraryLimitModel { 
        /// <summary>
        /// 是否默认  1是
        /// </summary>
        public int IsDefault { get; set; }

        /// <summary>
        /// 部门Ids
        /// </summary>
        public string DeptIds { get; set; }

        /// <summary>
        /// 人员Ids
        /// </summary>
        public string EmpIds { get; set; }

        /// <summary>
        /// 私库限制客户数量
        /// </summary>
        public int LimitNum { get; set; }

        /// <summary>
        /// 私库锁库客户数量
        /// </summary>
        public int LockNum { get; set; }
    }

    /// <summary>
    /// 限制扩展
    /// </summary>
    public class PrivateLibraryLimitExtend : PrivateLibraryLimitModel {
        /// <summary>
        /// 分配的部门
        /// </summary>
        public List<User.RB_Department_ViewModel> DeptList { get; set; }

        /// <summary>
        /// 分配的员工
        /// </summary>
        public List<User.Employee_ViewModel> EmpList { get; set; }
    }
}
