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_CustomerConfig_ViewModel : RB_WeChat_CustomerConfig
    {
        /// <summary>
        /// 可以领取的部门
        /// </summary>
        public List<User.RB_Department_ViewModel> PublicGetDeptList { get; set; }
        /// <summary>
        /// 可放弃到公海的部门
        /// </summary>
        public List<User.RB_Department_ViewModel> AbandonDeptList { get; set; }
        /// <summary>
        /// 允许申请成为协作人部门
        /// </summary>
        public List<User.RB_Department_ViewModel> ApplyForTeamDeptList { get; set; }
        /// <summary>
        /// 允许添加协作人部门
        /// </summary>
        public List<User.RB_Department_ViewModel> AddTeamDeptList { get; set; }
        /// <summary>
        /// 允许转移客户的部门
        /// </summary>
        public List<User.RB_Department_ViewModel> TransferCustomerDeptList { get; set; }

        /// <summary>
        /// 可以领取的人员
        /// </summary>
        public List<User.Employee_ViewModel> PublicGetEmpList { get; set; }
        /// <summary>
        /// 可放弃到公海的人员
        /// </summary>
        public List<User.Employee_ViewModel> AbandonEmpList { get; set; }
        /// <summary>
        /// 允许申请成为协作人人员
        /// </summary>
        public List<User.Employee_ViewModel> ApplyForTeamEmpList { get; set; }
        /// <summary>
        /// 允许添加协作人人员
        /// </summary>
        public List<User.Employee_ViewModel> AddTeamEmpList { get; set; }
        /// <summary>
        /// 允许转移客户的人员
        /// </summary>
        public List<User.Employee_ViewModel> TransferCustomerEmpList { get; set; }

        /// <summary>
        /// 放弃原因
        /// </summary>
        public List<string> AbandonReasonList { get; set; }

        /// <summary>
        /// 阶段
        /// </summary>
        public List<RB_WeChat_CustomerStage_ViewModel> StageList { get; set; }

        /// <summary>
        /// 标签
        /// </summary>
        public List<RB_WeChat_Lable_ViewModel> LableList { get; set; }

        /// <summary>
        /// 部分客户筛选列表
        /// </summary>
        public List<CustomerCommissionSelectModel> AbandonKHSelect { get; set; }
    }

    /// <summary>
    /// 字段Model 用于客户筛选
    /// </summary>
    public class CustomerCommissionSelectModel
    {
        /// <summary>
        /// 标识
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 字段名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 类型  1包含  2等于  3日期   4日期范围  5数值
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 方向  1包含所有/等于/等于  2包含任意/不等于/大于  3不包含/为空/大于等于  4为空/不为空/小于  5不为空/模糊/小于等于   对应 type的1/2/5
        /// </summary>
        public int Direction { get; set; }

        /// <summary>
        /// 开始值
        /// </summary>
        public string StartValue { get; set; }

        /// <summary>
        /// 结束值
        /// </summary>
        public string EndValue { get; set; }

        /// <summary>
        /// 自定义字段  1是  2标签   3客户阶段
        /// </summary>
        public int IsCustom { get; set; }
    }
}
