| | |
| | | { |
| | | } |
| | | |
| | | public PipeViewModel(Vmo.PipeLineMainVmo rhs) |
| | | public PipeViewModel(Vmo.AssetsPipeMainVmo rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Description = rhs.Description; |
| | |
| | | { |
| | | this.Caliber = rhs.Caliber.ToString(); |
| | | } |
| | | this.MaterialName = rhs.MaterialName; |
| | | if (rhs.MaterialName == null) |
| | | { |
| | | this.MaterialName = "默认"; |
| | | } |
| | | else |
| | | { |
| | | this.MaterialName = rhs.MaterialName.ToString(); |
| | | } |
| | | this.Hazen = rhs.Hazen; |
| | | this.Darcy = rhs.Darcy; |
| | | this.Manning = rhs.Manning; |
| | |
| | | this.IsDefault = rhs.IsDefault; |
| | | } |
| | | |
| | | public void Reset(Vmo.PipeLineMainVmo rhs) |
| | | public void Reset(Vmo.AssetsPipeMainVmo rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Hazen = rhs.Hazen; |