using HStation.WinFrmUI.Xhs;
|
|
namespace HStation.WinFrmUI
|
{
|
public class XhsProjectSimulationValveMatchingViewModel
|
{
|
public XhsProjectSimulationValveMatchingViewModel()
|
{
|
}
|
|
public XhsProjectSimulationValveMatchingViewModel(ValveMatchingViewModel rhs)
|
{
|
this.ID = rhs.ID;
|
this.DbLocked = rhs.DbLocked;
|
this.Material = rhs.Material;
|
this.Caliber = rhs.Diameter;
|
this.Code = rhs.Code;
|
this.Name = rhs.Name;
|
this.DbId = rhs.DbId;
|
this.ModelType = rhs.ModelType;
|
this.MatchingDiameter = rhs.MatchingDiameter.ToString();
|
this.MatchingMinorLoss = rhs.MatchingMinorLoss;
|
this.MatchingDbid = rhs.MatchingDbId;
|
this.MatchingMaterial = rhs.MatchingMaterial;
|
if (rhs.DbId == null || rhs.DbId == string.Empty)
|
{
|
MatchingType = eMatchingStatus.Failed;
|
}
|
else
|
{
|
MatchingType = eMatchingStatus.Succeed;
|
}
|
if (rhs.MatchingDbId == null || rhs.MatchingDbId == string.Empty)
|
{
|
MatchingSatus = eMatchingStatus.Failed;
|
}
|
else
|
{
|
MatchingSatus = eMatchingStatus.Succeed;
|
}
|
}
|
|
/// <summary>
|
/// ID
|
/// </summary>
|
[DisplayName("ID")]
|
[Browsable(false)]
|
public long ID { get; set; }
|
|
/// <summary>
|
/// 名称
|
/// </summary>
|
[DisplayName("名称")]
|
[Browsable(true)]
|
public string Name { get; set; }
|
|
/// <summary>
|
///修改前Dbid
|
/// </summary>
|
[DisplayName("Dbid")]
|
[Browsable(false)]
|
public string DbId { get; set; }
|
|
/// <summary>
|
///修改后Dbid
|
/// </summary>
|
[DisplayName("MatchingDbid")]
|
[Browsable(false)]
|
public string MatchingDbid { get; set; }
|
|
/// <summary>
|
/// 编码
|
/// </summary>
|
[DisplayName("编码")]
|
[Browsable(true)]
|
public string Code { get; set; }
|
|
/// <summary>
|
/// 型号名
|
/// </summary>
|
[DisplayName("型号")]
|
[Browsable(true)]
|
public string ModelType { get; set; }
|
|
/// <summary>
|
/// 材质
|
/// </summary>
|
[DisplayName("材质")]
|
[Browsable(true)]
|
public string Material { get; set; }
|
|
/// <summary>
|
///修改后材质
|
/// </summary>
|
[DisplayName("匹配材质")]
|
[Browsable(true)]
|
public string MatchingMaterial { get; set; }
|
|
/// <summary>
|
/// 口径
|
/// </summary>
|
[DisplayName("口径")]
|
[Browsable(true)]
|
public double? Caliber { get; set; }
|
|
/// <summary>
|
///修改后口径
|
/// </summary>
|
[DisplayName("匹配口径")]
|
[Browsable(true)]
|
public string MatchingDiameter { get; set; }
|
|
/// <summary>
|
/// Db锁定
|
/// </summary>
|
[DisplayName("锁定")]
|
[Browsable(true)]
|
public bool DbLocked { get; set; }
|
|
/// <summary>
|
/// 损失系数
|
/// </summary>
|
[DisplayName("损失系数")]
|
[Browsable(true)]
|
public double? MinorLoss { get; set; }
|
|
/// <summary>
|
///修改后损失系数
|
/// </summary>
|
[DisplayName("匹配损失系数")]
|
[Browsable(true)]
|
public double? MatchingMinorLoss { get; set; }
|
|
/// <summary>
|
/// 匹配状态
|
/// </summary>
|
[DisplayName("匹配状态")]
|
[Browsable(true)]
|
public eMatchingStatus MatchingType { get; set; }
|
|
/// <summary>
|
/// 是否匹配成功
|
/// </summary>
|
[DisplayName("匹配")]
|
[Browsable(true)]
|
public eMatchingStatus MatchingSatus { get; set; }
|
}
|
}
|