| | |
| | | { |
| | | var visual = _allVisualList.First(); |
| | | this.txtMaterial.EditValue = visual.Material; |
| | | this.txtDiameter.EditValue = visual.Diameter; |
| | | //this.txtDiameter.EditValue = visual.Diameter; |
| | | this.txtLength.EditValue = visual.Length; |
| | | this.txtRoughness.EditValue = visual.Roughness; |
| | | this.txtMinorLoss.EditValue = visual.MinorLoss; |
| | |
| | | } |
| | | x.Material = material; |
| | | } |
| | | if (diameter.HasValue) |
| | | { |
| | | if (x.Diameter != diameter) |
| | | { |
| | | _changeHelper.Append(x, eChangeType.Update); |
| | | _propStatusHelper?.UpdatePropStatus(x.Code, nameof(x.Diameter), Yw.Hydro.ePropStatus.Normal, $"{DateTime.Now.ToStandardString()}通过设置组件修改"); |
| | | } |
| | | x.Diameter = diameter.Value; |
| | | } |
| | | //if (diameter.HasValue) |
| | | //{ |
| | | // if (x.Diameter != diameter) |
| | | // { |
| | | // _changeHelper.Append(x, eChangeType.Update); |
| | | // _propStatusHelper?.UpdatePropStatus(x.Code, nameof(x.Diameter), Yw.Hydro.ePropStatus.Normal, $"{DateTime.Now.ToStandardString()}通过设置组件修改"); |
| | | // } |
| | | // x.Diameter = diameter.Value; |
| | | //} |
| | | if (length.HasValue) |
| | | { |
| | | if (x.Length != length) |