| | |
| | | { |
| | | input.MatchingValveSetting = valve.ValveSetting; |
| | | } |
| | | input.MatchingValveType = (Yw.WinFrmUI. eValveType)(int )valve.ValveType; |
| | | if (input.CurveDbId == null) |
| | | input.MatchingValveType = (Yw.WinFrmUI.eValveType)(int)valve.ValveType; |
| | | if (input.CurveDbId == null) |
| | | { |
| | | var list = Task.Run(async () => |
| | | await new BLL.PhartDiagramRelation().GetExByObjectTypeAndObjectID(HStation.Assets.DataType.ValveMain, valve.ID)).Result; |
| | |
| | | } |
| | | if (input.MinorLoss <= 0) |
| | | { |
| | | input.MatchingMinorLoss = sprinkler.MinorLoss; |
| | | input.MatchingMinorLoss = sprinkler.FlowMinorLoss; |
| | | } |
| | | |
| | | return true; |
| | |
| | | if (input.StartDiameter < 0) |
| | | { |
| | | input.MatchingStartDiameter = translation.StartDiameter; |
| | | } |
| | | if (input.Diameter < 0) |
| | | { |
| | | input.MatchingDiameter = translation.Diameter; |
| | | } |
| | | |
| | | return true; |