// 水泵运行费用 public double GetWaterPumpCost() { double waterPumpCostForProducer = 0; foreach (HeatProducer h in HeatProducers.Values) { waterPumpCostForProducer += new WaterPumpOperationCost(HeatSourceLayoutApp.globalProperty.ElecPrice, h.totalWaterPumpEnergyConsumption).GetResult(); } return Math.Round(waterPumpCostForProducer, 2); }
//水泵运行费用 public double GetWaterPumpOperationCost() { double cost = 0; double elecPrice = HeatSourceLayoutApp.globalProperty.ElecPrice; cost = new WaterPumpOperationCost(elecPrice, this.totalWaterPumpEnergyConsumption).GetResult(); return cost; }