| | |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Description = rhs.Description; |
| | | if (rhs.MaterialName == null) |
| | | if (rhs.Material == null) |
| | | { |
| | | this.MaterialName = "默认"; |
| | | this.Material = "默认"; |
| | | } |
| | | else |
| | | { |
| | | this.MaterialName = rhs.MaterialName.ToString(); |
| | | this.Material = rhs.Material.ToString(); |
| | | } |
| | | this.Name = rhs.Name; |
| | | this.SortCode = rhs.SortCode; |
| | | this.KeyWord = rhs.KeyWord; |
| | | this.IsDefault = rhs.IsDefault; |
| | | this.Coefficient = rhs.Coefficient; |
| | | this.KeyWord = string.Join(",", rhs.KeyWord); |
| | | this.MinorLoss = rhs.MinorLoss; |
| | | } |
| | | |
| | | public void Reset(Vmo.AssetsCompressorMainVmo rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | if (rhs.MaterialName == null) |
| | | if (rhs.Material == null) |
| | | { |
| | | this.MaterialName = "默认"; |
| | | this.Material = "默认"; |
| | | } |
| | | else |
| | | { |
| | | this.MaterialName = rhs.MaterialName.ToString(); |
| | | this.Material = rhs.Material.ToString(); |
| | | } |
| | | this.Description = rhs.Description; |
| | | this.Name = rhs.Name; |
| | | this.KeyWord = rhs.KeyWord; |
| | | this.IsDefault = rhs.IsDefault; |
| | | this.KeyWord = string.Join(",", rhs.KeyWord); |
| | | this.SortCode = rhs.SortCode; |
| | | this.Coefficient = rhs.Coefficient; |
| | | this.MinorLoss = rhs.MinorLoss; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | [DisplayName("材料")] |
| | | [Browsable(true)] |
| | | public string MaterialName { get; set; } |
| | | public string Material { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 系数 |
| | | /// </summary> |
| | | [DisplayName("损失系数")] |
| | | [Browsable(true)] |
| | | public double? Coefficient { get; set; } |
| | | public double MinorLoss { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 排序码 |
| | |
| | | [DisplayName("关键字")] |
| | | [Browsable(true)] |
| | | public string KeyWord { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 是否默认 |
| | | /// </summary> |
| | | [DisplayName("是否默认")] |
| | | [Browsable(true)] |
| | | public bool IsDefault { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 说明 |