| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | var valve = dict.OrderBy(x => x.Value).LastOrDefault().Key; |
| | | input.MatchingDbId = valve.ID.ToString(); |
| | | if (string.IsNullOrEmpty(input.ModelType)) |
| | |
| | | { |
| | | input.MatchingValveSetting = valve.ValveSetting; |
| | | } |
| | | input.MatchingValveType = (Yw.WinFrmUI.eValveType)(int)valve.ValveType; |
| | | if (input.CurveDbId == null) |
| | | { |
| | | var list = Task.Run(async () => |
| | |
| | | { |
| | | input.MatchingModelType = pipe.Name; |
| | | } |
| | | if (input.Roughness == 0) |
| | | { |
| | | input.MatchingRoughness = pipe.Hazen; |
| | | } |
| | | |
| | | if (string.IsNullOrEmpty(input.Material)) |
| | | { |
| | | input.MatchingMaterial = pipe.Material; |
| | | } |
| | | if (input.MinorLoss < 0) |
| | | { |
| | | input.MatchingMinorLoss = pipe.MinorLoss; |
| | | input.MatchingMinorLoss = pipe.Hazen; |
| | | } |
| | | |
| | | return true; |
| | |
| | | { |
| | | input.Caliber = threelink.Caliber ?? 0; |
| | | } |
| | | if (input.MinorLoss <= 0) |
| | | { |
| | | input.MatchingMinorLoss = threelink.MinorLoss; |
| | | } |
| | | |
| | | if (input.RunningThroughLoss <= 0) |
| | | { |
| | | input.MatchingRunningThroughLoss = threelink.RunThroughMinorLoss; |
| | |
| | | } |
| | | if (input.MinorLoss <= 0) |
| | | { |
| | | input.MatchingMinorLoss = sprinkler.MinorLoss; |
| | | input.MatchingMinorLoss = sprinkler.FlowMinorLoss; |
| | | } |
| | | |
| | | return true; |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | // 关键字 |
| | | int keywordWeight = 1; |