using Yw.Model; namespace HStation.WinFrmUI { /// /// /// public class XhsProjectSimulationPumpBulkSetViewModel { /// /// /// public XhsProjectSimulationPumpBulkSetViewModel() { } /// /// /// public XhsProjectSimulationPumpBulkSetViewModel(Yw.Model.HydroPumpInfo rhs) { this.ID = rhs.ID; this.Catalog = Yw.WinFrmUI.HydroParterCatalogHelper.GetCatalogName(rhs.Catalog); this.Name = rhs.Name; this.Code = rhs.Code; this.ModelType = rhs.ModelType; this.HasDb = !string.IsNullOrEmpty(rhs.DbId); this.DbLocked = rhs.DbLocked; this.RatedP = rhs.RatedP; this.RatedQ = rhs.RatedQ; this.RatedH = rhs.RatedH; this.RatedN = rhs.RatedN; this.HasCurve = !string.IsNullOrEmpty(rhs.CurveQH); this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags); this.Description = rhs.Description; } /// /// ID /// [DisplayName("ID")] public long ID { get; set; } /// /// 分类 /// [DisplayName("分类")] public string Catalog { get; set; } /// /// 名称 /// [DisplayName("名称")] public string Name { get; set; } /// /// 编码 /// [DisplayName("编码")] public string Code { get; set; } /// /// 型号 /// [DisplayName("型号")] public string ModelType { get; set; } /// /// 匹配 /// [DisplayName("匹配")] public bool HasDb { get; set; } /// /// 锁定 /// [DisplayName("锁定")] public bool DbLocked { get; set; } /// /// 额定功率 /// [DisplayName("额定功率(kW)")] public double RatedP { get; set; } /// /// 额定流量 /// [DisplayName("额定流量(m³/h)")] public double? RatedQ { get; set; } /// /// 额定扬程 /// [DisplayName("额定扬程(m)")] public double? RatedH { get; set; } /// /// 额定转速 /// [DisplayName("额定转速(r/min)")] public double? RatedN { get; set; } /// /// 性能曲线 /// [DisplayName("性能曲线")] public bool HasCurve { get; set; } /// /// 标签 /// [DisplayName("标签")] public string FlagsString { get; set; } /// /// 说明 /// [DisplayName("说明")] public string Description { get; set; } } }