namespace PBS.WinFrmUI.Hydro
{
public class QuickModelingFacilityViewModel
{
///
///
///
public QuickModelingFacilityViewModel() { }
///
///
///
public QuickModelingFacilityViewModel(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.Flags = rhs.Flags?.ToList();
this.TagName = rhs.TagName;
this.UseStatus = (Yw.Vmo.eUseStatus)(int)rhs.UseStatus;
this.SortCode = rhs.SortCode;
this.Description = rhs.Description;
}
///
/// 标识
///
public long ID { get; set; }
///
/// 场所标识
///
public long PlaceID { get; set; }
///
/// 成套设备标识
///
public long PackageID { get; set; }
///
/// 名称
///
public string Name { get; set; }
///
/// 供水单元
///
public eWaterSupply WaterSupply { get; set; }
///
/// 供水模式
///
public eSupplyMode SupplyMode { get; set; }
///
/// 楼层
///
public int Floor { get; set; }
///
/// 层高
///
public double? FloorHeight { get; set; }
///
/// 户数
///
public int? Households { get; set; }
///
/// 最大需水量
///
public double? MaxWaterDemand { get; set; }
///
/// 恒定压力
///
public double? ConstantPressure { get; set; }
///
/// 末端压力
///
public double? TerminalPressure { get; set; }
///
/// 最高楼层标高
///
public double MaxHeight { get; set; }
///
/// 连接类型
///
public eConnectionType ConnectionType { get; set; }
///
/// IP地址
///
public string ConnectionAddress { get; set; }
///
/// 参数
///
public Dictionary Paras { get; set; }
///
/// 标签
///
public List Flags { get; set; }
///
/// 标志
///
public string TagName { get; set; }
///
/// 使用状态
///
public Yw.Vmo.eUseStatus UseStatus { get; set; }
///
/// 排序码
///
public int SortCode { get; set; }
///
/// 说明
///
public string Description { get; set; }
}
}