| | |
| | | using HStation.CAL; |
| | | using HStation.WinFrmUI.PhartRelation; |
| | | using Swashbuckle.AspNetCore.SwaggerGen; |
| | | using System.Linq; |
| | | using System.Windows.Input; |
| | | using Yw.WinFrmUI.Q3d; |
| | | |
| | | namespace HStation.WinFrmUI |
| | | namespace HStation.WinFrmUI |
| | | { |
| | | public class AssetsMatchingHelper |
| | | { |
| | |
| | | { |
| | | 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; |