From 4812786898dc040fc236e9e00e21b9f4d08f57e3 Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期四, 24 十月 2024 19:10:08 +0800 Subject: [PATCH] 修改单个阀门匹配 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/03-valve/01-valvesinglematching/ValveSingleMatchingViewModel.cs | 181 +++++++++++++++++++++++++-------------------- 1 files changed, 101 insertions(+), 80 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 9db2c95..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 @@ -2,113 +2,134 @@ { public class ValveSingleMatchingViewModel { - public ValveSingleMatchingViewModel(Vmo.AssetsPumpSeriesVmo rhs) + public ValveSingleMatchingViewModel(Vmo.AssetsValveMainVmo rhs) { this.ID = rhs.ID; this.Name = rhs.Name; - this.IsPump = false; - } - - public ValveSingleMatchingViewModel(Vmo.AssetsPumpGroupVmo rhs) - { - this.ID = rhs.ID; - this.Name = rhs.Name; - this.ParentID = rhs.PumpSeriesID; - this.IsPump = false; - } - - public ValveSingleMatchingViewModel(Vmo.AssetsPumpMainVmo rhs, long GroupID) - { - this.ID = rhs.ID; - this.Name = rhs.Name; - this.ParentID = GroupID; - this.IsPump = true; - } - - public ValveSingleMatchingViewModel(Vmo.AssetsPumpMainVmo 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