| | |
| | | { |
| | | var opening = Yw.WinFrmUI.PhartGraphHelper.GetGraphParas<Yw.WinFrmUI.Phart.QLGraphParasViewModel>((Yw.Ahart.eCurveType)def.Diagram.GraphList[i].GraphType, def.Diagram.GraphList[i].GraphParas); |
| | | var model = new HydroFactorCurveViewModel(); |
| | | model.CurveFactor = opening.Opening; |
| | | model.CurveFactor = opening.Opening ?? 0; |
| | | model.CurveData = new List<HydroCurvePointViewModel>(); |
| | | foreach (var item in curve) |
| | | { |
| | |
| | | public static bool Matching(HydroPressmeterMatchingViewModel input, List<AssetsPressmeterMainVmo> pressmeterVmos) |
| | | { |
| | | //输入参数验证 |
| | | |
| | | if (input == null) |
| | | { |
| | | return false; |
| | |
| | | { |
| | | input.MatchingMaterial = translation.Material; |
| | | } |
| | | if (input.MinorLoss < 0) |
| | | if (input.MinorLoss <= 0) |
| | | { |
| | | input.MatchingMinorLoss = translation.MinorLoss; |
| | | } |
| | | if (input.Roughness < 0) |
| | | if (input.Roughness <= 0) |
| | | { |
| | | input.MatchingRoughness = translation.Roughness; |
| | | } |
| | |
| | | { |
| | | input.MatchingStartDiameter = translation.StartDiameter; |
| | | } |
| | | input.MatchingTranslationType = (Yw.WinFrmUI.eTranslationType)(int)translation.TranslationType; |
| | | |
| | | return true; |
| | | } |