| | |
| | | public PipeViewModel(Vmo.AssetsPipeMainVmo rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Description = rhs.Description; |
| | | this.Name = rhs.Name; |
| | | if (rhs.Caliber == null) |
| | | { |
| | | this.Caliber = "默认"; |
| | |
| | | this.Hazen = rhs.Hazen; |
| | | this.Darcy = rhs.Darcy; |
| | | this.Manning = rhs.Manning; |
| | | this.Name = rhs.Name; |
| | | this.MinorLoss = rhs.MinorLoss; |
| | | this.SortCode = rhs.SortCode; |
| | | this.Description = rhs.Description; |
| | | this.KeyWord = string.Join(",", rhs.KeyWord); |
| | | } |
| | | |
| | | public void Reset(Vmo.AssetsPipeMainVmo rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Hazen = rhs.Hazen; |
| | | this.Darcy = rhs.Darcy; |
| | | this.Manning = rhs.Manning; |
| | | this.Name = rhs.Name; |
| | | if (rhs.Caliber == null) |
| | | { |
| | | this.Caliber = "默认"; |
| | |
| | | { |
| | | this.Caliber = rhs.Caliber.ToString(); |
| | | } |
| | | this.Material = rhs.Material; |
| | | this.Description = rhs.Description; |
| | | this.Name = rhs.Name; |
| | | this.KeyWord = string.Join(",", rhs.KeyWord); |
| | | if (rhs.Material == null) |
| | | { |
| | | this.Material = "默认"; |
| | | } |
| | | else |
| | | { |
| | | this.Material = rhs.Material.ToString(); |
| | | } |
| | | this.Hazen = rhs.Hazen; |
| | | this.Darcy = rhs.Darcy; |
| | | this.Manning = rhs.Manning; |
| | | this.MinorLoss = rhs.MinorLoss; |
| | | this.SortCode = rhs.SortCode; |
| | | this.Description = rhs.Description; |
| | | this.KeyWord = string.Join(",", rhs.KeyWord); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | public double? Manning { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 系数 |
| | | /// </summary> |
| | | [DisplayName("局阻系数")] |
| | | [Browsable(true)] |
| | | public double MinorLoss { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 排序码 |
| | | /// </summary> |
| | | [DisplayName("排序码")] |