using HStation.WinFrmUI.Xhs;
|
|
namespace HStation.WinFrmUI
|
{
|
public class XhsProjectSimulationFourlinkMatchingViewModel
|
{
|
public XhsProjectSimulationFourlinkMatchingViewModel()
|
{
|
}
|
|
public XhsProjectSimulationFourlinkMatchingViewModel(FourlinkMatchingViewModel rhs)
|
{
|
this.ID = rhs.ID;
|
this.DbLocked = rhs.DbLocked;
|
this.Material = rhs.Material;
|
this.Caliber = rhs.Caliber;
|
this.Code = rhs.Code;
|
this.Dbid = rhs.Dbid;
|
this.ModelType = rhs.ModelType;
|
this.MatchingCaliber = rhs.MatchingCaliber;
|
this.MatchingMinorLoss = rhs.MatchingMinorLoss;
|
this.MatchingDbid = rhs.MatchingDbid;
|
this.MatchingMaterial = rhs.MatchingMaterial;
|
|
if (rhs.Dbid == null)
|
{
|
MatchingType = eMatchingStatus.Failed;
|
}
|
else
|
{
|
MatchingType = 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 long? 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 MatchingCaliber { 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; }
|
}
|
}
|