namespace Yw.WinFrmUI
{
///
/// 过渡件匹配ViewModel
///
public class HydroTranslationMatchingViewModel
{
///
///
///
public HydroTranslationMatchingViewModel() { }
///
///
///
public HydroTranslationMatchingViewModel(Yw.Model.HydroTranslationInfo rhs, Yw.Model.HydroModelInfo hydroInfo)
{
this.Name = rhs.Name;
this.Code = rhs.Code;
this.DbLocked = rhs.DbLocked;
this.DbId = rhs.DbId;
this.ModelType = rhs.ModelType;
this.Material = rhs.Material;
//this.Diameter = rhs.Diameter;
this.StartDiameter = rhs.StartDiameter;
this.EndDiameter = rhs.EndDiameter;
this.Roughness = rhs.Roughness;
this.MinorLoss = rhs.MinorLoss;
this.eAlgorithmType = eAlgorithmType.Hazen;
}
///
///
///
public HydroTranslationMatchingViewModel(HydroTranslationViewModel rhs) : this(rhs.Vmo, rhs.HydroInfo) { }
///
/// 编码
///
public string Code { get; set; }
///
/// 名称
///
public string Name { get; set; }
///
/// Db锁定
///
public bool DbLocked { get; set; }
///
///DbId
///
public string DbId { get; set; }
///
/// 型号
///
public string ModelType { get; set; }
///
/// 材质
///
public string Material { get; set; }
///
/// 直径
///
public double Diameter { get; set; }
///
/// 上游直径
///
public double StartDiameter { get; set; }
///
/// 下游直径
///
public double EndDiameter { get; set; }
///
/// 粗糙系数
///
public double Roughness { get; set; }
///
/// 损失系数
///
public double MinorLoss { get; set; }
///
/// 算法类型
///
public eAlgorithmType eAlgorithmType { get; set; }
///
/// 匹配型号
///
public string MatchingModelType { get; set; }
///
/// 匹配Dbid
///
public string MatchingDbId { get; set; }
///
/// 匹配材质
///
public string MatchingMaterial { get; set; }
///
/// 匹配直径
///
public double? MatchingDiameter { get; set; }
///
/// 匹配上游直径
///
public double? MatchingStartDiameter { get; set; }
///
/// 匹配下游直径
///
public double? MatchingEndDiameter { get; set; }
///
/// 匹配粗糙系数
///
public double? MatchingRoughness { get; set; }
///
/// 匹配损失系数
///
public double? MatchingMinorLoss { get; set; }
}
}