using System.ComponentModel.DataAnnotations;
|
|
namespace PBS.WinFrmUI.Hydro
|
{
|
/// <summary>
|
/// 设施
|
///</summary>
|
public class FacilityPropertyViewModel
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public FacilityPropertyViewModel() { }
|
|
|
/// <summary>
|
///
|
/// </summary>
|
public FacilityPropertyViewModel(PBS.Vmo.FacilityVmo rhs)
|
{
|
this.ID = rhs.ID;
|
this.PlaceID = rhs.PlaceID;
|
this.PackageID = rhs.PackageID;
|
this.Name = rhs.Name;
|
this.WaterSupply = rhs.WaterSupply;
|
this.SupplyMode = rhs.SupplyMode;
|
this.Floor = rhs.Floor;
|
this.FloorHeight = rhs.FloorHeight;
|
this.Households = rhs.Households;
|
this.MaxWaterDemand = rhs.MaxWaterDemand;
|
this.ConstantPressure = rhs.ConstantPressure;
|
this.TerminalPressure = rhs.TerminalPressure;
|
this.Paras = rhs.Paras == null ? null : new(rhs.Paras);
|
this.MaxHeight = rhs.MaxHeight;
|
this.ConnectionAddress = rhs.ConnectionAddress;
|
this.ConnectionType = rhs.ConnectionType;
|
this.ModelInfo = rhs.ModelInfo;
|
this.ModelPath = rhs.ModelPath;
|
this.Flags = rhs.Flags?.ToList();
|
this.TagName = rhs.TagName;
|
this.UseStatus = (Yw.Vmo.eUseStatus)(int)rhs.UseStatus;
|
this.SortCode = rhs.SortCode;
|
this.Description = rhs.Description;
|
}
|
|
/// <summary>
|
/// 标识
|
///</summary>
|
[Browsable(false)]
|
public long ID { get; set; }
|
|
/// <summary>
|
/// 场所标识
|
///</summary>
|
[Browsable(false)]
|
public long PlaceID { get; set; }
|
|
/// <summary>
|
/// 成套设备标识
|
///</summary>
|
[Browsable(false)]
|
public long PackageID { get; set; }
|
|
/// <summary>
|
/// 名称
|
///</summary>
|
[Browsable(false)]
|
public string Name { get; set; }
|
|
/// <summary>
|
/// 供水单元
|
///</summary>
|
[Display(Name = "供水单元")]
|
[DisplayName("供水单元")]
|
[PropertyOrder(1)]
|
[ShowEditor(false)]
|
[Browsable(true)]
|
public eWaterSupply WaterSupply { get; set; }
|
|
/// <summary>
|
/// 供水模式
|
///</summary>
|
[Display(Name = "供水模式")]
|
[DisplayName("供水模式")]
|
[ShowEditor(false)]
|
[PropertyOrder(2)]
|
[Browsable(true)]
|
public eSupplyMode SupplyMode { get; set; }
|
|
/// <summary>
|
/// 楼层
|
///</summary>
|
[Display(Name = "楼层")]
|
[DisplayName("楼层")]
|
[PropertyOrder(3)]
|
[Browsable(true)]
|
public int Floor { get; set; }
|
|
/// <summary>
|
/// 层高
|
///</summary>
|
[Display(Name = "层高")]
|
[DisplayName("层高")]
|
[DisplayUnit("m")]
|
[PropertyOrder(4)]
|
[Browsable(true)]
|
public double? FloorHeight { get; set; }
|
|
/// <summary>
|
/// 户数
|
///</summary>
|
[Category("详细")]
|
[Display(Name = "户数")]
|
[DisplayName("户数")]
|
[PropertyOrder(5)]
|
[Browsable(true)]
|
public int? Households { get; set; }
|
|
/// <summary>
|
/// 最大需水量
|
///</summary>
|
[Display(Name = "最大需水量")]
|
[DisplayName("最大需水量")]
|
[DisplayUnit("m³/h")]
|
[PropertyOrder(6)]
|
[Browsable(true)]
|
public double? MaxWaterDemand { get; set; }
|
|
/// <summary>
|
/// 恒定压力
|
///</summary>
|
[Display(Name = "恒定压力")]
|
[DisplayName("恒定压力")]
|
[DisplayUnit("m")]
|
[PropertyOrder(7)]
|
[Browsable(true)]
|
public double? ConstantPressure { get; set; }
|
|
/// <summary>
|
/// 末端压力
|
///</summary>
|
[Display(Name = "末端压力")]
|
[DisplayName("末端压力")]
|
[DisplayUnit("m")]
|
[PropertyOrder(8)]
|
[Browsable(true)]
|
public double? TerminalPressure { get; set; }
|
|
/// <summary>
|
/// 顶楼标高
|
/// </summary>
|
[Display(Name = "顶楼标高")]
|
[DisplayName("顶楼标高")]
|
[DisplayUnit("m")]
|
[PropertyOrder(9)]
|
[Browsable(true)]
|
public double MaxHeight { get; set; }
|
|
/// <summary>
|
/// 连接类型
|
/// </summary>
|
[Browsable(false)]
|
public eConnectionType ConnectionType { get; set; }
|
|
/// <summary>
|
/// IP地址
|
/// </summary>
|
[Browsable(false)]
|
public string ConnectionAddress { get; set; }
|
|
/// <summary>
|
/// 模型信息
|
///</summary>
|
[Browsable(false)]
|
public string ModelInfo { get; set; }
|
|
/// <summary>
|
/// 模型路径
|
///</summary>
|
[Browsable(false)]
|
public string ModelPath { get; set; }
|
|
/// <summary>
|
/// 参数
|
///</summary>
|
[Browsable(false)]
|
public Dictionary<string, string> Paras { get; set; }
|
|
/// <summary>
|
/// 标签
|
///</summary>
|
[Browsable(false)]
|
public List<string> Flags { get; set; }
|
|
/// <summary>
|
/// 标志
|
///</summary>
|
[Browsable(false)]
|
public string TagName { get; set; }
|
|
/// <summary>
|
/// 使用状态
|
///</summary>
|
[Browsable(false)]
|
public Yw.Vmo.eUseStatus UseStatus { get; set; }
|
|
/// <summary>
|
/// 排序码
|
///</summary>
|
[Browsable(false)]
|
public int SortCode { get; set; }
|
|
/// <summary>
|
/// 说明
|
///</summary>
|
[Display(Name = "说明")]
|
[Browsable(false)]
|
public string Description { get; set; }
|
}
|
}
|