namespace Yw.WinFrmUI
{
///
/// 弯头匹配ViewModel
///
public class HydroElbowMatchingViewModel
{
///
///
///
public HydroElbowMatchingViewModel() { }
///
///
///
public HydroElbowMatchingViewModel(Yw.Model.HydroElbowInfo rhs, Yw.Model.HydroModelInfo hydroInfo)
{
this.ID = rhs.ID;
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.Caliber = rhs.Caliber;
this.MinorLoss = rhs.MinorLoss;
this.BendingAngle = rhs.BendingAngle.HasValue ? (int)rhs.BendingAngle.Value : null;
this.ElbowType = HydroElbowTypeEnumHelper.GetElbowType(rhs.ElbowType);
}
///
///
///
public HydroElbowMatchingViewModel(HydroElbowViewModel rhs) : this(rhs.Vmo, rhs.HydroInfo) { }
///
/// ID
///
public long ID { get; set; }
///
/// 编码
///
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? Caliber { get; set; }
///
/// 损失系数
///
public double? MinorLoss { get; set; }
///
/// 弯曲角度
///
public int? BendingAngle { get; set; }
///
/// 弯头类型
///
public eElbowType? ElbowType { get; set; }
///
/// 匹配型号
///
public string MatchingModelType { get; set; }
///
/// 匹配Dbid
///
public string MatchingDbId { get; set; }
///
/// 匹配材质
///
public string MatchingMaterial { get; set; }
///
/// 匹配口径
///
public double? MatchingCaliber { get; set; }
///
/// 匹配损失系数
///
public double? MatchingMinorLoss { get; set; }
///
/// 匹配弯曲角度
///
public int? MatchingBendingAngle { get; set; }
///
/// 匹配弯头类型
///
public eElbowType? MatchingElbowType { get; set; }
}
}