using MadRunFabric.Common;
using System;
using System.Collections.Generic;
using System.Text;

namespace EquipmentApi.Model.Dto
{
    /// <summary>
    /// 项目列表
    /// </summary>
    public class Pro_ProjectDto
    {
        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 项目名称
        /// </summary>
        public string project_name { get; set; }
        /// <summary>
        /// 项目所在省
        /// </summary>
        public string project_province { get; set; }
        public string provincename { get; set; }
        /// <summary>
        /// 项目所在市
        /// </summary>
        public string project_city { get; set; }
        public string cityname { get; set; }
        /// <summary>
        /// 项目属性
        /// </summary>
        public string project_property { get; set; }
        public string protypename { get; set; }
        /// <summary>
        /// 项目性质
        /// </summary>
        public string project_nature { get; set; }
        public string naturename { get; set; }
        /// <summary>
        /// 项目小组成员
        /// </summary>
        public int project_membernum { get; set; }
        /// <summary>
        /// 项目负责人
        /// </summary>
        public string project_resperson { get; set; }
        ///// <summary>
        ///// 项目开始时间
        ///// </summary>
        //public DateTime project_starttime
        //{
        //    get
        //    {
        //        return _project_starttime.ToLocalTime();
        //    }
        //    set
        //    {
        //        _project_starttime = value.ToLocalTime();
        //    }
        //}
        //private DateTime _project_starttime;
        ///// <summary>
        ///// 项目结束时间
        ///// </summary>
        //public DateTime project_endtime
        //{
        //    get
        //    {
        //        return _project_endtime.ToLocalTime();
        //    }
        //    set
        //    {
        //        _project_endtime = value.ToLocalTime();
        //    }
        //}
        //private DateTime _project_endtime;

        /// <summary>
        /// 项目开始时间
        /// </summary>
        public string project_starttime { get; set; }
        /// <summary>
        /// 项目结束时间
        /// </summary>
        public string project_endtime { get; set; }

        ///// <summary>
        ///// 项目周期
        ///// </summary>
        //public string project_cycle { get; set; }
        /// <summary>
        /// 项目合同
        /// </summary>
        public string project_order { get; set; }
        ///// <summary>
        ///// 项目设备种类
        ///// </summary>
        //public int project_equipmentvariety { get; set; }
        /// <summary>
        /// 项目设备个数
        /// </summary>
        public int project_equipmentnum { get; set; }
        /// <summary>
        /// 项目图纸
        /// </summary>
        public List<FileBaseModel> project_plans { get; set; } = null;
        /// <summary>
        /// 项目图片
        /// </summary>
        public List<FileBaseModel> project_pic { get; set; } = null;
        /// <summary>
        /// 项目简介
        /// </summary>
        public string project_profile { get; set; }
        ///// <summary>
        ///// 项目提醒
        ///// </summary>
        //public DateTime project_remind
        //{
        //    get
        //    {
        //        return _project_remind.ToLocalTime();
        //    }
        //    set
        //    {
        //        _project_remind = value.ToLocalTime();
        //    }
        //}
        //private DateTime _project_remind;
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime createtime
        {
            get
            {
                return _createtime.ToLocalTime();
            }
            set
            {
                _createtime = value.ToLocalTime();
            }
        }
        private DateTime _createtime = DateTime.Now.ToLocalTime();
    }

    /// <summary>
    /// 项目详情
    /// </summary>
    public class Pro_ProjectDetailsDto
    {
        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 项目名称
        /// </summary>
        public string project_name { get; set; }
        /// <summary>
        /// 项目所在省
        /// </summary>
        public string project_province { get; set; }
        public string provincename { get; set; }
        /// <summary>
        /// 项目所在市
        /// </summary>
        public string project_city { get; set; }
        public string cityname { get; set; }
        /// <summary>
        /// 项目属性
        /// </summary>
        public string project_property { get; set; }
        public string protypename { get; set; }
        /// <summary>
        /// 项目性质
        /// </summary>
        public string project_nature { get; set; }
        public string naturename { get; set; }

        /// <summary>
        /// 项目开始时间
        /// </summary>
        public string project_starttime { get; set; }
        /// <summary>
        /// 项目结束时间
        /// </summary>
        public string project_endtime { get; set; }

        ///// <summary>
        ///// 项目小组成员
        ///// </summary>
        //public string project_membernum { get; set; }
        /// <summary>
        /// 项目负责人
        /// </summary>
        public string project_resperson { get; set; }
        ///// <summary>
        ///// 项目开始时间
        ///// </summary>
        //public DateTime project_starttime
        //{
        //    get
        //    {
        //        return _project_starttime.ToLocalTime();
        //    }
        //    set
        //    {
        //        _project_starttime = value.ToLocalTime();
        //    }
        //}
        //private DateTime _project_starttime;
        ///// <summary>
        ///// 项目结束时间
        ///// </summary>
        //public DateTime project_endtime
        //{
        //    get
        //    {
        //        return _project_endtime.ToLocalTime();
        //    }
        //    set
        //    {
        //        _project_endtime = value.ToLocalTime();
        //    }
        //}
        //private DateTime _project_endtime;

        ///// <summary>
        ///// 项目周期
        ///// </summary>
        //public string project_cycle { get; set; }
        /// <summary>
        /// 项目合同
        /// </summary>
        public string project_order { get; set; }
        ///// <summary>
        ///// 项目设备种类
        ///// </summary>
        //public int project_equipmentvariety { get; set; }
        /// <summary>
        /// 项目设备个数
        /// </summary>
        public int project_equipmentnum { get; set; }
        /// <summary>
        /// 项目图纸
        /// </summary>
        public List<FileBaseModel> project_plans { get; set; } = null;
        /// <summary>
        /// 项目图片
        /// </summary>
        public List<FileBaseModel> project_pic { get; set; } = null;
        /// <summary>
        /// 项目简介
        /// </summary>
        public string project_profile { get; set; }
        ///// <summary>
        ///// 项目提醒
        ///// </summary>
        //public DateTime project_remind
        //{
        //    get
        //    {
        //        return _project_remind.ToLocalTime();
        //    }
        //    set
        //    {
        //        _project_remind = value.ToLocalTime();
        //    }
        //}
        //private DateTime _project_remind;
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime createtime
        {
            get
            {
                return _createtime.ToLocalTime();
            }
            set
            {
                _createtime = value.ToLocalTime();
            }
        }
        private DateTime _createtime = DateTime.Now.ToLocalTime();
    }
}
