using System.ComponentModel;
namespace HStation.WinFrmUI.Assets
{
public class EquipmentViewModel
{
public EquipmentViewModel()
{
}
public EquipmentViewModel(Vmo.AssetsPackagePumpMappingVmo rhs, Vmo.AssetsPumpMainVmo pump, long kitID)
{
this.ID = rhs.ID;
this.KitID = kitID;
this.PumpID = rhs.PumpMainID;
this.Name = rhs.PumpOtherName;
this.ModelType = pump.Name;
this.RatedFlow = pump.RatedFlow;
this.RatedEfficiency = pump.RatedEfficiency;
this.RatedHead = pump.RatedHead;
this.RatedPower = pump.RatedPower;
this.Erosion = pump.Erosion;
this.RatedSpeed = pump.RatedSpeed;
}
public void Reset(Vmo.AssetsPackagePumpMappingVmo rhs, Vmo.AssetsPumpMainVmo pump, long kitID)
{
this.ID = rhs.ID;
this.KitID = kitID;
this.PumpID = rhs.PumpMainID;
this.Name = rhs.PumpOtherName;
this.ModelType = pump.Name;
this.RatedFlow = pump.RatedFlow;
this.RatedEfficiency = pump.RatedEfficiency;
this.RatedHead = pump.RatedHead;
this.RatedPower = pump.RatedPower;
this.Erosion = pump.Erosion;
this.RatedSpeed = pump.RatedSpeed;
}
///
/// ID
///
public long ID { get; set; }
///
/// 泵型号ID
///
public long PumpID { get; set; }
///
/// 成套设备ID
///
public long KitID { get; set; }
///
/// 名称
///
[DisplayName("名称")]
[Browsable(true)]
public string Name { get; set; }
///
/// 设备型号
///
[DisplayName(" 设备型号")]
[Browsable(true)]
public string ModelType { get; set; }
///
/// 额定转速
///
[DisplayName(" 额定转速")]
[Browsable(true)]
public double RatedSpeed { get; set; }
///
/// 额定流量
///
[DisplayName(" 额定流量")]
[Browsable(true)]
public double RatedFlow { get; set; }
///
/// 额定扬程
///
[DisplayName(" 额定扬程")]
[Browsable(true)]
public double RatedHead { get; set; }
///
/// 额定效率
///
[DisplayName(" 额定效率")]
[Browsable(true)]
public double? RatedEfficiency { get; set; }
///
/// 额定功率
///
[DisplayName(" 额定功率")]
[Browsable(true)]
public double RatedPower { get; set; }
///
/// 气蚀
///
[DisplayName(" 气蚀")]
[Browsable(true)]
public double? Erosion { get; set; }
///
/// 设备数量
///
[DisplayName(" 设备数量")]
[Browsable(true)]
public int EquipmentCount { get; set; }
}
}