| | |
| | | namespace HStation.WinFrmUI.Xhs |
| | | namespace HStation.WinFrmUI |
| | | { |
| | | public class PumpSingleMatchingViewModel |
| | | { |
| | | public PumpSingleMatchingViewModel(Vmo.PumpSeriesVmo rhs) |
| | | public PumpSingleMatchingViewModel(Vmo.AssetsPumpSeriesVmo rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Name = rhs.Name; |
| | | this.IsPump = false; |
| | | } |
| | | |
| | | public PumpSingleMatchingViewModel(Vmo.PumpGroupVmo rhs) |
| | | public PumpSingleMatchingViewModel(Vmo.AssetsPumpGroupVmo rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Name = rhs.Name; |
| | | this.ParentID = rhs.PumpSeriesID; |
| | | this.ParentID = rhs.SeriesID; |
| | | this.IsPump = false; |
| | | } |
| | | |
| | | public PumpSingleMatchingViewModel(Vmo.PumpMainVmo rhs, long GroupID) |
| | | public PumpSingleMatchingViewModel(Vmo.AssetsPumpMainVmo rhs, long GroupID) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Name = rhs.Name; |
| | |
| | | this.IsPump = true; |
| | | } |
| | | |
| | | public PumpSingleMatchingViewModel(Vmo.PumpMainVmo rhs) |
| | | public PumpSingleMatchingViewModel(Vmo.AssetsPumpMainVmo rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Name = rhs.Name; |
| | | this.ParentID = rhs.PumpSeriesID; |
| | | this.ParentID = rhs.SeriesID; |
| | | this.IsPump = true; |
| | | this.Erosion = rhs.Erosion; |
| | | this.RatedPower = rhs.RatedPower; |
| | | this.RatedFlow = rhs.RatedFlow; |
| | | this.RatedSpeed = rhs.RatedSpeed; |
| | | this.RatedHead = rhs.RatedHead; |
| | | this.RatedEfficiency = rhs.RatedEfficiency; |
| | | this.D2 = rhs.D2; |
| | | this.Description = rhs.Description; |
| | |
| | | /// </summary> |
| | | public string Description { get; set; } |
| | | } |
| | | } |
| | | |
| | | public class PhartViewModel |
| | | { |
| | | public long ID { get; set; } |
| | | public string OtherName { get; set; } |
| | | public int Importance { get; set; } |
| | | public int SortCode { get; set; } |
| | | } |