using System;
namespace CallCenterApi.Model
{
    /// <summary>
    /// T_Wo_WorkOrder:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class T_Wo_WorkOrder
    {
        public T_Wo_WorkOrder()
        { }
        #region Model
        private long _id;
        private string _workorderid;
        private int? _type;
        private int? _typeclass;
        private string _title;
        private string _detail;
        private string _files;
        private int? _respondept;
        private string _responuser;
        private string _callid;
        private int? _customerid;
        private string _customer;
        private string _customertel;
        private string _province;
        private string _city;
        private string _county;
        private string _address;
        private string _source;
        private string _answer;
        private int? _state;
        private string _lastdealuser;
        private DateTime? _lastdealtime;
        private int? _isreturn;
        private decimal? _limittime;
        private int? _isreturnbak;
        private DateTime? _returnbaktime;
        private int? _istimeout;
        private int? _isusersend;
        private int? _isadminsend;
        private string _createuser;
        private DateTime? _createtime;
        private int? _isdel;
        private string _deluser;
        private DateTime? _deltime;
        private int? _isaudit;
        private int? _auditstate;
        private string _audituser;
        private DateTime? _audittime;
        private string _auditcont;
        private DateTime? _appointtime;
        private string _clcontent;
        private string _infotype;
        private int? _infotypeid = 0;
        private int? _isreward = 0;
        private string _rewardamount;
        private string _rewardtime;
        private int? _unitid;
        private string _unit;

        private string _infotypedetail;
        private int? _infotypedetailid = 0;
        private int? _isrestore = 0;

        public int? IsRestore
        {
            set { _isrestore = value; }
            get { return _isrestore; }
        }


        /// <summary>
        /// 热点问题小项
        /// </summary>
        public string  InfoTypeDetail
        {
            set { _infotypedetail = value; }
            get { return _infotypedetail; }
        }
        /// <summary>
        /// 信息分类ID
        /// </summary>
        public int? InfoTypeDetailID
        {
            set { _infotypedetailid = value; }
            get { return _infotypedetailid; }
        }



        /// <summary>
        /// 工单ID
        /// </summary>
        public long ID
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 工单编号
        /// </summary>
        public string WorkOrderID
        {
            set { _workorderid = value; }
            get { return _workorderid; }
        }
        /// <summary>
        /// 工单类型
        /// </summary>
        public int? Type
        {
            set { _type = value; }
            get { return _type; }
        }
        /// <summary>
        /// 工单类型分类
        /// </summary>
        public int? TypeClass
        {
            set { _typeclass = value; }
            get { return _typeclass; }
        }
        /// <summary>
        /// 工单标题
        /// </summary>
        public string Title
        {
            set { _title = value; }
            get { return _title; }
        }
        /// <summary>
        /// 工单内容
        /// </summary>
        public string Detail
        {
            set { _detail = value; }
            get { return _detail; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Files
        {
            set { _files = value; }
            get { return _files; }
        }
        /// <summary>
        /// 责任部门
        /// </summary>
        public int? ResponDept
        {
            set { _respondept = value; }
            get { return _respondept; }
        }
        /// <summary>
        /// 责任人
        /// </summary>
        public string ResponUser
        {
            set { _responuser = value; }
            get { return _responuser; }
        }
        /// <summary>
        /// 通话记录ID
        /// </summary>
        public string CallID
        {
            set { _callid = value; }
            get { return _callid; }
        }
        /// <summary>
        /// 客户ID
        /// </summary>
        public int? CustomerID
        {
            set { _customerid = value; }
            get { return _customerid; }
        }
        /// <summary>
        /// 客户名称
        /// </summary>
        public string Customer
        {
            set { _customer = value; }
            get { return _customer; }
        }
        /// <summary>
        /// 客户电话
        /// </summary>
        public string CustomerTel
        {
            set { _customertel = value; }
            get { return _customertel; }
        }
        /// <summary>
        /// 省
        /// </summary>
        public string Province
        {
            set { _province = value; }
            get { return _province; }
        }
        /// <summary>
        /// 市
        /// </summary>
        public string City
        {
            set { _city = value; }
            get { return _city; }
        }
        /// <summary>
        /// 县
        /// </summary>
        public string County
        {
            set { _county = value; }
            get { return _county; }
        }
        /// <summary>
        /// 客户地址
        /// </summary>
        public string Address
        {
            set { _address = value; }
            get { return _address; }
        }
        /// <summary>
        /// 工单来源
        /// </summary>
        public string Source
        {
            set { _source = value; }
            get { return _source; }
        }
        /// <summary>
        /// 回复内容
        /// </summary>
        public string Answer
        {
            set { _answer = value; }
            get { return _answer; }
        }
        /// <summary> 
        /// 工单状态  1 是已指派 '2'已完成 
        /// </summary>
        public int? State
        {
            set { _state = value; }
            get { return _state; }
        }
        /// <summary>
        /// 最后处理人
        /// </summary>
        public string LastDealUser
        {
            set { _lastdealuser = value; }
            get { return _lastdealuser; }
        }
        /// <summary>
        /// 最后处理时间
        /// </summary>
        public DateTime? LastDealTime
        {
            set { _lastdealtime = value; }
            get { return _lastdealtime; }
        }
        /// <summary>
        /// 是否需要回访
        /// </summary>
        public int? IsReturn
        {
            set { _isreturn = value; }
            get { return _isreturn; }
        }
        /// <summary>
        /// 超时时间
        /// </summary>
        public decimal? LimitTime
        {
            set { _limittime = value; }
            get { return _limittime; }
        }
        /// <summary>
        /// 是否已经回访
        /// </summary>
        public int? IsReturnBak
        {
            set { _isreturnbak = value; }
            get { return _isreturnbak; }
        }
        /// <summary>
        /// 回访时间
        /// </summary>
        public DateTime? ReturnBakTime
        {
            set { _returnbaktime = value; }
            get { return _returnbaktime; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? IsTimeOut
        {
            set { _istimeout = value; }
            get { return _istimeout; }
        }
        /// <summary>
        /// 用户是否公开
        /// </summary>
        public int? IsUserSend
        {
            set { _isusersend = value; }
            get { return _isusersend; }
        }
        /// <summary>
        /// 后台是否公开
        /// </summary>
        public int? IsAdminSend
        {
            set { _isadminsend = value; }
            get { return _isadminsend; }
        }
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateUser
        {
            set { _createuser = value; }
            get { return _createuser; }
        }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime
        {
            set { _createtime = value; }
            get { return _createtime; }
        }
        /// <summary>
        /// 是否删除（0为未删除，1为删除）
        /// </summary>
        public int? IsDel
        {
            set { _isdel = value; }
            get { return _isdel; }
        }
        /// <summary>
        /// 删除人
        /// </summary>
        public string DelUser
        {
            set { _deluser = value; }
            get { return _deluser; }
        }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DelTime
        {
            set { _deltime = value; }
            get { return _deltime; }
        }
        /// <summary>
        /// 是否需要审核
        /// </summary>
        public int? IsAudit
        {
            set { _isaudit = value; }
            get { return _isaudit; }
        }
        /// <summary>
        /// 审核状态（0未审核1同意2拒绝）
        /// </summary>
        public int? AuditState
        {
            set { _auditstate = value; }
            get { return _auditstate; }
        }
        /// <summary>
        /// 审核人工号这里用于 处理人的工号
        /// </summary>
        public string AuditUser
        {
            set { _audituser = value; }
            get { return _audituser; }
        }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? AuditTime
        {
            set { _audittime = value; }
            get { return _audittime; }
        }
        /// <summary>
        /// 审核意见
        /// </summary>
        public string AuditCont
        {
            set { _auditcont = value; }
            get { return _auditcont; }
        }
        /// <summary>
        /// 派单时间
        /// </summary>
        public DateTime? AppointTime
        {
            set { _appointtime = value; }
            get { return _appointtime; }
        }

        /// <summary>
        /// 处理内容
        /// </summary>
        public string Clcontent
        {
            get
            {
                return _clcontent;
            }

            set
            {
                _clcontent = value;
            }
        }
        /// <summary>
		/// 信息分类
		/// </summary>
		public string InfoType
        {
            set { _infotype = value; }
            get { return _infotype; }
        }
        /// <summary>
        /// 信息分类ID
        /// </summary>
        public int? InfoTypeID
        {
            set { _infotypeid = value; }
            get { return _infotypeid; }
        }
        /// <summary>
        /// 是否上报奖励
        /// </summary>
        public int? ISReward
        {
            set { _isreward = value; }
            get { return _isreward; }
        }
        /// <summary>
        /// 奖励金额
        /// </summary>
        public string RewardAmount
        {
            set { _rewardamount = value; }
            get { return _rewardamount; }
        }
        /// <summary>
        /// 奖励时间
        /// </summary>
        public string RewardTime
        {
            set { _rewardtime = value; }
            get { return _rewardtime; }
        }
        /// <summary>
        /// 交办单位ID
        /// </summary>
        public int? UnitID
        {
            set { _unitid = value; }
            get { return _unitid; }
        }
        /// <summary>
        /// 交办单位
        /// </summary>
        public string Unit
        {
            set { _unit = value; }
            get { return _unit; }
        }

        #region 息县调查需要字段
        //20180502 zhengbingbing
        //        工单编号
        //工单来源 Source
        //工单状态 State
        //姓 名 Customer
        //电 话 CustomerTel
        //调查时间 InqTime
        //调查员  InqUser
        //信息分类 InfoType
        //交办单位 Unit
        //县镇 country
        //住 址 Address
        //反映问题：问题里不安全、不满意原因；多选题和选中答案直接同步过来 Detail(工单内容)
        //问题处理情况 Clcontent
        //回访反馈情况 Answer
        //备注 Remark
        //调查对象签字
        //调查人签字
        //回访人签字
        private int? _wjid;
        private DateTime? _inqtime;
        private string _inquser;
        private string _remark;
        /// <summary>
        /// 关联的问卷id
        /// </summary>
        public int? WjID
        {
            set { _wjid = value; }
            get { return _wjid; }
        }
        /// <summary>
        /// 调查时间
        /// </summary>
        public DateTime? Inqtime
        {
            get
            {
                return _inqtime;
            }

            set
            {
                _inqtime = value;
            }
        }
        /// <summary>
        /// 调查员
        /// </summary>
        public string Inquser
        {
            get
            {
                return _inquser;
            }

            set
            {
                _inquser = value;
            }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark
        {
            get{ return _remark; }
            set{ _remark = value; }
        }
        #endregion
        #endregion Model

    }
}

