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