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

namespace ConfigurationApi.Model.Dto
{
    /// <summary>
    /// 科室列表
    /// </summary>
    public class DepartmentDto
    {
        /// <summary>
        /// 自增id
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 父级ID
        /// </summary>
        public string parent_id { get; set; }
        /// <summary>
        /// 项目名称id
        /// </summary>
        public string projectid { get; set; }
        public string projectname { get; set; }
        /// <summary>
        /// 楼id
        /// </summary>
        public string building { get; set; }
        public string buildname { get; set; }
        /// <summary>
        /// 楼层名称id
        /// </summary>
        public string floorid { get; set; }
        public string floorname { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string departmenname { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int sortnum { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }
        /// <summary>
        /// 固定电话
        /// </summary>
        public string telephone { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string mobile { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        public string email { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public int isdelete { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime createtime
        {
            get { return _createtime.ToLocalTime(); }
            set { _createtime = value.ToLocalTime(); }
        }
        private DateTime _createtime;
    }

    /// <summary>
    /// 科室详情
    /// </summary>
    public class DepartmentDetailsDto
    {
        /// <summary>
        /// 自增id
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 父级ID
        /// </summary>
        public string parent_id { get; set; }
        /// <summary>
        /// 项目名称id
        /// </summary>
        public string projectid { get; set; }
        public string projectname { get; set; }
        /// <summary>
        /// 楼层名称id
        /// </summary>
        public string floorid { get; set; }
        public string floorname { get; set; }
        /// <summary>
        /// 楼名称id
        /// </summary>
        public string building { get; set; }
        public string buildname { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string departmenname { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int sortnum { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }
        /// <summary>
        /// 固定电话
        /// </summary>
        public string telephone { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string mobile { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        public string email { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public int isdelete { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime createtime
        {
            get { return _createtime.ToLocalTime(); }
            set { _createtime = value.ToLocalTime(); }
        }
        private DateTime _createtime;
    }
}
