using System;
|
using System.Collections.Generic;
|
using System.ComponentModel;
|
using System.ComponentModel.DataAnnotations;
|
using System.Linq;
|
|
namespace ISupply.Model
|
{
|
/// <summary>
|
/// 设施
|
/// </summary>
|
public class Facilities : Model.BaseTraceModel, System.ICloneable
|
{
|
public Facilities() { }
|
public Facilities(Facilities rhs) : base(rhs)
|
{
|
this.TemplateID = rhs.TemplateID;
|
this.Name = rhs.Name;
|
this.BuildingID = rhs.BuildingID;
|
this.SupplyMode = rhs.SupplyMode;
|
this.Floor = rhs.Floor;
|
this.FloorHouseHolds = rhs.FloorHouseHolds;
|
this.FloorHeight = rhs.FloorHeight;
|
this.Flags = rhs.Flags?.ToList();
|
this.TagName = rhs.TagName;
|
this.UseStatus = rhs.UseStatus;
|
this.SortCode = rhs.SortCode;
|
this.Description = rhs.Description;
|
this.HouseLength = rhs.HouseLength;
|
this.FID = rhs.FID;
|
this.ModelConfig = rhs.ModelConfig;
|
this.Model3dID = rhs.Model3dID;
|
this.ChangeCoefficient = rhs.ChangeCoefficient;
|
this.WaterAmount = rhs.WaterAmount;
|
this.WaterHeight = rhs.WaterHeight;
|
this.WaterPressure = rhs.WaterPressure;
|
this.CompletePlant = rhs.CompletePlant;
|
this.WaterSupply = rhs.WaterSupply;
|
this.ColorGrade = rhs.ColorGrade;
|
this.ModelType = rhs.ModelType;
|
this.MaxHeight = rhs.MaxHeight;
|
this.ViewParams = rhs.ViewParams;
|
this.ConstantP = rhs.ConstantP;
|
}
|
|
public void Reset(Facilities rhs)
|
{
|
base.Reset(rhs);
|
this.ID = rhs.ID;
|
this.TemplateID = rhs.TemplateID;
|
this.Name = rhs.Name;
|
this.BuildingID = rhs.BuildingID;
|
this.SupplyMode = rhs.SupplyMode;
|
this.Floor = rhs.Floor;
|
this.FloorHouseHolds = rhs.FloorHouseHolds;
|
this.FloorHeight = rhs.FloorHeight;
|
this.Flags = rhs.Flags?.ToList();
|
this.TagName = rhs.TagName;
|
this.UseStatus = rhs.UseStatus;
|
this.SortCode = rhs.SortCode;
|
this.Description = rhs.Description;
|
this.HouseLength = rhs.HouseLength;
|
this.ModelConfig = rhs.ModelConfig;
|
this.Model3dID = rhs.Model3dID;
|
this.FID = rhs.FID;
|
this.ChangeCoefficient = rhs.ChangeCoefficient;
|
this.WaterAmount = rhs.WaterAmount;
|
this.WaterHeight = rhs.WaterHeight;
|
this.WaterPressure = rhs.WaterPressure;
|
this.CompletePlant = rhs.CompletePlant;
|
this.WaterSupply = rhs.WaterSupply;
|
this.UpdateTime = DateTime.Now;
|
this.ModelType = rhs.ModelType;
|
this.ColorGrade = rhs.ColorGrade;
|
this.MaxHeight = rhs.MaxHeight;
|
this.ViewParams = rhs.ViewParams;
|
this.ConstantP=rhs.ConstantP;
|
}
|
/// <summary>
|
/// 颜色分级
|
/// </summary>
|
[Display(Name = "颜色分级")]
|
public string ColorGrade { get; set; }
|
|
/// <summary>
|
/// 模型显示参数
|
/// </summary>
|
[Browsable(false)]
|
[Display(Name = "模型显示参数")]
|
public string ViewParams { get; set; }
|
/// <summary>
|
/// 模型类型,fire:消防,supply:二供
|
/// </summary>
|
[Display(Name = "模型类型")]
|
public string ModelType { get; set; }
|
/// <summary>
|
/// 名称
|
/// </summary>
|
[Display(Name = "名称")]
|
public string Name { get; set; }
|
|
/// <summary>
|
/// 模板标识
|
/// </summary>
|
[Display(Name = "模板标识")]
|
public long TemplateID { get; set; }
|
|
/// <summary>
|
/// 建筑物ID
|
/// </summary>
|
[Display(Name = "建筑物ID")]
|
public long BuildingID { get; set; }
|
|
/// <summary>
|
/// 供水模式
|
/// </summary>
|
[Display(Name = "供水模式")]
|
public Model.eSupplyMode SupplyMode { get; set; }
|
|
/// <summary>
|
/// 楼层
|
/// </summary>
|
[Display(Name = "楼层")]
|
public int? Floor { get; set; }
|
|
/// <summary>
|
/// 户数
|
/// </summary>
|
[Display(Name = "户数")]
|
public int? FloorHouseHolds { get; set; }
|
|
/// <summary>
|
/// 层高
|
/// </summary>
|
[Display(Name = "层高")]
|
public decimal? FloorHeight { get; set; }
|
|
/// <summary>
|
/// 入户管长
|
/// </summary>
|
[Display(Name = "入户管长")]
|
public decimal? HouseLength { get; set; }
|
|
/// <summary>
|
/// 恒定压力
|
/// </summary>
|
[Display(Name = "恒定压力")]
|
public decimal? ConstantP { get; set; }
|
|
/// <summary>
|
/// 模型配置
|
/// </summary>
|
[Display(Name = "模型配置")]
|
public string ModelConfig { get; set; }
|
|
/// <summary>
|
/// 三维模型ID
|
/// </summary>
|
[Display(Name = "三维模型ID")]
|
public string Model3dID { get; set; }
|
|
/// <summary>
|
/// 标签列表
|
/// </summary>
|
[Display(Name = "标签列表")]
|
public List<string> Flags { get; set; }
|
|
/// <summary>
|
/// 标签名称
|
/// </summary>
|
[Display(Name = "标签名称")]
|
public string TagName { get; set; }
|
|
/// <summary>
|
/// 使用状态
|
/// </summary>
|
[Display(Name = "使用状态")]
|
public Model.eUseStatus UseStatus { get; set; }
|
|
/// <summary>
|
/// 排序码
|
/// </summary>
|
[Display(Name = "排序码")]
|
public int SortCode { get; set; }
|
|
/// <summary>
|
/// 说明
|
/// </summary>
|
[Display(Name = "说明")]
|
public string Description { get; set; }
|
|
/// <summary>
|
/// 小时变化系数
|
/// </summary>
|
[Display(Name = "小时变化系数")]
|
public double ChangeCoefficient { get; set; }
|
|
/// <summary>
|
/// 卫生器具给水当量
|
/// </summary>
|
[Display(Name = "卫生器具给水当量")]
|
public double WaterAmount { get; set; }
|
|
/// <summary>
|
/// 最大用水量
|
/// </summary>
|
[Display(Name = "最大用水量")]
|
public double WaterHeight { get; set; }
|
|
/// <summary>
|
/// 用户压力需求
|
/// </summary>
|
[Display(Name = "用户压力需求")]
|
public double WaterPressure { get; set; }
|
|
/// <summary>
|
/// 成套设备
|
/// </summary>
|
[Display(Name = "成套设备")]
|
public string CompletePlant { get; set; }
|
|
/// <summary>
|
/// 最高楼层标高
|
/// </summary>
|
[Display(Name = "最高楼层标高")]
|
public double MaxHeight { get; set; }
|
/// <summary>
|
/// 供水单元
|
/// </summary>
|
[Display(Name = "供水单元")]
|
public string WaterSupply { get; set; }
|
|
/// <summary>
|
/// FID
|
/// </summary>
|
[Display(Name = "FID")]
|
public string FID { get; set; }
|
|
public Facilities Clone()
|
{
|
return (Facilities)this.MemberwiseClone();
|
}
|
|
object ICloneable.Clone()
|
{
|
return this.MemberwiseClone();
|
}
|
}
|
}
|