| | |
| | | new LogicCalcuCustomLabelItem(){ Name="进口压力",Value=Math.Round(calcuPumpResult.CalcuPr1.Value,2).ToString(),Unit="m"}, |
| | | new LogicCalcuCustomLabelItem(){ Name="出口压力",Value=Math.Round(calcuPumpResult.CalcuPr2.Value,2).ToString(),Unit="m"}, |
| | | }; |
| | | if (x.Paras != null && x.Paras.Count > 0) |
| | | { |
| | | foreach (var item in x.Paras) |
| | | { |
| | | pumpCustomLabel.Data.Add(new LogicCalcuCustomLabelItem() |
| | | { |
| | | Name = item.Key, |
| | | Value = item.Value, |
| | | Unit = string.Empty |
| | | }); |
| | | } |
| | | } |
| | | allCalcuLabels.Add(pumpCustomLabel); |
| | | } |
| | | }); |
| | |
| | | new LogicCalcuCustomLabelItem(){ Name="流量",Value=Math.Round(calcuEmitter.CalcuQ.Value,1).ToString(),Unit="m³/h"}, |
| | | new LogicCalcuCustomLabelItem(){ Name="压力",Value=Math.Round(calcuEmitter.CalcuPr.Value,2).ToString(),Unit="m"} |
| | | }; |
| | | if (x.Paras != null && x.Paras.Count > 0) |
| | | { |
| | | foreach (var item in x.Paras) |
| | | { |
| | | emitterCustomLabel.Data.Add(new LogicCalcuCustomLabelItem() |
| | | { |
| | | Name = item.Key, |
| | | Value = item.Value, |
| | | Unit = string.Empty |
| | | }); |
| | | } |
| | | } |
| | | allCalcuLabels.Add(emitterCustomLabel); |
| | | }); |
| | | |
| | |
| | | |
| | | #region 水力阻件 |
| | | |
| | | //_calcuResultHelper.HydroInfo.GetAllResistances()?.ForEach(x => |
| | | //{ |
| | | // var calcuResistanceResult = allCalcuResultVisualDict.GetValue(x.Code) as HydroCalcuResistanceResult; |
| | | // var resistanceCustomLabel = new LogicCalcuCustomLabel(); |
| | | // resistanceCustomLabel.Id = x.Code; |
| | | // resistanceCustomLabel.Distance = 50000; |
| | | // resistanceCustomLabel.Data = new List<LogicCalcuCustomLabelItem>() |
| | | // { |
| | | // new LogicCalcuCustomLabelItem(){ Name="流量",Value=Math.Round(calcuResistanceResult.CalcuQ.Value,1).ToString(),Unit="m³/h"}, |
| | | // new LogicCalcuCustomLabelItem(){ Name="进口压力",Value=Math.Round(calcuResistanceResult.CalcuPr1.Value,2).ToString(),Unit="m"}, |
| | | // new LogicCalcuCustomLabelItem(){ Name="出口压力",Value=Math.Round(calcuResistanceResult.CalcuPr2.Value,2).ToString(),Unit="m"} |
| | | // }; |
| | | // allCalcuLabels.Add(resistanceCustomLabel); |
| | | //}); |
| | | _calcuResultHelper.HydroInfo.GetAllResistances()?.ForEach(x => |
| | | { |
| | | var calcuResistanceResult = allCalcuResultVisualDict.GetValue(x.Code) as HydroCalcuResistanceResult; |
| | | var resistanceCustomLabel = new LogicCalcuCustomLabel(); |
| | | resistanceCustomLabel.Id = x.Code; |
| | | resistanceCustomLabel.Distance = 50000; |
| | | resistanceCustomLabel.Data = new List<LogicCalcuCustomLabelItem>() |
| | | { |
| | | new LogicCalcuCustomLabelItem(){ Name="流量",Value=Math.Round(calcuResistanceResult.CalcuQ.Value,1).ToString(),Unit="m³/h"}, |
| | | new LogicCalcuCustomLabelItem(){ Name="进口压力",Value=Math.Round(calcuResistanceResult.CalcuPr1.Value,2).ToString(),Unit="m"}, |
| | | new LogicCalcuCustomLabelItem(){ Name="出口压力",Value=Math.Round(calcuResistanceResult.CalcuPr2.Value,2).ToString(),Unit="m"} |
| | | }; |
| | | if (x.Paras != null && x.Paras.Count > 0) |
| | | { |
| | | foreach (var item in x.Paras) |
| | | { |
| | | resistanceCustomLabel.Data.Add(new LogicCalcuCustomLabelItem() |
| | | { |
| | | Name = item.Key, |
| | | Value = item.Value, |
| | | Unit = string.Empty |
| | | }); |
| | | } |
| | | } |
| | | allCalcuLabels.Add(resistanceCustomLabel); |
| | | }); |
| | | |
| | | #endregion |
| | | |