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

namespace RMYY_CallCenter_Api.Model
{
    [Serializable]
    /// <summary>
	/// T_Con_WorkOrder:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
    public partial class T_Con_WorkOrder
    {
        public T_Con_WorkOrder()
        { }
        #region Model
        private int _f_id;
        private string _f_workordercode;
        private string _f_source;
        private string _f_customer;
        private int? _f_sex = 0;
        private string _f_cusaddress;
        private string _f_phon;
        private string _f_idcard;
        private string _f_serviceitems;
        private string _f_address;
        private string _f_firstcheckhospital;
        private decimal? _f_nodulesize;
        private DateTime? _f_firstfindtime;
        private int? _f_urgency = 0;
        private string _f_dealopinions;
        private string _f_dealtype;
        private string _f_dealresult;
        private string _f_handleby;
        private DateTime? _f_handletime;
        private string _f_nothandlereasons;
        private string _f_workordercontents;
        private int? _f_respondept;
        private string _f_responperson;
        private string _f_callid;
        private decimal? _f_limittime;
        private int? _f_isreturnbak = 0;
        private DateTime? _f_returnbaktime;
        private int? _f_istimeout = 0;
        private string _f_createuserid;
        private string _f_createuser;
        private DateTime? _f_createtime;
        private int? _f_isdel;
        private string _f_createusername;
        private string _f_deleteby;
        private DateTime? _f_deletetime;
        private int? _f_isaudit = 0;
        private int? _f_auditstate;
        private string _f_audituser;
        private DateTime? _f_audittime;
        private string _f_auditcont;
        private DateTime? _f_appointtime;
        private string _f_answer;
        private string _f_dealcontents;
        private string _f_file;
        private int? _f_satisfaction;
        private int? _f_state;
        private int? _f_type1;
        private int? _f_type2;
        private int? _f_type3;
        private string _f_cathetertype;
        private string _f_catheterdept;
        private DateTime? _f_cathetertime;
        private string _f_bednum;
        private string _f_inpatientnum;
        private string _f_typename1;
        private string _f_typename2;
        private string _f_typename3;
        private string _f_complaintsourcename;


        private int? _f_callrecordid;
        private int? _f_leaverecordid;

        private int? _f_complaintsource;

        private int f_replaycount = 0;
        /// <summary>
        /// 延期次数
        /// </summary>
        public int F_ReplayCount
        {
            set { f_replaycount = value; }
            get { return f_replaycount; }
        }

        public int? F_ComplaintSource
        {
            set { _f_complaintsource = value; }
            get { return _f_complaintsource; }
        }


        public int? F_LeaveRecordId
        {
            set { _f_leaverecordid = value; }
            get { return _f_leaverecordid; }
        }
        public int? F_CallRecordId
        {
            set { _f_callrecordid = value; }
            get { return _f_callrecordid; }
        }

        private DateTime? _f_accepttime;

        public string _f_spendtime;
        private string _f_emergencytypes;
        // 所有工单类型增加紧急字段，为单选（一般、紧急），默认为一般


        public string F_EmergencyTypes

        {
            set { _f_emergencytypes = value; }

            get { return _f_emergencytypes; }

        }

        public DateTime? F_AcceptTime
        {
            set { _f_accepttime = value; }
            get { return _f_accepttime; }
        }


