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

namespace RMYY_CallCenter_Api.Model
{
    /// <summary>
    /// T_Dis_WorkOrder:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class T_Dis_WorkOrder
    {
        public T_Dis_WorkOrder()
        { }
        #region Model
        private int _f_id;
        private int? _f_type;
        private string _f_orthertype;
        private string _f_workordercode;
        private int? _f_hosid;
        private int? _f_proposerdeptid;
        private string _f_proposerdeptname;
        private string _f_proposercode;
        private string _f_proposername;
        private string _f_proposerphon;
        private string _f_source;
        private string _f_callid;
        private int? _f_disnum;
        private string _f_itemmessages;
        private string _f_itemcontents;
        private string _f_remark;
        private DateTime? _f_createtime;
        private string _f_createcode;
        private string _f_createname;
        private int? _f_state;
        private string _f_controlmancode;
        private string _f_controlmanname;
        private string _f_transpersoncode;
        private string _f_transperson;
        private string _f_bedposition;
        private string _f_sureman;
        private string _f_suremanname;
        private string _f_suremanphon;
        private int? _f_isdel;
        private string _f_deleteby;
        private DateTime? _f_deletetime;
        private DateTime? _f_finishtime;
        private int? _f_isthird = 0;
        private int? _f_islarge = 0;
        private DateTime? _f_carrytime;
        private string _f_finishman;
        private string _f_finishmanname;
        private string _f_finishmanphon;
        private string _f_finishmantalkie;
        private int? _f_senddeptid;
        private string _f_senddeptname;
        /// <summary>
        /// 
        /// </summary>
        public int F_Id
        {
            set { _f_id = value; }
            get { return _f_id; }
        }
        /// <summary>
        /// 工单类型
        /// </summary>
        public int? F_Type
        {
            set { _f_type = value; }
            get { return _f_type; }
        }
        /// <summary>
        /// 其他配送
        /// </summary>
        public string F_OrtherType
        {
            set { _f_orthertype = value; }
            get { return _f_orthertype; }
        }
        /// <summary>
        /// 工单编号
        /// </summary>
        public string F_WorkOrderCode
        {
            set { _f_workordercode = value; }
            get { return _f_workordercode; }
        }

        /// <summary>
        /// 申请院区
        /// </summary>
        public int? F_HosId
        {
            set { _f_hosid = value; }
            get { return _f_hosid; }
        }
        /// <summary>
        /// 申请科室
        /// </summary>
        public int? F_ProposerDeptId
        {
            set { _f_proposerdeptid = value; }
            get { return _f_proposerdeptid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string F_ProposerDeptName
        {
            set { _f_proposerdeptname = value; }
            get { return _f_proposerdeptname; }
        }
        /// <summary>
        /// 申请人编号
        /// </summary>
        public string F_ProposerCode
        {
            set { _f_proposercode = value; }
            get { return _f_proposercode; }
        }
        /// <summary>
        /// 申请人姓名
        /// </summary>
        public string F_ProposerName
        {
            set { _f_proposername = value; }
            get { return _f_proposername; }
        }
        /// <summary>
        /// 申请人联系电话
        /// </summary>
        public string F_ProposerPhon
        {
            set { _f_proposerphon = value; }
            get { return _f_proposerphon; }
        }
        /// <summary>
        /// 工单来源:电话、PC端、APP
        /// </summary>
        public string F_Source
        {
            set { _f_source = value; }
            get { return _f_source; }
        }
        /// <summary>
        /// 通话记录ID
        /// </summary>
        public string F_CallID
        {
            set { _f_callid = value; }
            get { return _f_callid; }
        }
        /// <summary>
        /// 配送数量
        /// </summary>
        public int? F_DisNum
        {
            set { _f_disnum = value; }
            get { return _f_disnum; }
        }
        /// <summary>
        /// 配送信息
        /// </summary>
        public string F_ItemMessages
        {
            set { _f_itemmessages = value; }
            get { return _f_itemmessages; }
        }
        /// <summary>
        /// 工单内容
        /// </summary>
        public string F_ItemContents
        {
            set { _f_itemcontents = value; }
            get { return _f_itemcontents; }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string F_Remark
        {
            set { _f_remark = value; }
            get { return _f_remark; }
        }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? F_CreateTime
        {
            set { _f_createtime = value; }
            get { return _f_createtime; }
        }
        /// <summary>
        /// 创建人编码
        /// </summary>
        public string F_CreateCode
        {
            set { _f_createcode = value; }
            get { return _f_createcode; }
        }
        /// <summary>
        /// 姓名
        /// </summary>
        public string F_CreateName
        {
            set { _f_createname = value; }
            get { return _f_createname; }
        }
        /// <summary>
        /// 工单状态
        /// </summary>
        public int? F_State
        {
            set { _f_state = value; }
            get { return _f_state; }
        }
        /// <summary>
        /// 调度人
        /// </summary>
        public string F_ControlManCode
        {
            set { _f_controlmancode = value; }
            get { return _f_controlmancode; }
        }
        /// <summary>
        /// 调度人姓名
        /// </summary>
        public string F_ControlManName
        {
            set { _f_controlmanname = value; }
            get { return _f_controlmanname; }
        }
        /// <summary>
        /// 转运人编号
        /// </summary>
        public string F_TransPersonCode
        {
            set { _f_transpersoncode = value; }
            get { return _f_transpersoncode; }
        }
        /// <summary>
        /// 配送转运人
        /// </summary>
        public string F_TransPerson
        {
            set { _f_transperson = value; }
            get { return _f_transperson; }
        }
        /// <summary>
        /// 病床位置
        /// </summary>
        public string F_BedPosition
        {
            set { _f_bedposition = value; }
            get { return _f_bedposition; }
        }
        /// <summary>
        /// 确认人
        /// </summary>
        public string F_SureMan
        {
            set { _f_sureman = value; }
            get { return _f_sureman; }
        }
        /// <summary>
        /// 确认人姓名
        /// </summary>
        public string F_SureManName
        {
            set { _f_suremanname = value; }
            get { return _f_suremanname; }
        }
        /// <summary>
        /// 电话
        /// </summary>
        public string F_SureManPhon
        {
            set { _f_suremanphon = value; }
            get { return _f_suremanphon; }
        }
        /// <summary>
        /// 是否删除
        /// </summary>
        public int? F_IsDel
        {
            set { _f_isdel = value; }
            get { return _f_isdel; }
        }
        /// <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 DateTime? F_FinishTime
        {
            set { _f_finishtime = value; }
            get { return _f_finishtime; }
        }
        /// <summary>
        /// 是否第三方
        /// </summary>
        public int? F_IsThird
        {
            set { _f_isthird = value; }
            get { return _f_isthird; }
        }
        /// <summary>
        /// 是否大件
        /// </summary>
        public int? F_Islarge
        {
            set { _f_islarge = value; }
            get { return _f_islarge; }
        }
        /// <summary>
        /// 搬运时间
        /// </summary>
        public DateTime? F_CarryTime
        {
            set { _f_carrytime = value; }
            get { return _f_carrytime; }
        }
        /// <summary>
        /// 工单确认人
        /// </summary>
        public string F_FinishMan
        {
            set { _f_finishman = value; }
            get { return _f_finishman; }
        }
        /// <summary>
        /// 确认人姓名
        /// </summary>
        public string F_FinishManName
        {
            set { _f_finishmanname = value; }
            get { return _f_finishmanname; }
        }
        /// <summary>
        /// 确认人电话
        /// </summary>
        public string F_FinishManPhon
        {
            set { _f_finishmanphon = value; }
            get { return _f_finishmanphon; }
        }
        /// <summary>
        /// 对讲机
        /// </summary>
        public string F_FinishManTalkie
        {
            set { _f_finishmantalkie = value; }
            get { return _f_finishmantalkie; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? F_SendDeptId
        {
            set { _f_senddeptid = value; }
            get { return _f_senddeptid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string F_SendDeptName
        {
            set { _f_senddeptname = value; }
            get { return _f_senddeptname; }
        }
        #endregion Model

        #region 扩展model
        /// <summary>
        /// 工单状态
        /// </summary>
        public string F_Wostate { get; set; }

        /// <summary>
        /// 工单类型名称
        /// </summary>
        public string F_TypeName { get; set; }
        /// <summary>
        /// 坐席
        /// </summary>
        public string F_SitMan { get; set; }

        public List<T_Dis_WorkOrder> dislist { get; set; }
        /// <summary>
        /// 院区名称
        /// </summary>
        public string HosName { get; set; }

        /// <summary>
        /// 角色编码
        /// </summary>
        public string rolecode { get; set; }
        /// <summary>
        /// 红处方图片
        /// </summary>
        public string RedPic { get; set; }

        //public List<button> buttons { get; set; }

        public string deptcode { get; set; }
        #endregion

    }
}
