| | |
| | | using System.ComponentModel; |
| | | |
| | | namespace HStation.WinFrmUI.Assets |
| | | namespace HStation.WinFrmUI.Assets |
| | | { |
| | | public class AssetsValveMainViewModel |
| | | { |
| | |
| | | this.ID = rhs.ID; |
| | | this.Name = rhs.Name; |
| | | this.Description = rhs.Description; |
| | | if (rhs.Caliber == null ) |
| | | if (rhs.Caliber == null) |
| | | { |
| | | this.Caliber = "默认"; |
| | | } |
| | |
| | | { |
| | | this.Caliber = rhs.Caliber.ToString(); |
| | | } |
| | | if (rhs.Material == null|| rhs.Material==string.Empty) |
| | | if (rhs.Material == null || rhs.Material == string.Empty) |
| | | { |
| | | this.Material = "默认"; |
| | | } |
| | |
| | | } |
| | | this.Coefficient = rhs.MinorLoss; |
| | | this.SeriesID = rhs.SeriesID; |
| | | this.ValveType = rhs.ValveType; |
| | | this.SortCode = rhs.SortCode; |
| | | this.KeyWord = string.Join(",", rhs.KeyWord); |
| | | this.KeyWord = string.Join(",", rhs.KeyWords); |
| | | this.ValveSetting = rhs.ValveSetting; |
| | | } |
| | | |
| | |
| | | { |
| | | this.Caliber = rhs.Caliber.ToString(); |
| | | } |
| | | if (rhs.Material == null) |
| | | if (rhs.Material == null || rhs.Material == string.Empty) |
| | | { |
| | | this.Material = "默认"; |
| | | } |
| | |
| | | } |
| | | this.Coefficient = rhs.MinorLoss; |
| | | this.SeriesID = rhs.SeriesID; |
| | | this.ValveType = rhs.ValveType; |
| | | this.SortCode = rhs.SortCode; |
| | | this.KeyWord = string.Join(",", rhs.KeyWord); |
| | | this.KeyWord = string.Join(",", rhs.KeyWords); |
| | | this.ValveSetting = rhs.ValveSetting; |
| | | } |
| | | |
| | |
| | | [DisplayName("损失系数")] |
| | | [Browsable(true)] |
| | | public double Coefficient { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 类型 |
| | | /// </summary> |
| | | [DisplayName("类型")] |
| | | [Browsable(true)] |
| | | public HStation.Assets.eValveType ValveType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 说明 |