| | |
| | | { |
| | | this.Caliber = rhs.Caliber.ToString(); |
| | | } |
| | | if (rhs.MaterialName == null) |
| | | if (rhs.Material == null) |
| | | { |
| | | this.MaterialName = "默认"; |
| | | } |
| | | else |
| | | { |
| | | this.MaterialName = rhs.MaterialName.ToString(); |
| | | this.MaterialName = rhs.Material.ToString(); |
| | | } |
| | | this.Name = rhs.Name; |
| | | this.SortCode = rhs.SortCode; |
| | | this.KeyWord = rhs.KeyWord; |
| | | this.IsDefault = rhs.IsDefault; |
| | | this.Angle = rhs.Angle; |
| | | this.ConnectionLength = rhs.ConnectionLength; |
| | | this.Coefficient = rhs.Coefficient; |
| | | this.ElbowLengthType = rhs.ElbowLengthType; |
| | | this.MinorLoss = rhs.MinorLoss; |
| | | } |
| | | |
| | | public void Reset(Vmo.AssetsElbowMainVmo rhs) |
| | |
| | | { |
| | | this.Caliber = rhs.Caliber.ToString(); |
| | | } |
| | | if (rhs.MaterialName == null) |
| | | if (rhs.Material == null) |
| | | { |
| | | this.MaterialName = "默认"; |
| | | } |
| | | else |
| | | { |
| | | this.MaterialName = rhs.MaterialName.ToString(); |
| | | this.MaterialName = rhs.Material.ToString(); |
| | | } |
| | | this.Description = rhs.Description; |
| | | this.Name = rhs.Name; |
| | | this.KeyWord = rhs.KeyWord; |
| | | this.IsDefault = rhs.IsDefault; |
| | | this.SortCode = rhs.SortCode; |
| | | this.Angle = rhs.Angle; |
| | | this.ConnectionLength = rhs.ConnectionLength; |
| | | this.Coefficient = rhs.Coefficient; |
| | | this.ElbowLengthType = rhs.ElbowLengthType; |
| | | this.MinorLoss = rhs.MinorLoss; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | [DisplayName("损失系数")] |
| | | [Browsable(true)] |
| | | public double? Coefficient { get; set; } |
| | | public double? MinorLoss { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 排序码 |
| | |
| | | public string KeyWord { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 是否默认 |
| | | /// </summary> |
| | | [DisplayName("是否默认")] |
| | | [Browsable(true)] |
| | | public bool IsDefault { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 弯头类型 |
| | | /// </summary> |
| | | [DisplayName("弯头类型")] |
| | | [Browsable(true)] |
| | | public eLengthType? ConnectionLength { get; set; } |
| | | public eLengthType? ElbowLengthType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 角度 |