namespace HStation.WinFrmUI { /// /// /// public class XhsProjectSimulationPumpCalcuPrefixViewModel { /// /// /// public XhsProjectSimulationPumpCalcuPrefixViewModel() { } /// /// /// public XhsProjectSimulationPumpCalcuPrefixViewModel(Yw.Model.HydroPumpInfo rhs) { this.ID = rhs.ID; this.Catalog = Yw.WinFrmUI.HydroParterCatalogHelper.GetCatalogName(rhs.Catalog); this.Code = rhs.Code; this.Name = rhs.Name; this.ModelType = rhs.ModelType; this.HasDb = !string.IsNullOrEmpty(rhs.DbId); this.DbLocked = rhs.DbLocked; this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags); this.Description = rhs.Description; this.PumpStatus = Yw.WinFrmUI.HydroLinkStatusHelper.GetStatusName(rhs.LinkStatus); this.RatedP = rhs.RatedP; this.SpeedRatio = rhs.SpeedRatio; this.Vmo = rhs; } /// /// id /// [DisplayName("ID")] public long ID { get; set; } /// /// 分类 /// [DisplayName("分类")] public string Catalog { get; set; } /// /// 编码 /// [DisplayName("编码")] public string Code { get; set; } /// /// 名称 /// [DisplayName("名称")] public string Name { get; set; } /// /// 型号 /// [DisplayName("型号")] public string ModelType { get; set; } /// /// 匹配 /// [DisplayName("匹配")] public bool HasDb { get; set; } /// /// 锁定 /// [DisplayName("锁定")] public bool DbLocked { get; set; } /// /// 标签 /// [DisplayName("标签")] public string FlagsString { get; set; } /// /// 说明 /// [DisplayName("说明")] public string Description { get; set; } /// /// 水泵状态 /// [DisplayName("水泵状态")] public string PumpStatus { get; set; } /// /// 额定功率(kW) /// [DisplayName("额定功率(kW)")] public double RatedP { get; set; } /// /// 转速比 /// [DisplayName("转速比")] public double? SpeedRatio { get; set; } /// /// /// [Browsable(false)] public Yw.Model.HydroPumpInfo Vmo { get; set; } } }