        /// <summary>
        /// 工单ID
        /// </summary>
        public int F_ID
        {
            set { _f_id = value; }
            get { return _f_id; }
        }
        /// <summary>
        /// 工单编号
        /// </summary>
        public string F_WorkOrderCode
        {
            set { _f_workordercode = value; }
            get { return _f_workordercode; }
        }
        /// <summary>
        /// 工单来源:电话、微信业务员、微信客户、官网
        /// </summary>
        public string F_Source
        {
            set { _f_source = value; }
            get { return _f_source; }
        }
        /// <summary>
        /// 报单人姓名
        /// </summary>
        public string F_Customer
        {
            set { _f_customer = value; }
            get { return _f_customer; }
        }
        /// <summary>
        /// 性别：0,男，1女
        /// </summary>
        public int? F_Sex
        {
            set { _f_sex = value; }
            get { return _f_sex; }
        }
        /// <summary>
        /// 地址
        /// </summary>
        public string F_CusAddress
        {
            set { _f_cusaddress = value; }
            get { return _f_cusaddress; }
        }
        /// <summary>
        /// 电话
        /// </summary>
        public string F_Phon
        {
            set { _f_phon = value; }
            get { return _f_phon; }
        }
        /// <summary>
        /// 身份证
        /// </summary>
        public string F_IdCard
        {
            set { _f_idcard = value; }
            get { return _f_idcard; }
        }
        /// <summary>
        /// 服务项目
        /// </summary>
        public string F_ServiceItems
        {
            set { _f_serviceitems = value; }
            get { return _f_serviceitems; }
        }
        /// <summary>
        /// 地区
        /// </summary>
        public string F_Address
        {
            set { _f_address = value; }
            get { return _f_address; }
        }
        /// <summary>
        /// 首次检查医院
        /// </summary>
        public string F_FirstCheckHospital
        {
            set { _f_firstcheckhospital = value; }
            get { return _f_firstcheckhospital; }
        }
        /// <summary>
        /// 肺结节大小
        /// </summary>
        public decimal? F_NoduleSize
        {
            set { _f_nodulesize = value; }
            get { return _f_nodulesize; }
        }
        /// <summary>
        /// 首次发现肺结节时间
        /// </summary>
        public DateTime? F_FirstFindTime
        {
            set { _f_firstfindtime = value; }
            get { return _f_firstfindtime; }
        }
        /// <summary>
        /// 紧急程度:0,常规1，紧急
        /// </summary>
        public int? F_Urgency
        {
            set { _f_urgency = value; }
            get { return _f_urgency; }
        }
        /// <summary>
        /// 处理意见
        /// </summary>
        public string F_DealOpinions
        {
            set { _f_dealopinions = value; }
            get { return _f_dealopinions; }
        }
        /// <summary>
        /// 处理方式:立即办理，提交审核，转派（健康事业部）
        /// </summary>
        public string F_DealType
        {
            set { _f_dealtype = value; }
            get { return _f_dealtype; }
        }
        /// <summary>
        /// 处理结果:已处理，未处理
        /// </summary>
        public string F_DealResult
        {
            set { _f_dealresult = value; }
            get { return _f_dealresult; }
        }
        /// <summary>
        /// 处理人
        /// </summary>
        public string F_HandleBy
        {
            set { _f_handleby = value; }
            get { return _f_handleby; }
        }
        /// <summary>
        /// 处理时间
        /// </summary>
        public DateTime? F_HandleTime
        {
            set { _f_handletime = value; }
            get { return _f_handletime; }
        }
        /// <summary>
        /// 未处理原因
        /// </summary>
        public string F_NotHandleReasons
        {
            set { _f_nothandlereasons = value; }
            get { return _f_nothandlereasons; }
        }
        /// <summary>
        /// 工单内容
        /// </summary>
        public string F_WorkOrderContents
        {
            set { _f_workordercontents = value; }
            get { return _f_workordercontents; }
        }
        /// <summary>
        /// 责任部门
        /// </summary>
        public int? F_ResponDept
        {
            set { _f_respondept = value; }
            get { return _f_respondept; }
        }
        /// <summary>
        /// 责任人
        /// </summary>
        public string F_ResponPerson
        {
            set { _f_responperson = value; }
            get { return _f_responperson; }
        }
        /// <summary>
        /// 通话记录ID
        /// </summary>
        public string F_CallID
        {
            set { _f_callid = value; }
            get { return _f_callid; }
        }
        /// <summary>
        /// 超时时间
        /// </summary>
        public decimal? F_LimitTime
        {
            set { _f_limittime = value; }
            get { return _f_limittime; }
        }
        /// <summary>
        /// 沟通情况
        /// </summary>
        public int? F_IsReturnBak
        {
            set { _f_isreturnbak = value; }
            get { return _f_isreturnbak; }
        }
        /// <summary>
        /// 是否回访
        /// </summary>
        public int ? F_IsVisit { set; get; }
        /// <summary>
        /// 回访时间
        /// </summary>
        public DateTime? F_ReturnBakTime
        {
            set { _f_returnbaktime = value; }
            get { return _f_returnbaktime; }
        }
        /// <summary>
        /// 是否超时
        /// </summary>
        public int? F_IsTimeOut
        {
            set { _f_istimeout = value; }
            get { return _f_istimeout; }
        }
        /// <summary>
        /// 创建人Id
        /// </summary>
        public string F_CreateUserID
        {
            set { _f_createuserid = value; }
            get { return _f_createuserid; }
        }
        /// <summary>
        /// 创建人
        /// </summary>
        public string F_CreateUser
        {
            set { _f_createuser = value; }
            get { return _f_createuser; }
        }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? F_CreateTime
        {
            set { _f_createtime = value; }
            get { return _f_createtime; }
        }
        /// <summary>
        /// 是否删除
        /// </summary>
        public int? F_IsDel
        {
            set { _f_isdel = value; }
            get { return _f_isdel; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string F_CreateUserName
        {
            set { _f_createusername = value; }
            get { return _f_createusername; }
        }
        /// <summary>
        /// 删除人
        /// </summary>
        public string F_DeleteBy
        {
            set { _f_deleteby = value; }
            get { return _f_deleteby; }
        }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? F_DeleteTime
        {
            set { _f_deletetime = value; }
            get { return _f_deletetime; }
        }
        /// <summary>
        /// 是否需要审核
        /// </summary>
        public int? F_IsAudit
        {
            set { _f_isaudit = value; }
            get { return _f_isaudit; }
        }
        /// <summary>
        /// 审核状态（0未审核1同意2拒绝）
        /// </summary>
        public int? F_AuditState
        {
            set { _f_auditstate = value; }
            get { return _f_auditstate; }
        }
        /// <summary>
        /// 审核人工号
        /// </summary>
        public string F_AuditUser
        {
            set { _f_audituser = value; }
            get { return _f_audituser; }
        }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? F_AuditTime
        {
            set { _f_audittime = value; }
            get { return _f_audittime; }
        }
        /// <summary>
        /// 审核内容
        /// </summary>
        public string F_AuditCont
        {
            set { _f_auditcont = value; }
            get { return _f_auditcont; }
        }
        /// <summary>
        /// 派单时间
        /// </summary>
        public DateTime? F_AppointTime
        {
            set { _f_appointtime = value; }
            get { return _f_appointtime; }
        }
        /// <summary>
        /// 回复内容
        /// </summary>
        public string F_Answer
        {
            set { _f_answer = value; }
            get { return _f_answer; }
        }
        /// <summary>
        /// 处理内容
        /// </summary>
        public string F_DealContents
        {
            set { _f_dealcontents = value; }
            get { return _f_dealcontents; }
        }
        /// <summary>
        /// 附件Id
        /// </summary>
        public string F_File
        {
            set { _f_file = value; }
            get { return _f_file; }
        }
        /// <summary>
        /// 满意度：0满意，1一般，2不满意
        /// </summary>
        public int? F_Satisfaction
        {
            set { _f_satisfaction = value; }
            get { return _f_satisfaction; }
        }
        /// <summary>
        /// 工单状态
        /// </summary>
        public int? F_State
        {
            set { _f_state = value; }
            get { return _f_state; }
        }
        /// <summary>
        /// 工单类型：1健康咨询，2投诉建议，3外聘专家咨询，4家庭预约上门,5静脉置管维护
        /// </summary>
        public int? F_type1
        {
            set { _f_type1 = value; }
            get { return _f_type1; }
        }
        /// <summary>
        ///     子类型：疫苗，体检，药品，活动等
        /// </summary>
        public int? F_type2
        {
            set { _f_type2 = value; }
            get { return _f_type2; }
        }
        /// <summary>
        ///  三级分类：
        /// </summary>
        public int? F_type3
        {
            set { _f_type3 = value; }
            get { return _f_type3; }
        }
        /// <summary>
        /// 置管类型:PICC/中长导管
        /// </summary>
        public string F_Cathetertype
        {
            set { _f_cathetertype = value; }
            get { return _f_cathetertype; }
        }
        /// <summary>
        /// 置管科室
        /// </summary>
        public string F_Catheterdept
        {
            set { _f_catheterdept = value; }
            get { return _f_catheterdept; }
        }
        /// <summary>
        /// 置管时间
        /// </summary>
        public DateTime? F_Cathetertime
        {
            set { _f_cathetertime = value; }
            get { return _f_cathetertime; }
        }
        /// <summary>
        /// 床号
        /// </summary>
        public string F_BedNum
        {
            set { _f_bednum = value; }
            get { return _f_bednum; }
        }
        /// <summary>
        /// 住院号
        /// </summary>
        public string F_InpatientNum
        {
            set { _f_inpatientnum = value; }
            get { return _f_inpatientnum; }
        }
        /// <summary>
        /// 与患者关系
        /// </summary>
        public string F_Relationship { set; get; }
        /// <summary>
        /// 患者姓名
        /// </summary>
        public string F_FullName { set; get; }
        /// <summary>
        /// 患者身份证号
        /// </summary>
        public string F_IDNumber { set; get; }
        /// <summary>
        /// 投诉部门
        /// </summary>
        public int ? F_ComplaintDept { set; get; }
        /// <summary>
        /// 投诉人
        /// </summary>
        public string F_ComplaintUser { set; get; }
        /// <summary>
        /// 预约时间
        /// </summary>
        public DateTime ? F_AppointmentTime { set; get; }
        #endregion Model

        #region 扩展
        /// <summary>
        /// 工单类型名称
        /// </summary>
        public string  typename1
        {
            set { _f_typename1 = value; }
            get { return _f_typename1; }
        }
        public string typename2
        {
            set { _f_typename2 = value; }
            get { return _f_typename2; }
        }
        public string typename3
        {
            set { _f_typename3 = value; }
            get { return _f_typename3; }
        }

        public string SpendTime
        {
            set { _f_spendtime = value; }
            get { return _f_spendtime; }
        }


        public string  ComplaintSourceName
        {
            set { _f_complaintsourcename = value; }
            get { return _f_complaintsourcename; }
        }

        /// <summary>
        /// 工单状态名称
        /// </summary>
        public string Wostate { get; set; }
        #endregion
    }
}
