namespace HStation.WinFrmUI.Xhs.PumpProduct
|
{
|
public class PumpMainViewModel : PumpMainDto
|
{
|
public PumpMainViewModel(PumpMainDto rhs) : base()
|
{
|
this.ID = rhs.ID;
|
this.PumpSeriesID = rhs.PumpSeriesID;
|
this.Paras = rhs.Paras;
|
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 PumpMainViewModel(AddPumpMainDto 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(UpdatePumpMainDto rhs)
|
{
|
this.ID = rhs.ID;
|
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;
|
}
|
}
|
}
|