namespace HStation.WinFrmUI
{
///
///
///
public class AssetsTranslationFactorMgrViewModel
{
///
///
///
public AssetsTranslationFactorMgrViewModel()
{ }
///
///
///
public AssetsTranslationFactorMgrViewModel(HStation.Vmo.AssetsTranslationFactorVmo rhs)
{
this.ID = rhs.ID;
this.Name = rhs.Name;
this.Material = rhs.Material;
this.StartDiameter = rhs.StartDiameter;
this.EndDiameter = rhs.EndDiameter;
this.TranslationType = rhs.TranslationType;
this.MinorLoss = rhs.MinorLoss;
this.Description = rhs.Description;
this.Vmo = rhs;
}
///
///
///
public void Reset(HStation.Vmo.AssetsTranslationFactorVmo rhs)
{
this.ID = rhs.ID;
this.Name = rhs.Name;
this.Material = rhs.Material;
this.StartDiameter = rhs.StartDiameter;
this.EndDiameter = rhs.EndDiameter;
this.TranslationType = rhs.TranslationType;
this.MinorLoss = rhs.MinorLoss;
this.Description = rhs.Description;
this.Vmo = rhs;
}
///
/// id
///
[Display(Name = "ID")]
public long ID { get; set; }
///
/// 型号
///
[Display(Name = "型号")]
public string Name { get; set; }
///
/// 上游直径
///
[Display(Name = "上游直径")]
public double StartDiameter { get; set; }
///
/// 下游直径
///
[Display(Name = "下游直径")]
public double EndDiameter { get; set; }
///
/// 材料
///
[Display(Name = "材料")]
public string Material { get; set; }
///
/// 过渡件类型
///
[Display(Name = "过渡件类型")]
public HStation.Assets.eTranslationType TranslationType { get; set; }
///
/// 局阻系数
///
///
[Display(Name = "局阻系数")]
public double MinorLoss { get; set; }
///
/// 排序码
///
[Display(Name = "排序码")]
public int SortCode
{
get { return this.Vmo.SortCode; }
set { this.Vmo.SortCode = value; }
}
///
/// 说明
///
[Display(Name = "说明")]
public string Description { get; set; }
///
///
///
public HStation.Vmo.AssetsTranslationFactorVmo Vmo { get; set; }
}
}