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

namespace MadRunFabric.Model
{
    /// <summary>
    /// 新版设备信息
    /// </summary>
    public class Eqp_Equipment_Info: IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }

        /// <summary>
        /// 省code
        /// </summary>
        public string province { get; set; } = "";

        /// <summary>
        /// 市code
        /// </summary>
        public string city { get; set; } = "";

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

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

        /// <summary>
        /// 楼id
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string buildid { get; set; }

        /// <summary>
        /// 楼层id
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string floorid { get; set; }

        /// <summary>
        /// 导入id
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string importid { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>
        public string equipment_name { get; set; }

        /// <summary>
        /// 系统名称 
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string systemid { get; set; }

        /// <summary>
        /// 设备编码
        /// </summary>
        public string equipment_number { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string equipment_model { get; set; } = "";

        /// <summary>
        /// 设备图片
        /// </summary>
        public List<FileBaseModel> equipment_image { get; set; } = null;

        /// <summary>
        /// 购买合同
        /// </summary>
        public List<FileBaseModel> purchase_order { get; set; } = null;

        /// <summary>
        /// 维保合同
        /// </summary>
        public List<FileBaseModel> maintenance_order { get; set; } = null;

        ///// <summary>
        ///// 供应商
        ///// </summary>
        //public string equipment_supplier { get; set; } = "";

        ///// <summary>
        ///// 生产厂家
        ///// </summary>
        //public string equipment_manufacturer { get; set; } = "";

        ///// <summary>
        ///// 安装日期
        ///// </summary>
        //public string install_date { get; set; }

        /// <summary>
        /// 安装地址
        /// </summary>
        public string install_place { get; set; }

        ///// <summary>
        ///// 验收日期
        ///// </summary>
        //public string inspect_date { get; set; }

        ///// <summary>
        ///// 制造日期
        ///// </summary>
        //public string made_date { get; set; }

        ///// <summary>
        ///// 使用期限
        ///// </summary>
        //public string use_date { get; set; }

        /// <summary>
        /// 使用开始日期
        /// </summary>
        public string use_startdate { get; set; }

        /// <summary>
        /// 使用结束日期
        /// </summary>
        public string use_enddate { get; set; }

        ///// <summary>
        ///// 原值金额
        ///// </summary>
        //public string purchase_money { get; set; }

        ///// <summary>
        ///// 质保期限
        ///// </summary>
        //public string quality_date { get; set; }

        /// <summary>
        /// 质保开始日期
        /// </summary>
        public string quality_startdate { get; set; }

        /// <summary>
        /// 质保结束日期
        /// </summary>
        public string quality_enddate { get; set; }

        /// <summary>
        /// 扩展字段
        /// </summary>
        public List<ExtensionModel> extensionlist { get; set; } = null;

        /// <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; }
    }
}
