using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ZXDT.CallCenter.Model
{
    /// <summary>
    /// 计划表
    /// </summary>
    [Serializable]
    public partial class T_CTI_Task
    {
        public T_CTI_Task()
        { }
        #region Model
        private long _taskid;
        private string _taskname;
        private int? _trunkgroupid;
        private string _callernum;
        private int? _calltype;
        private string _exinfo;
        private int? _maxtrunkcount = 1;
        private decimal? _intensitycoefficient;
        private string _itemtablename;
        private int? _state;
        private DateTime? _addtime = DateTime.Now;
        private int? _y_psort;
        private long? _y_tkmodelid;
        private int? _y_sxh = 0;
        private int? _y_fpcount = 0;
        private int? _y_yjcount = 0;
        private int? _y_hccount = 0;
        private int? _y_hscount = 0;
        private int? _y_htcount = 0;
        private int? _y_hmcount = 0;
        private int? _y_okcount = 0;
        private int? _y_rfcount = 0;
        private int? _y_conscount = 0;
        private int? _y_invlcount = 0;
        private int? _y_noanswercount = 0;
        private int? _y_shutdowncount = 0;
        /// <summary>
        /// 
        /// </summary>
        public long TaskID
        {
            set { _taskid = value; }
            get { return _taskid; }
        }
        /// <summary>
        /// 计划名称
        /// </summary>
        public string TaskName
        {
            set { _taskname = value; }
            get { return _taskname; }
        }
        /// <summary>
        /// 中继组Id（不同于坐席组）
        /// </summary>
        public int? TrunkGroupID
        {
            set { _trunkgroupid = value; }
            get { return _trunkgroupid; }
        }
        /// <summary>
        /// 外呼时，客户手机显示的号码
        /// </summary>
        public string CallerNum
        {
            set { _callernum = value; }
            get { return _callernum; }
        }
        /// <summary>
        /// 1.转队列，2.转IVR，3.转电话
        /// </summary>
        public int? CallType
        {
            set { _calltype = value; }
            get { return _calltype; }
        }
        /// <summary>
        /// 与呼转类型对应，如果是队列，则为队列号；如果是IVR，则是IVR编号；如果是电话，则是电话号。
        /// </summary>
        public string ExInfo
        {
            set { _exinfo = value; }
            get { return _exinfo; }
        }
        /// <summary>
        /// 最大并发数
        /// </summary>
        public int? MaxTrunkCount
        {
            set { _maxtrunkcount = value; }
            get { return _maxtrunkcount; }
        }
        /// <summary>
        /// 呼叫强度当“呼叫类型”为转队列时，或者IVR最终转移到有效队列
        /// </summary>
        public decimal? IntensityCoefficient
        {
            set { _intensitycoefficient = value; }
            get { return _intensitycoefficient; }
        }
        /// <summary>
        /// 任务项所在的表名（T_CTI_CallResultX）
        /// </summary>
        public string ItemTableName
        {
            set { _itemtablename = value; }
            get { return _itemtablename; }
        }
        /// <summary>
        /// -1.删除，0.待CTI执行，1.CTI执行中，2.暂停，3.终止（添加时状态为暂停2，启动任务后状态为0待CTI执行，CTI开始执行这一项的时候状态为1，子项呼叫完后状态改为3））
        /// </summary>
        public int? State
        {
            set { _state = value; }
            get { return _state; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? AddTime
        {
            set { _addtime = value; }
            get { return _addtime; }
        }
        /// <summary>
        /// 营销计划外呼方式（0：自动外呼；1：预测外呼）
        /// </summary>
        public int? y_PSort
        {
            set { _y_psort = value; }
            get { return _y_psort; }
        }
        /// <summary>
        /// 话术模板Id
        /// </summary>
        public long? y_TkModelId
        {
            set { _y_tkmodelid = value; }
            get { return _y_tkmodelid; }
        }
        /// <summary>
        /// 页面显示顺序号
        /// </summary>
        public int? y_SXH
        {
            set { _y_sxh = value; }
            get { return _y_sxh; }
        }
        /// <summary>
        /// 分配量
        /// </summary>
        public int? y_FPCount
        {
            set { _y_fpcount = value; }
            get { return _y_fpcount; }
        }
        /// <summary>
        /// 接通量
        /// </summary>
        public int? y_YJCount
        {
            set { _y_yjcount = value; }
            get { return _y_yjcount; }
        }
        /// <summary>
        /// 呼出量
        /// </summary>
        public int? y_HCCount
        {
            set { _y_hccount = value; }
            get { return _y_hccount; }
        }
        /// <summary>
        /// 呼损量
        /// </summary>
        public int? y_HSCount
        {
            set { _y_hscount = value; }
            get { return _y_hscount; }
        }
        /// <summary>
        /// 呼通量
        /// </summary>
        public int? y_HTCount
        {
            set { _y_htcount = value; }
            get { return _y_htcount; }
        }
        /// <summary>
        /// 号码量
        /// </summary>
        public int? y_HMCount
        {
            set { _y_hmcount = value; }
            get { return _y_hmcount; }
        }
        /// <summary>
        /// 成功数量
        /// </summary>
        public int? y_OkCount
        {
            set { _y_okcount = value; }
            get { return _y_okcount; }
        }
        /// <summary>
        /// 拒绝数量
        /// </summary>
        public int? y_RFCount
        {
            set { _y_rfcount = value; }
            get { return _y_rfcount; }
        }
        /// <summary>
        /// 考虑数量
        /// </summary>
        public int? y_ConsCount
        {
            set { _y_conscount = value; }
            get { return _y_conscount; }
        }
        /// <summary>
        /// 无效号码数量
        /// </summary>
        public int? y_InvlCount
        {
            set { _y_invlcount = value; }
            get { return _y_invlcount; }
        }
        /// <summary>
        /// 无人接听
        /// </summary>
        public int? y_NoAnswerCount
        {
            set { _y_noanswercount = value; }
            get { return _y_noanswercount; }
        }
        /// <summary>
        /// 关机数量
        /// </summary>
        public int? y_ShutDownCount
        {
            set { _y_shutdowncount = value; }
            get { return _y_shutdowncount; }
        }
        #endregion Model

    }
}

