using System;
using System.Collections.Generic;

namespace ZXDT.CallCenter.Model
{
    /// <summary>
    /// T_Wo_WorkOrderBase:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class T_Wo_WorkOrderBase
    {

        #region Model
        private int _f_workorderid;
        private int? _f_workordertypeid;
        private int? _f_workorderstateid;
        private string _f_code;
        private string _f_workordername;
        private string _f_number;
        private string _f_customername;
        private string _f_customertelephone;
        private string _f_linkman;
        private string _f_linkmantelephone;
        private string _f_adslaccount;
        private string _f_bandwidth;
        private string _f_standardaddress;
        private string _f_installaddress;
        private string _f_kshaddresscode;
        private string _f_province;
        private string _f_city;
        private string _f_area;
        private string _f_road;
        private string _f_housing;
        private string _f_workorderfrom;
        private int? _f_workorderlevelid;
        private int? _f_fileflag;
        private string _f_content;
        private int? _f_createby;
        private DateTime? _f_createdate;
        private string _f_deptcode;
        private string _f_empcode;
        private int? _f_deptid;
        private int? _f_userid;
        private string _f_username;
        private int? _f_returnvisitflag;
        private int? _f_returnvisitstate;
        private int? _f_returnvisitresult;
        private string _f_returnvisitcontent;
        private int? _f_deleteflag;
        private int? _f_allusetimes;
        private DateTime? _f_starttime;
        private DateTime? _f_endtime;
        private DateTime? _f_remaindertime;
        private DateTime? _f_remainderendtime;
        private DateTime? _f_subscribetime1;
        private DateTime? _f_subscribetime2;
        private DateTime? _f_accepttimelimit;
        private DateTime? _f_askfinishtime;
        private int? _f_overtimes;
        private int? _f_formid;
        private int? _f_hastencounts;
        private decimal? _f_rangeid;
        private decimal? _f_rangex;
        private decimal? _f_rangey;
        private int? _f_instanceid;
        private int? _f_customerid;
        private int? _f_repairmanid;
        private string _f_repairmanname;
        private string _f_repairmanphone;
        private string _f_repairrequest;
        private int? _f_repairclosemanid;
        private string _f_repairclosemanname;
        private string _f_repairclosereasons;
        private int? _f_repairclosereptid;
        private string _f_repaircloserept;
        private int? _f_repairlevel;
        private string _f_repairlevelname;
        private DateTime? _f_sentordertime;
        private string _f_userphone;
        private DateTime? _f_returnvisittime;
        private DateTime? _f_requestservicetime;
        private string _f_servicetype;
        private decimal? _f_declarationtime;
        private string _f_servicenature;
        private string _f_serviceway;
        private string _f_returnvisitman;
        private int? _f_returnvisitid;
        private string _f_returnvisitopinion;
        private string _f_returnvisitproblem;

        private int? _f_customernatureid;
        private string _f_customernature;
        private string _f_systemtype;
        private string _f_chargedept;
        private DateTime? _f_qualityguaranteeendtime;
        private DateTime? _f_systemstarttime;
        private string _f_customerclass;
        private string _f_aftersalename;
        private string _f_servicedept;

        private string _f_name;

        private string _f_typename;

        private string _f_useraccountname;

        private int? _F_CallId;
        private string _F_CREATEBYids;
        private string  _f_cancel;

        #endregion Model
        #region 使用字段
        /// <summary>
        /// 工单Id
        /// </summary>
        public int F_WORKORDERID
        {
            set { _f_workorderid = value; }
            get { return _f_workorderid; }
        }


        /// <summary>
        /// 工单编号
        /// </summary>
        public string F_CODE
        {
            set { _f_code = value; }
            get { return _f_code; }
        }



        /// <summary>
        /// 客户ID
        /// </summary>
        public int? F_CUSTOMERID
        {
            set { _f_customerid = value; }
            get { return _f_customerid; }
        }
        /// <summary>
        /// 客户名称
        /// </summary>
        public string F_CUSTOMERNAME
        {
            set { _f_customername = value; }
            get { return _f_customername; }
        }

        /// <summary>
        /// 流转多个部门人员Id字符串
        /// </summary>
        public string F_CREATEBYids
        {
            set { _F_CREATEBYids = value; }
            get { return _F_CREATEBYids; }
        }
        /// <summary>
        /// 客户电话
        /// </summary>
        public string F_CUSTOMERTELEPHONE
        {
            set { _f_customertelephone = value; }
            get { return _f_customertelephone; }
        }
        /// <summary>
        /// 归属地
        /// </summary>
        public string F_STANDARDADDRESS
        {
            set { _f_standardaddress = value; }
            get { return _f_standardaddress; }
        }
        /// <summary>
        /// 工单来源ID  接入渠道 1语音 2留言  3微信 4微博
        /// </summary>
        public int? F_REPAIRMANID
        {
            set { _f_repairmanid = value; }
            get { return _f_repairmanid; }
        }
        /// <summary>
        /// 工单来源
        /// </summary>
        public string F_WORKORDERFROM
        {
            set { _f_workorderfrom = value; }
            get { return _f_workorderfrom; }
        }

        /// <summary>
        /// 概要
        /// </summary>
        public string F_RETURNVISITPROBLEM
        {
            set { _f_returnvisitproblem = value; }
            get { return _f_returnvisitproblem; }
        }  /// <summary>

        /// <summary>
        /// 通话记录Id
        /// </summary>
        public int? F_CallId
        {
            set { _F_CallId = value; }
            get { return _F_CallId; }
        }


        /// <summary>
        /// 业务类别 20210715 -- 3 投诉 6 咨询 14 建议 18表扬 19挂失
        /// </summary>
        public int? F_FILEFLAG
        {
            set { _f_fileflag = value; }
            get { return _f_fileflag; }
        }
        /// <summary>
        ///业务类别名称 ：咨询 投诉 表扬 建议 挂失
        /// </summary>
        public string F_HOUSING
        {
            set { _f_housing = value; }
            get { return _f_housing; }
        }
        /// <summary>
        /// 业务类型id  T_Wo_WorkOrderType表的id
        /// </summary>
        public int? F_REPAIRLEVEL
        {
            set { _f_repairlevel = value; }
            get { return _f_repairlevel; }
        }


        /// <summary>
        /// 业务类型名称 ：选的最小类的名称 例如：投诉安检工作人员
        /// </summary>
        public string F_ADSLACCOUNT
        {
            set { _f_adslaccount = value; }
            get { return _f_adslaccount; }
        }
        /// <summary>
        /// 事发车站id
        /// </summary>
        public int? F_WORKORDERLEVELID
        {
            set { _f_workorderlevelid = value; }
            get { return _f_workorderlevelid; }
        }


        /// <summary>
        /// 事发车站名称
        /// </summary>
        public string F_WORKORDERNAME
        {
            set { _f_workordername = value; }
            get { return _f_workordername; }
        }
        /// <summary>
        /// 内容
        /// </summary>
        public string F_CONTENT
        {
            set { _f_content = value; }
            get { return _f_content; }
        }
        /// <summary>
        /// 处理方式  1转单 3客服处理
        /// </summary>
        public int? F_WORKORDERTYPEID
        {
            set { _f_workordertypeid = value; }
            get { return _f_workordertypeid; }
        }


        /// <summary>
        /// 处理方式名称
        /// </summary>
        public string F_INSTALLADDRESS
        {
            set { _f_installaddress = value; }
            get { return _f_installaddress; }
        }
        /// <summary>
        /// 坐席id
        /// </summary>
        public int? F_USERID
        {
            set { _f_userid = value; }
            get { return _f_userid; }
        }
        /// <summary>
        /// 坐席工号
        /// </summary>
        public string F_LINKMAN
        {
            set { _f_linkman = value; }
            get { return _f_linkman; }
        }
        /// <summary>
        /// 坐席名称
        /// </summary>
        public string F_REPAIRMANNAME
        {
            set { _f_repairmanname = value; }
            get { return _f_repairmanname; }
        }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? F_CREATEDATE
        {
            set { _f_createdate = value; }
            get { return _f_createdate; }
        }




        /// <summary>
        /// 0未处理 1处理中  2已办结（结束） 3待回访 4待定责 5已定责，已处理
        /// 新加的：8待处理撤回审批中(转办)  9 待定责撤回审批中（客服处理和转办）   10 已处理撤回审批中（客服处理） 
        /// </summary>
        public int? F_WORKORDERSTATEID
        {
            set { _f_workorderstateid = value; }
            get { return _f_workorderstateid; }
        }


        /// <summary>
        /// 工单状态名称
        /// </summary>
        public string F_REPAIRREQUEST
        {
            set { _f_repairrequest = value; }
            get { return _f_repairrequest; }
        }


        /// <summary>
        /// 受理部门Id
        /// </summary>
        public int? F_DEPTID
        {
            set { _f_deptid = value; }
            get { return _f_deptid; }
        }
        /// <summary>
        /// 对接受理部门
        /// </summary>
        public string F_DEPTCODE
        {
            set { _f_deptcode = value; }
            get { return _f_deptcode; }
        }

        /// <summary>
        /// 对接受理人员
        /// </summary>
        public int? F_CREATEBY
        {
            set { _f_createby = value; }
            get { return _f_createby; }
        }

        /// <summary>
        /// 受理人员姓名
        /// </summary>
        public string F_USERNAME
        {
            set { _f_username = value; }
            get { return _f_username; }
        }


        /// <summary>
        /// 要求处理部门的【回复】时间
        /// </summary>
        public DateTime? F_REQUESTSERVICETIME
        {
            set { _f_requestservicetime = value; }
            get { return _f_requestservicetime; }
        }

        /// <summary>
        /// 回复内容
        /// </summary>
        public string F_RETURNVISITCONTENT
        {
            set { _f_returnvisitcontent = value; }
            get { return _f_returnvisitcontent; }
        }
        /// <summary>
        /// 是否回访 0 不回访 1 回访
        /// </summary>
        public int? F_RETURNVISITFLAG
        {
            set { _f_returnvisitflag = value; }
            get { return _f_returnvisitflag; }
        }

        /// <summary>
        /// 计划回访时间
        /// </summary>
        public DateTime? F_RETURNVISITTIME
        {
            set { _f_returnvisittime = value; }
            get { return _f_returnvisittime; }
        }

        /// <summary>
        /// 工单流转id
        /// </summary>
        public int? F_FORMID
        {
            set { _f_formid = value; }
            get { return _f_formid; }
        }


        /// <summary>
        /// 微信号码/微博号码
        /// </summary>
        public string F_EMPCODE
        {
            set { _f_empcode = value; }
            get { return _f_empcode; }
        }


        /// <summary>
        ///
        /// </summary>
        public string F_SystemType
        {
            set { _f_systemtype = value; }
            get { return _f_systemtype; }
        }

        /// <summary>
        ///  微信/微博聊天记录
        /// </summary>
        public string F_SERVICEWAY
        {
            set { _f_serviceway = value; }
            get { return _f_serviceway; }
        }

        #endregion 

        /// <summary>
        /// 回访时 录入回访时间
        /// </summary>
        public DateTime? F_REMAINDERENDTIME
        {
            set { _f_remainderendtime = value; }
            get { return _f_remainderendtime; }
        }

        /// <summary>
        /// 回访内容
        /// </summary>
        public string F_RETURNVISITOPINION
        {
            set { _f_returnvisitopinion = value; }
            get { return _f_returnvisitopinion; }
        }


        /// <summary>
        /// 满意度Code
        /// </summary>
        public int? F_RETURNVISITRESULT
        {
            set { _f_returnvisitresult = value; }
            get { return _f_returnvisitresult; }
        }

        /// <summary>
        /// 原为满意度，前端没有用，后用作定责人员
        /// </summary>
        public string F_ROAD
        {
            set { _f_road = value; }
            get { return _f_road; }
        }

        //客户信息
        public T_Cus_CustomerBase CustomerBaseModel { get; set; }
        #region 其他

        /// <summary>
        /// 客户属性
        /// </summary>
        public string F_CustomerNature
        {
            set { _f_customernature = value; }
            get { return _f_customernature; }
        }

        /// <summary>
        /// 
        /// </summary>
        public string F_TypeName
        {
            set { _f_typename = value; }
            get { return _f_typename; }
        }
        /// <summary>
        /// 客户ID
        /// </summary>
        public int? F_CustomerNatureID
        {
            set { _f_customernatureid = value; }
            get { return _f_customernatureid; }
        }
        /// <summary>
        /// 负责部门
        /// </summary>
        public string F_ChargeDept
        {
            set { _f_chargedept = value; }
            get { return _f_chargedept; }
        }
        /// <summary>
        /// 质保结束时间
        /// </summary>
        public DateTime? F_QualityGuaranteeEndTime
        {
            set { _f_qualityguaranteeendtime = value; }
            get { return _f_qualityguaranteeendtime; }
        }

        /// <summary>
        /// 客户等级
        /// </summary>
        public string F_CustomerClass
        {
            set { _f_customerclass = value; }
            get { return _f_customerclass; }
        }

        /// <summary>
        /// 售后负责人
        /// </summary>
        public string F_AfterSaleName
        {
            set { _f_aftersalename = value; }
            get { return _f_aftersalename; }
        }
        /// <summary>
        /// 客户所属部门
        /// </summary>
        public string F_ServiceDept
        {
            set { _f_servicedept = value; }
            get { return _f_servicedept; }
        }






        /// <summary>
        /// 工单流水
        /// </summary>
        public string F_NUMBER
        {
            set { _f_number = value; }
            get { return _f_number; }
        }


        /// <summary>
        /// 联系人电话
        /// </summary>
        public string F_LINKMANTELEPHONE
        {
            set { _f_linkmantelephone = value; }
            get { return _f_linkmantelephone; }
        }

        /// <summary>
        /// 带宽
        /// </summary>
        public string F_BANDWIDTH
        {
            set { _f_bandwidth = value; }
            get { return _f_bandwidth; }
        }

        /// <summary>
        /// 可视化系统对应网格
        /// </summary>
        public string F_KSHADDRESSCODE
        {
            set { _f_kshaddresscode = value; }
            get { return _f_kshaddresscode; }
        }
        /// <summary>
        /// 坐席名称
        /// </summary>
        public string F_UserAccountName
        {
            set { _f_useraccountname = value; }
            get { return _f_useraccountname; }
        }

        /// <summary>
        /// 省
        /// </summary>
        public string F_PROVINCE
        {
            set { _f_province = value; }
            get { return _f_province; }
        }
        /// <summary>
        /// 市
        /// </summary>
        public string F_CITY
        {
            set { _f_city = value; }
            get { return _f_city; }
        }
        /// <summary>
        /// 区、县
        /// </summary>
        public string F_AREA
        {
            set { _f_area = value; }
            get { return _f_area; }
        }




        /// <summary>
        /// 回访状态
        /// </summary>
        public int? F_RETURNVISITSTATE
        {
            set { _f_returnvisitstate = value; }
            get { return _f_returnvisitstate; }
        }

        /// <summary>
        /// 删除标志
        /// </summary>
        public int? F_DELETEFLAG
        {
            set { _f_deleteflag = value; }
            get { return _f_deleteflag; }
        }
        /// <summary>
        /// 总耗时
        /// </summary>
        public int? F_ALLUSETIMES
        {
            set { _f_allusetimes = value; }
            get { return _f_allusetimes; }
        }
        /// <summary>
        /// 工单开始时间
        /// </summary>
        public DateTime? F_STARTTIME
        {
            set { _f_starttime = value; }
            get { return _f_starttime; }
        }
        /// <summary>
        /// 工单结束时间
        /// </summary>
        public DateTime? F_ENDTIME
        {
            set { _f_endtime = value; }
            get { return _f_endtime; }
        }
        /// <summary>
        /// 告警时间
        /// </summary>
        public DateTime? F_REMAINDERTIME
        {
            set { _f_remaindertime = value; }
            get { return _f_remaindertime; }
        }
        /// <summary>
        /// 告警消除时间
        /// </summary>

        public DateTime? F_SystemStartTime
        {
            set { _f_systemstarttime = value; }
            get { return _f_systemstarttime; }
        }
        /// <summary>
        /// 一次预约时间
        /// </summary>
        public DateTime? F_SUBSCRIBETIME1
        {
            set { _f_subscribetime1 = value; }
            get { return _f_subscribetime1; }
        }
        /// <summary>
        /// 二次预约时间
        /// </summary>
        public DateTime? F_SUBSCRIBETIME2
        {
            set { _f_subscribetime2 = value; }
            get { return _f_subscribetime2; }
        }
        /// <summary>
        /// 受理时限
        /// </summary>
        public DateTime? F_ACCEPTTIMELIMIT
        {
            set { _f_accepttimelimit = value; }
            get { return _f_accepttimelimit; }
        }
        /// <summary>
        /// 要求完成时间
        /// </summary>
        public DateTime? F_ASKFINISHTIME
        {
            set { _f_askfinishtime = value; }
            get { return _f_askfinishtime; }
        }
        /// <summary>
        /// 超时时长
        /// </summary>
        public int? F_OVERTIMES
        {
            set { _f_overtimes = value; }
            get { return _f_overtimes; }
        }

        /// <summary>
        /// 催办次数 定责次数
        /// </summary>
        public int? F_HASTENCOUNTS
        {
            set { _f_hastencounts = value; }
            get { return _f_hastencounts; }
        }
        /// <summary>
        /// 可视化网格ID
        /// </summary>
        public decimal? F_RANGEID
        {
            set { _f_rangeid = value; }
            get { return _f_rangeid; }
        }
        /// <summary>
        /// 网格坐标X(纬度)
        /// </summary>
        public decimal? F_RANGEX
        {
            set { _f_rangex = value; }
            get { return _f_rangex; }
        }
        /// <summary>
        /// 网格坐标Y(经度)
        /// </summary>
        public decimal? F_RANGEY
        {
            set { _f_rangey = value; }
            get { return _f_rangey; }
        }
        /// <summary>
        /// 工单实例Id
        /// </summary>
        public int? F_INSTANCEID
        {
            set { _f_instanceid = value; }
            get { return _f_instanceid; }
        }



        /// <summary>
        /// 报修人联系方式
        /// </summary>
        public string F_REPAIRMANPHONE
        {
            set { _f_repairmanphone = value; }
            get { return _f_repairmanphone; }
        }
        ///// <summary>
        ///// 报修要求
        ///// </summary>
        //public string F_REPAIRREQUEST
        //{
        //    set { _f_repairrequest = value; }
        //    get { return _f_repairrequest; }
        //}
        /// <summary>
        /// 报修关闭人ID
        /// </summary>
        public int? F_REPAIRCLOSEMANID
        {
            set { _f_repairclosemanid = value; }
            get { return _f_repairclosemanid; }
        }
        /// <summary>
        /// 报修关闭人名字
        /// </summary>
        public string F_REPAIRCLOSEMANNAME
        {
            set { _f_repairclosemanname = value; }
            get { return _f_repairclosemanname; }
        }
        /// <summary>
        /// 报修关闭原因
        /// </summary>
        public string F_REPAIRCLOSEREASONS
        {
            set { _f_repairclosereasons = value; }
            get { return _f_repairclosereasons; }
        }
        /// <summary>
        /// 报修关闭人部门ID
        /// </summary>
        public int? F_REPAIRCLOSEREPTID
        {
            set { _f_repairclosereptid = value; }
            get { return _f_repairclosereptid; }
        }
        /// <summary>
        /// 报修关闭人部门名称
        /// </summary>
        public string F_REPAIRCLOSEREPT
        {
            set { _f_repaircloserept = value; }
            get { return _f_repaircloserept; }
        }

        /// <summary>
        /// 报修级别名称
        /// </summary>
        public string F_REPAIRLEVELNAME
        {
            set { _f_repairlevelname = value; }
            get { return _f_repairlevelname; }
        }
        /// <summary>
        /// 派单时间
        /// </summary>
        public DateTime? F_SENTORDERTIME
        {
            set { _f_sentordertime = value; }
            get { return _f_sentordertime; }
        }
        /// <summary>
        /// 受理人员电话
        /// </summary>
        public string F_USERPHONE
        {
            set { _f_userphone = value; }
            get { return _f_userphone; }
        }

        /// <summary>
        /// 服务类型
        /// </summary>
        public string F_SERVICETYPE
        {
            set { _f_servicetype = value; }
            get { return _f_servicetype; }
        }
        /// <summary>
        /// 申报工时
        /// </summary>
        public decimal? F_DECLARATIONTIME
        {
            set { _f_declarationtime = value; }
            get { return _f_declarationtime; }
        }
        /// <summary>
        /// 工单状态名称
        /// </summary>
        public string F_Name
        {
            set { _f_name = value; }
            get { return _f_name; }
        }
        /// <summary>
        /// 服务性质
        /// </summary>
        public string F_SERVICENATURE
        {
            set { _f_servicenature = value; }
            get { return _f_servicenature; }
        }

        /// <summary>
        /// 回访人
        /// </summary>
        public string F_RETURNVISITMAN
        {
            set { _f_returnvisitman = value; }
            get { return _f_returnvisitman; }
        }
        /// <summary>
        /// 回访人ID
        /// </summary>
        public int? F_RETURNVISITID
        {
            set { _f_returnvisitid = value; }
            get { return _f_returnvisitid; }
        }
  
        #endregion

        public List<T_Wo_WorkOrderHistory> HistoryOrderList { get;set;}

    }
}

