| | |
| | | } |
| | | var input = new AssetsMatchingViewModel(); |
| | | |
| | | |
| | | //水泵 |
| | | input.PumpMatchingList = hydroInfo.Pumps?.Select(x => Create(hydroInfo, x)).ToList(); |
| | | |
| | |
| | | input.PipeMatchingList = hydroInfo.Pipes?.Select(x => Create(hydroInfo, x)).ToList(); |
| | | |
| | | //弯头 |
| | | input.ElbowsMatchingList = hydroInfo.Elbows?.Select(x => Create(hydroInfo, x)).ToList(); |
| | | input.ElbowMatchingList = hydroInfo.Elbows?.Select(x => Create(hydroInfo, x)).ToList(); |
| | | |
| | | //三通 |
| | | input.ThreelinkMatchingList = hydroInfo.Threelinks?.Select(x => Create(hydroInfo, x)).ToList(); |
| | |
| | | } |
| | | |
| | | //弯头 |
| | | if (output.ElbowsMatchingList != null && output.ElbowsMatchingList.Count > 0) |
| | | if (output.ElbowMatchingList != null && output.ElbowMatchingList.Count > 0) |
| | | { |
| | | if (hydroInfo.Elbows != null && hydroInfo.Elbows.Count > 0) |
| | | { |
| | | foreach (var elbowsMatching in output.ElbowsMatchingList) |
| | | foreach (var elbowsMatching in output.ElbowMatchingList) |
| | | { |
| | | var elbows = hydroInfo.Elbows.Find(x => x.Code == elbowsMatching.Code); |
| | | if (elbows != null) |