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

namespace EquipmentApi.Model.Dto
{
    /// <summary>
    /// 设备列表
    /// </summary>
    public class Eqp_EquipmentDto
    {
        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 省id
        /// </summary>
        public string provinceid { get; set; }
        /// <summary>
        /// 省
        /// </summary>
        public string provincename { get; set; }
        /// <summary>
        /// 市id
        /// </summary>
        public string cityid { get; set; }
        /// <summary>
        /// 市
        /// </summary>
        public string cityname { get; set; }
        /// <summary>
        /// 项目类型id
        /// </summary>
        public string protypeid { get; set; }
        /// <summary>
        /// 项目类型
        /// </summary>
        public string protypename { get; set; }
        /// <summary>
        /// 项目id
        /// </summary>
        public string projectid { get; set; }
        /// <summary>
        /// 项目名称
        /// </summary>
        public string projectname { get; set; }
        /// <summary>
        /// 楼id
        /// </summary>
        public string bulidingname { get; set; }
        /// <summary>
        /// 楼名称
        /// </summary>
        public string bulidingid { get; set; }
        /// <summary>
        /// 楼层id
        /// </summary>
        public string floorid { get; set; }
        /// <summary>
        /// 楼层名称
        /// </summary>
        public string floorname { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        public string equipment_name { get; set; }
        /// <summary>
        /// 系统名称 
        /// </summary>
        public string systemname { 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 purchase_money { get; set; }
        /// <summary>
        /// 质保期限
        /// </summary>
        public string quality_date { get; set; }
        /// <summary>
        /// 添加人
        /// </summary>
        public string createby { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime createtime
        {
            get
            {
                return _createtime.ToLocalTime();
            }
            set
            {
                _createtime = value.ToLocalTime();
            }
        }
        private DateTime _createtime = DateTime.Now.ToLocalTime();
    }

    /// <summary>
    /// 设备详情
    /// </summary>
    public class Eqp_EquipmentDetailsDto
    {
        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 省id
        /// </summary>
        public string provinceid { get; set; }
        /// <summary>
        /// 省
        /// </summary>
        public string provincename { get; set; }
        /// <summary>
        /// 市id
        /// </summary>
        public string cityid { get; set; }
        /// <summary>
        /// 市
        /// </summary>
        public string cityname { get; set; }
        /// <summary>
        /// 项目类型id
        /// </summary>
        public string protypeid { get; set; }
        /// <summary>
        /// 项目类型
        /// </summary>
        public string protypename { get; set; }
        /// <summary>
        /// 项目id
        /// </summary>
        public string projectid { get; set; }
        /// <summary>
        /// 项目名称
        /// </summary>
        public string projectname { get; set; }
        /// <summary>
        /// 楼id
        /// </summary>
        public string bulidingname { get; set; }
        /// <summary>
        /// 楼名称
        /// </summary>
        public string bulidingid { get; set; }
        /// <summary>
        /// 楼层id
        /// </summary>
        public string floorid { get; set; }
        /// <summary>
        /// 楼层名称
        /// </summary>
        public string floorname { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        public string equipment_name { get; set; }
        /// <summary>
        /// 系统名称 
        /// </summary>
        public string systemname { 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 purchase_money { get; set; }
        /// <summary>
        /// 质保期限
        /// </summary>
        public string quality_date { get; set; }
        /// <summary>
        /// 扩展字段
        /// </summary>
        public List<ExtensionModel> extensionlist { get; set; } = null;
        /// <summary>
        /// 添加人
        /// </summary>
        public string createby { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime createtime
        {
            get
            {
                return _createtime.ToLocalTime();
            }
            set
            {
                _createtime = value.ToLocalTime();
            }
        }
        private DateTime _createtime = DateTime.Now.ToLocalTime();
    }

    public class Eqp_EquipmentOrderDto
    {
        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 省
        /// </summary>
        public string provincename { get; set; }
        /// <summary>
        /// 市
        /// </summary>
        public string cityname { get; set; }
        /// <summary>
        /// 项目名称
        /// </summary>
        public string projectname { get; set; }
        /// <summary>
        /// 电话保修数
        /// </summary>
        public int channelpcnum { get; set; }
        /// <summary>
        /// 微信保修数
        /// </summary>
        public int channelwechatnum { get; set; }
    }

    public class Eqp_EquipmentRepairDto
    {
        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 省
        /// </summary>
        public string provincename { get; set; }
        /// <summary>
        /// 市
        /// </summary>
        public string cityname { get; set; }
        /// <summary>
        /// 项目名称
        /// </summary>
        public string projectname { get; set; }
        /// <summary>
        /// 日常待维修数量
        /// </summary>
        public int nodailynum { get; set; }
        /// <summary>
        /// 日常已维修数量
        /// </summary>
        public int dailyednum { get; set; }
        /// <summary>
        /// 设备待维修数量
        /// </summary>
        public int noequnum { get; set; }
        /// <summary>
        /// 设备已维修数量
        /// </summary>
        public int equednum { get; set; }
    }

    /// <summary>
    /// 设备保养分析报表
    /// </summary>
    public class Eqp_EquipmentMaintainDto
    {
        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }
        ///// <summary>
        ///// 项目ID
        ///// </summary>
        //public string projectid { get; set; }
        ///// <summary>
        ///// 设备名称
        ///// </summary>
        //public string equipmentname { get; set; }
        /// <summary>
        /// 省
        /// </summary>
        public string provincename { get; set; }
        /// <summary>
        /// 市
        /// </summary>
        public string cityname { get; set; }
        /// <summary>
        /// 项目名称
        /// </summary>
        public string projectname { get; set; }
        /// <summary>
        /// 项目类型
        /// </summary>
        public string protypename { get; set; }
        /// <summary>
        /// 检查事项
        /// </summary>
        public string mattername { get; set; }
        ///// <summary>
        ///// 系统类型
        ///// </summary>
        //public string systemname { get; set; }
        /// <summary>
        /// 保养次数
        /// </summary>
        public int maintainnum { get; set; }
        /// <summary>
        /// 已保养
        /// </summary>
        public int maintainednum { get; set; }
        /// <summary>
        /// 未保养
        /// </summary>
        public int nomaintainnum { get; set; }
    }

    /// <summary>
    /// 设备状态分析报表
    /// </summary>
    public class Eqp_EquipmentEqurepairDto
    {
        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }
        ///// <summary>
        ///// 项目ID
        ///// </summary>
        //public string projectid { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        public string equipmentname { get; set; }
        /// <summary>
        /// 省
        /// </summary>
        public string provincename { get; set; }
        /// <summary>
        /// 市
        /// </summary>
        public string cityname { get; set; }
        /// <summary>
        /// 项目名称
        /// </summary>
        public string projectname { get; set; }
        /// <summary>
        /// 项目类型
        /// </summary>
        public string protypename { get; set; }
        /// <summary>
        /// 系统类型
        /// </summary>
        public string systemname { get; set; }
        /// <summary>
        /// 保养次数
        /// </summary>
        public int repairnum { get; set; }
        /// <summary>
        /// 已维修
        /// </summary>
        public int repairednum { get; set; }
        /// <summary>
        /// 未维修
        /// </summary>
        public int norepairnum { get; set; }
    }

}
