| | |
| | | //visual.DbLocked = matching.DbLocked; |
| | | //visual.DbId = matching.DbId; |
| | | //visual.ModelType = matching.ModelType; |
| | | //if (matching.TranslationType.HasValue) |
| | | //{ |
| | | // visual.TranslationType = HydroTranslationTypeEnumHelper.GetTranslationTypeName(matching.TranslationType.Value); |
| | | //} |
| | | //visual.Material = matching.Material; |
| | | //visual.Diameter = matching.Diameter; |
| | | //visual.StartDiameter = matching.StartDiameter; |
| | | //visual.EndDiameter = matching.EndDiameter; |
| | | //visual.Roughness = matching.Roughness; |
| | |
| | | visual.DbId = matching.MatchingDbId; |
| | | result = true; |
| | | } |
| | | if (matching.MatchingTranslationType.HasValue) |
| | | { |
| | | var translationType = HydroTranslationTypeEnumHelper.GetTranslationTypeName(matching.MatchingTranslationType.Value); |
| | | if (visual.TranslationType != translationType) |
| | | { |
| | | changeHelper?.Append(visual, eChangeType.Update); |
| | | propStatusHelper?.UpdatePropStatus(visual.Code, nameof(visual.TranslationType), ePropStatus.Normal, $"{DateTime.Now.ToStandardString()}通过产品配置匹配修改"); |
| | | } |
| | | visual.TranslationType = translationType; |
| | | result = true; |
| | | } |
| | | if (!string.IsNullOrEmpty(matching.MatchingMaterial)) |
| | | { |
| | | if (visual.Material != matching.MatchingMaterial) |