namespace HStation.WinFrmUI.Xhs.PumpProduct { public class AssetsPumpMainViewModel { public AssetsPumpMainViewModel(Vmo.AssetsPumpMainVmo rhs) : base() { this.ID = rhs.ID; this.PumpSeriesID = rhs.SeriesID; 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; this.Model = rhs; } /* public AssetsPumpMainViewModel(Vmo.AssetsPumpMainVmo rhs) : base() { this.SeriesID = rhs.SeriesID; 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.AssetsPumpMainVmo rhs) { this.ID = rhs.ID; this.PumpSeriesID = rhs.SeriesID; 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; } /// /// id /// public long ID { get; set; } /// /// 泵系列ID /// public long PumpSeriesID { get; set; } /// /// 名称 /// public string Name { 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; } public Vmo.AssetsPumpMainVmo Model { get; set; } } }