| | |
| | | { |
| | | } |
| | | |
| | | public PipeLineViewModel(Vmo.AdaptingManageVmo rhs, string hazen, string darcy, string manning) |
| | | public PipeLineViewModel(Vmo.PipeLineManageVmo rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Description = rhs.Description; |
| | | this.Hazen = hazen; |
| | | this.Darcy = darcy; |
| | | this.Manning = manning; |
| | | if (rhs.Caliber == null) |
| | | { |
| | | this.Caliber = "默认"; |
| | | } |
| | | else |
| | | { |
| | | this.Caliber = rhs.Caliber.ToString(); |
| | | } |
| | | this.Material = rhs.Material; |
| | | this.Hazen = rhs.Hazen; |
| | | this.Darcy = rhs.Darcy; |
| | | this.Manning = rhs.Manning; |
| | | this.Name = rhs.Name; |
| | | this.SortCode = rhs.SortCode; |
| | | } |
| | | |
| | | public void Reset(Vmo.AdaptingManageVmo rhs, string hazen, string darcy, string manning) |
| | | public void Reset(Vmo.PipeLineManageVmo rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Hazen = hazen; |
| | | this.Darcy = darcy; |
| | | this.Manning = manning; |
| | | this.Hazen = rhs.Hazen; |
| | | this.Darcy = rhs.Darcy; |
| | | this.Manning = rhs.Manning; |
| | | if (rhs.Caliber == null) |
| | | { |
| | | this.Caliber = "默认"; |
| | | } |
| | | else |
| | | { |
| | | this.Caliber = rhs.Caliber.ToString(); |
| | | } |
| | | this.Material = rhs.Material; |
| | | this.Description = rhs.Description; |
| | | this.Name = rhs.Name; |
| | | this.SortCode = rhs.SortCode; |
| | |
| | | public string Material { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 无量纲 |
| | | /// Hazen |
| | | /// </summary> |
| | | [DisplayName("无量纲")] |
| | | [DisplayName("Hazen")] |
| | | [Browsable(true)] |
| | | public string Hazen { get; set; } |
| | | public double Hazen { get; set; } |
| | | |
| | | /// <summary> |
| | | /// Darcy |
| | | /// </summary> |
| | | [DisplayName("Darcy")] |
| | | [Browsable(true)] |
| | | public string Darcy { get; set; } |
| | | public double? Darcy { get; set; } |
| | | |
| | | /// <summary> |
| | | /// Manning |
| | | /// </summary> |
| | | [DisplayName("Manning")] |
| | | [Browsable(true)] |
| | | public string Manning { get; set; } |
| | | public double? Manning { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 排序码 |