using HStation.WinFrmUI.Xhs; namespace HStation.WinFrmUI { public class FourLinkFormViewModel { public FourLinkFormViewModel() { } public FourLinkFormViewModel(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 = eMatchingType.Error; } else { MatchingType = eMatchingType.Success; } } /// /// ID /// [DisplayName("ID")] [Browsable(false)] public long ID { get; set; } /// /// 名称 /// [DisplayName("名称")] [Browsable(true)] public string Name { get; set; } /// ///修改前Dbid /// [DisplayName("Dbid")] [Browsable(false)] public string Dbid { get; set; } /// ///修改后Dbid /// [DisplayName("MatchingDbid")] [Browsable(false)] public long? MatchingDbid { get; set; } /// /// 编码 /// [DisplayName("编码")] [Browsable(true)] public string Code { get; set; } /// /// 型号名 /// [DisplayName("型号名")] [Browsable(true)] public string ModelType { get; set; } /// /// 材质 /// [DisplayName("材质")] [Browsable(true)] public string Material { get; set; } /// ///修改后材质 /// [DisplayName("修改后材质")] [Browsable(true)] public string MatchingMaterial { get; set; } /// /// 口径 /// [DisplayName("口径")] [Browsable(true)] public double? Caliber { get; set; } /// ///修改后口径 /// [DisplayName("修改后口径")] [Browsable(true)] public string MatchingCaliber { get; set; } /// /// Db锁定 /// [DisplayName("是否锁定")] [Browsable(true)] public bool DbLocked { get; set; } /// /// 损失系数 /// [DisplayName("损失系数")] [Browsable(true)] public double? MinorLoss { get; set; } /// ///修改后损失系数 /// [DisplayName("修改后损失系数")] [Browsable(true)] public double? MatchingMinorLoss { get; set; } /// /// 是否匹配成功 /// [DisplayName("是否匹配成功")] [Browsable(true)] public eMatchingType MatchingType { get; set; } } }