| | |
| | | public HydroTranslationViewModel(Yw.Model.HydroTranslationInfo rhs, Yw.Model.HydroModelInfo hydroInfo) : base(rhs, hydroInfo) |
| | | { |
| | | this.Elev = Math.Round(rhs.Elev, 4); |
| | | this.TranslationType = rhs.TranslationType; |
| | | this.Material = rhs.Material; |
| | | this.Length = Math.Round(rhs.Length, 0); |
| | | this.Roughness = Math.Round(rhs.Roughness, 0); |
| | | this.MinorLoss = Math.Round(rhs.MinorLoss, 0); |
| | | this.Length = Math.Round(rhs.Length, 4); |
| | | this.Roughness = rhs.Roughness; |
| | | this.MinorLoss = rhs.MinorLoss; |
| | | this.StartDiameter = Math.Round(rhs.StartDiameter, 0); |
| | | this.EndDiameter = Math.Round(rhs.EndDiameter, 0); |
| | | } |
| | |
| | | public virtual double Elev { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 过渡件类型 |
| | | /// </summary> |
| | | [Category("数据")] |
| | | [Display(Name = "过渡件类型")] |
| | | [DisplayName("过渡件类型")] |
| | | [PropertyOrder(2002)] |
| | | [Browsable(true)] |
| | | public string TranslationType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 材质 |
| | | /// </summary> |
| | | [Category("数据")] |
| | | [Display(Name = "材质")] |
| | | [DisplayName("材质")] |
| | | [PropertyOrder(2002)] |
| | | [PropertyOrder(2003)] |
| | | [Browsable(true)] |
| | | public string Material { get; set; } |
| | | |
| | |
| | | [Display(Name = "长度(m)")] |
| | | [DisplayName("长度")] |
| | | [DisplayUnit("m")] |
| | | [PropertyOrder(2003)] |
| | | [Browsable(true)] |
| | | [PropertyOrder(2004)] |
| | | [Browsable(false)] |
| | | public double Length { get; set; } |
| | | |
| | | /// <summary> |
| | |
| | | [Display(Name = "粗糙系数")] |
| | | [DisplayName("粗糙系数")] |
| | | [Description("海森威廉公式系数")] |
| | | [PropertyOrder(2004)] |
| | | [Browsable(true)] |
| | | [PropertyOrder(2005)] |
| | | [Browsable(false)] |
| | | public double Roughness { get; set; } |
| | | |
| | | /// <summary> |
| | |
| | | [Display(Name = "局阻系数")] |
| | | [DisplayName("局阻系数")] |
| | | [Description("局部阻力系数")] |
| | | [PropertyOrder(2005)] |
| | | [PropertyOrder(2006)] |
| | | [Browsable(true)] |
| | | public double MinorLoss { get; set; } |
| | | |
| | |
| | | public override double? CalcuMinorLoss { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 沿程损失 |
| | | /// </summary> |
| | | [Category("计算结果")] |
| | | [DisplayName("沿程损失")] |
| | | [DisplayUnit("m")] |
| | | [Display(Name = "沿程损失(m)")] |
| | | [PropertyOrder(19009)] |
| | | [HydroCalcuPro] |
| | | [ShowEditor(false)] |
| | | [Browsable(true)] |
| | | public override double? CalcuFrictionLoss { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | [Browsable(false)] |
| | |
| | | public override void UpdateProperty() |
| | | { |
| | | base.UpdateProperty(); |
| | | this.Elev = Math.Round(this.Vmo.Elev, 4); |
| | | this.TranslationType = this.Vmo.TranslationType; |
| | | this.Material = this.Vmo.Material; |
| | | this.Length = Math.Round(this.Vmo.Length, 4); |
| | | this.Roughness = this.Vmo.Roughness; |
| | |
| | | public override void UpdateVmoProperty() |
| | | { |
| | | base.UpdateVmoProperty(); |
| | | this.Vmo.Elev = this.Elev; |
| | | this.TranslationType = this.TranslationType; |
| | | this.Vmo.Material = this.Material; |
| | | this.Vmo.Length = this.Length; |
| | | this.Vmo.Roughness = this.Roughness; |