From 03503e387f4d0f4c47b061b4cc1eeb2482ebaf33 Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期五, 25 十月 2024 09:36:15 +0800 Subject: [PATCH] 修改阀门曲线选择 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/03-valve/01-valvesinglematching/ValveSingleMatchingViewModel.cs | 183 +++++++++++++++++++++++++-------------------- 1 files changed, 102 insertions(+), 81 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/03-valve/01-valvesinglematching/ValveSingleMatchingViewModel.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/03-valve/01-valvesinglematching/ValveSingleMatchingViewModel.cs index c868702..938cb07 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/03-valve/01-valvesinglematching/ValveSingleMatchingViewModel.cs +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/03-valve/01-valvesinglematching/ValveSingleMatchingViewModel.cs @@ -1,114 +1,135 @@ -锘縩amespace HStation.WinFrmUI.Xhs +锘縩amespace HStation.WinFrmUI { public class ValveSingleMatchingViewModel { - public ValveSingleMatchingViewModel(Vmo.PumpSeriesVmo rhs) + public ValveSingleMatchingViewModel(Vmo.AssetsValveMainVmo rhs) { this.ID = rhs.ID; this.Name = rhs.Name; - this.IsPump = false; - } - - public ValveSingleMatchingViewModel(Vmo.PumpGroupVmo rhs) - { - this.ID = rhs.ID; - this.Name = rhs.Name; - this.ParentID = rhs.PumpSeriesID; - this.IsPump = false; - } - - public ValveSingleMatchingViewModel(Vmo.PumpMainVmo rhs, long GroupID) - { - this.ID = rhs.ID; - this.Name = rhs.Name; - this.ParentID = GroupID; - this.IsPump = true; - } - - public ValveSingleMatchingViewModel(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; + this.ID = rhs.ID; + this.Name = rhs.Name; + this.Description = rhs.Description; + this.Material = rhs.MaterialName; + if (rhs.Caliber == null) + { + this.Caliber = "榛樿"; + } + else + { + this.Caliber = rhs.Caliber.ToString(); + } + if (rhs.MaterialName == null) + { + this.Material = "榛樿"; + } + else + { + this.Material = rhs.MaterialName.ToString(); + } + this.Coefficient = rhs.Coefficient; + this.SeriesID = rhs.SeriesID; + this.SeriesType = rhs.Type; + this.SortCode = rhs.SortCode; + this.ValveLift = rhs.ValveLift; + this.KeyWord = rhs.KeyWord; + this.ValveSetting = rhs.ValveSetting; } + [DisplayName("ID")] + [Browsable(false)] public long ID { get; set; } - public long ParentID { get; set; } - public string Name { get; set; } - public bool IsPump { get; set; } /// <summary> - /// 娉电郴鍒桰D + /// 绯诲垪ID /// </summary> - public long PumpSeriesID { get; set; } + [DisplayName("绯诲垪ID")] + [Browsable(false)] + public long SeriesID { get; set; } /// <summary> - /// 鍙傛暟 + /// 鍙e緞 /// </summary> - public Dictionary<string, string> Paras { get; set; } + [DisplayName("鍙e緞(mm)")] + [Browsable(true)] + public string Caliber { get; set; } /// <summary> - /// 鏍囩 + /// 鏉愭枡 /// </summary> - public List<string> Flags { get; set; } + [DisplayName("鏉愭枡")] + [Browsable(true)] + public string Material { get; set; } /// <summary> - /// 鏍囧織 + /// 鎹熷け绯绘暟 /// </summary> - public string TagName { get; set; } + [DisplayName("鎹熷け绯绘暟")] + [Browsable(true)] + public double Coefficient { get; set; } /// <summary> - /// 鎺掑簭鐮� + /// 绫诲瀷 /// </summary> - public int SortCode { get; set; } - - /// <summary> - /// 棰濆畾杞�� - /// </summary> - public double RatedSpeed { get; set; } - - /// <summary> - /// 棰濆畾娴侀噺 - /// </summary> - public double RatedFlow { get; set; } - - /// <summary> - /// 棰濆畾鎵▼ - /// </summary> - public double RatedHead { get; set; } - - /// <summary> - /// 棰濆畾鏁堢巼 - /// </summary> - public double? RatedEfficiency { get; set; } - - /// <summary> - /// 棰濆畾鍔熺巼 - /// </summary> - public double RatedPower { get; set; } - - /// <summary> - /// 姘旇殌 - /// </summary> - public double? Erosion { get; set; } - - /// <summary> - /// 鍙惰疆澶栧緞 - /// </summary> - public double? D2 { get; set; } + [DisplayName("绫诲瀷")] + [Browsable(true)] + public HStation.Assets.eAssetsValveSeriesType SeriesType { get; set; } /// <summary> /// 璇存槑 /// </summary> + [DisplayName("璇存槑")] + [Browsable(true)] public string Description { get; set; } + + /// <summary> + /// 闃�闂ㄥ紑搴� + /// </summary> + [DisplayName("闃�闂ㄥ紑搴�")] + [Browsable(true)] + public int? ValveLift { get; set; } + + /// <summary> + /// 鎺掑簭鐮� + /// </summary> + [DisplayName("鎺掑簭鐮�")] + [Browsable(true)] + public int SortCode { get; set; } + + /// <summary> + /// 鍚嶇О + /// </summary> + [DisplayName("鍚嶇О")] + [Browsable(true)] + public string Name { get; set; } + + /// <summary> + /// 鍒涘缓浜� + /// </summary> + [DisplayName("鍒涘缓浜�")] + [Browsable(false)] + public string CreateName { get; set; } + + /// <summary> + /// 鍒涘缓鏃堕棿 + /// </summary> + [DisplayName("鍒涘缓鏃堕棿")] + [Browsable(false)] + public string CreateTime { get; set; } + + /// <summary> + /// 璇嗗埆鍏抽敭瀛� + /// </summary> + [DisplayName("鍏抽敭瀛�")] + [Browsable(true)] + public string KeyWord { get; set; } + + /// <summary> + /// 闃�闂ㄨ缃� + /// </summary> + [DisplayName("闃�闂ㄨ缃�")] + [Browsable(true)] + public string ValveSetting { get; set; } } } \ No newline at end of file -- Gitblit v1.9.3