namespace HStation.WinFrmUI.Xhs { public class PumpMainChoieViewModel { public PumpMainChoieViewModel(Vmo.PumpSeriesVmo rhs) { this.ID = rhs.ID; this.Name = rhs.Name; this.IsPump = false; } public PumpMainChoieViewModel(Vmo.PumpGroupVmo rhs) { this.ID = rhs.ID; this.Name = rhs.Name; this.ParentID = rhs.PumpSeriesID; this.IsPump = false; } public PumpMainChoieViewModel(Vmo.PumpMainVmo rhs, long GroupID) { this.ID = rhs.ID; this.Name = rhs.Name; this.ParentID = GroupID; this.IsPump = true; } public PumpMainChoieViewModel(Vmo.PumpMainVmo rhs) { this.ID = rhs.ID; this.Name = rhs.Name; this.ParentID = rhs.PumpSeriesID; this.IsPump = true; this.Erosion = rhs.Erosion; this.RatedPower = rhs.RatedPower; this.RatedFlow = rhs.RatedFlow; this.RatedSpeed = rhs.RatedSpeed; this.RatedEfficiency = rhs.RatedEfficiency; this.D2 = rhs.D2; this.Description = rhs.Description; this.SortCode = rhs.SortCode; } public long ID { get; set; } public long ParentID { get; set; } public string Name { get; set; } public bool IsPump { get; set; } /// /// 泵系列ID /// public long PumpSeriesID { get; set; } /// /// 参数 /// public Dictionary Paras { get; set; } /// /// 标签 /// public List Flags { get; set; } /// /// 标志 /// public string TagName { get; set; } /// /// 排序码 /// public int SortCode { get; set; } /// /// 额定转速 /// public double RatedSpeed { get; set; } /// /// 额定流量 /// public double RatedFlow { get; set; } /// /// 额定扬程 /// public double RatedHead { get; set; } /// /// 额定效率 /// public double? RatedEfficiency { get; set; } /// /// 额定功率 /// public double RatedPower { get; set; } /// /// 气蚀 /// public double? Erosion { get; set; } /// /// 叶轮外径 /// public double? D2 { get; set; } /// /// 说明 /// public string Description { get; set; } } }