using System;
using System.Collections.Generic;
using System.Text;
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson;
using MadRunFabric.Common;
using System.ComponentModel.DataAnnotations;

namespace MadRunFabric.Model
{
    /// <summary>
    /// 项目信息表
    /// </summary>
    public class Pro_Project_Info : IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        public string project_name { get; set; }

        /// <summary>
        /// 项目名称简称
        /// </summary>
        public string project_shortname { get; set; }

        /// <summary>
        /// 项目所在省
        /// </summary>
        public string project_province { get; set; }

        /// <summary>
        /// 项目所在市
        /// </summary>
        public string project_city { get; set; }

        /// <summary>
        /// 项目属性id
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string project_property { get; set; }

        /// <summary>
        /// 项目性质id
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string project_nature { get; set; }

        ///// <summary>
        ///// 项目小组成员
        ///// </summary>
        //public int project_membernum { get; set; }

        /// <summary>
        /// 项目负责人code
        /// </summary>
        public string project_resperson { get; set; }

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

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

        ///// <summary>
        ///// 项目开始时间
        ///// </summary>
        //public DateTime?  project_starttime
        //{
        //    get
        //    {
        //        return _project_starttime;
        //    }
        //    set
        //    {
        //        _project_starttime = value;
        //    }
        //}
        //private DateTime? _project_starttime;

        ///// <summary>
        ///// 项目结束时间
        ///// </summary>
        //public DateTime? project_endtime
        //{
        //    get
        //    {
        //        return _project_endtime;
        //    }
        //    set
        //    {
        //        _project_endtime = value;
        //    }
        //}
        //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; }

        /// <summary>
        /// 项目图纸
        /// </summary>
        public List<FileBaseModel> project_pic { get; set; } 

        /// <summary>
        /// 项目简介
        /// </summary>
        public string project_profile { get; set; }

        ///// <summary>
        ///// 项目提醒
        ///// </summary>
        //public DateTime? project_remind {
        //    get
        //    {
        //        return _project_remind;
        //    }
        //    set
        //    {
        //        _project_remind = value;
        //    }
        //}
        //private DateTime? _project_remind;

        /// <summary>
        /// 是否终止(0否1是)
        /// </summary>
        public int isend { get; set; } = 0;

        /// <summary>
        /// 终止人工号
        /// </summary>
        public string endby { get; set; }

        /// <summary>
        /// 终止时间
        /// </summary>
        public DateTime? endtime { get; set; }

        /// <summary>
        /// 添加人工号
        /// </summary>
        public string createby { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        /// 
        public DateTime createtime { get; set; } = DateTime.Now;

        /// <summary>
        /// 是否删除(0否1是)
        /// </summary>
        public int isdelete { get; set; } = 0;

        /// <summary>
        /// 删除人工号
        /// </summary>
        public string deleteby { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? deletetime { get; set; }
    }
}
