| | |
| | | { |
| | | } |
| | | |
| | | public XhsProjectSimulationElbowsMatchingViewModel(ElbowsMatchingViewModel rhs) |
| | | public XhsProjectSimulationElbowsMatchingViewModel(ElbowMatchingViewModel rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.DbLocked = rhs.DbLocked; |
| | |
| | | this.Code = rhs.Code; |
| | | this.Dbid = rhs.DbId; |
| | | this.ModelType = rhs.ModelType; |
| | | this.MatchingCaliber = rhs.MatchingCaliber; |
| | | this.MatchingCaliber = rhs.MatchingCaliber.ToString(); |
| | | this.MatchingMinorLoss = rhs.MatchingMinorLoss; |
| | | this.MatchingDbid = rhs.MatchingDbId; |
| | | this.MatchingMaterial = rhs.MatchingMaterial; |
| | | |
| | | if (rhs.DbId == null) |
| | | if (rhs.DbId == null || rhs.DbId == string.Empty) |
| | | { |
| | | MatchingType = eMatchingStatus.Failed; |
| | | } |
| | |
| | | /// </summary> |
| | | [DisplayName("MatchingDbid")] |
| | | [Browsable(false)] |
| | | public long? MatchingDbid { get; set; } |
| | | public string MatchingDbid { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 编码 |
| | |
| | | /// <summary> |
| | | /// 型号名 |
| | | /// </summary> |
| | | [DisplayName("型号名")] |
| | | [DisplayName("型号")] |
| | | [Browsable(true)] |
| | | public string ModelType { get; set; } |
| | | |
| | |
| | | /// <summary> |
| | | ///修改后材质 |
| | | /// </summary> |
| | | [DisplayName("修改后材质")] |
| | | [DisplayName("匹配材质")] |
| | | [Browsable(true)] |
| | | public string MatchingMaterial { get; set; } |
| | | |
| | |
| | | /// <summary> |
| | | ///修改后口径 |
| | | /// </summary> |
| | | [DisplayName("修改后口径")] |
| | | [DisplayName("匹配口径")] |
| | | [Browsable(true)] |
| | | public string MatchingCaliber { get; set; } |
| | | |
| | | /// <summary> |
| | | /// Db锁定 |
| | | /// </summary> |
| | | [DisplayName("是否锁定")] |
| | | [DisplayName("锁定")] |
| | | [Browsable(true)] |
| | | public bool DbLocked { get; set; } |
| | | |
| | |
| | | /// <summary> |
| | | ///修改后损失系数 |
| | | /// </summary> |
| | | [DisplayName("修改后损失系数")] |
| | | [DisplayName("匹配损失系数")] |
| | | [Browsable(true)] |
| | | public double? MatchingMinorLoss { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 是否匹配成功 |
| | | /// </summary> |
| | | [DisplayName("是否匹配成功")] |
| | | [DisplayName("匹配")] |
| | | [Browsable(true)] |
| | | public eMatchingStatus MatchingType { get; set; } |
| | | } |