| | |
| | | namespace HStation.WinFrmUI.Xhs.PumpProduct |
| | | { |
| | | public class PumpMainViewModel |
| | | public class AssetsPumpMainViewModel |
| | | { |
| | | public PumpMainViewModel(Vmo.PumpMainVmo rhs) : base() |
| | | public AssetsPumpMainViewModel(Vmo.AssetsPumpMainVmo rhs) : base() |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.PumpSeriesID = rhs.PumpSeriesID; |
| | | this.PumpSeriesID = rhs.SeriesID; |
| | | this.Paras = rhs.Paras; |
| | | this.RatedPower = rhs.RatedPower; |
| | | this.RatedEfficiency = rhs.RatedEfficiency; |
| | |
| | | this.Model = rhs; |
| | | } |
| | | |
| | | /* public PumpMainViewModel(Vmo.PumpMainVmo rhs) : base() |
| | | { |
| | | this.PumpSeriesID = rhs.PumpSeriesID; |
| | | this.RatedPower = rhs.RatedPower; |
| | | this.RatedEfficiency = rhs.RatedEfficiency; |
| | | this.Erosion = rhs.Erosion; |
| | | this.D2 = rhs.D2; |
| | | this.Name = rhs.Name; |
| | | this.TagName = rhs.TagName; |
| | | this.SortCode = rhs.SortCode; |
| | | this.RatedSpeed = rhs.RatedSpeed; |
| | | this.RatedHead = rhs.RatedHead; |
| | | this.RatedFlow = rhs.RatedFlow; |
| | | this.Description = rhs.Description; |
| | | }*/ |
| | | |
| | | public void Reset(Vmo.PumpMainVmo rhs) |
| | | public void Reset(Vmo.AssetsPumpMainVmo rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.PumpSeriesID = rhs.PumpSeriesID; |
| | | this.PumpSeriesID = rhs.SeriesID; |
| | | this.RatedPower = rhs.RatedPower; |
| | | this.RatedEfficiency = rhs.RatedEfficiency; |
| | | this.Erosion = rhs.Erosion; |
| | |
| | | this.RatedHead = rhs.RatedHead; |
| | | this.RatedFlow = rhs.RatedFlow; |
| | | this.Description = rhs.Description; |
| | | this.Model = rhs; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | public string? Description { get; set; } |
| | | |
| | | public Vmo.PumpMainVmo Model { get; set; } |
| | | public Vmo.AssetsPumpMainVmo Model { get; set; } |
| | | } |
| | | } |