diff --git a/SolarPower/Controllers/StationReportController.cs b/SolarPower/Controllers/StationReportController.cs index 7a59d73..6fc7b86 100644 --- a/SolarPower/Controllers/StationReportController.cs +++ b/SolarPower/Controllers/StationReportController.cs @@ -490,10 +490,11 @@ namespace SolarPower.Controllers monthmoney = dbody["monthmoney"] == null ? "0" : dbody["monthmoney"].ToString(); monthmoneyone = (Convert.ToDouble(dbody["monthmoneyone"].ToString()) + Convert.ToDouble(monthmoneyone)).ToString(); monthGeneratingCapacity = Checknull(Math.Round(Convert.ToDouble(dbody["GeneratingCapacity"]), 2).ToString()); - } - double kwp = Convert.ToDouble(monthKWH) / Convert.ToDouble(monthGeneratingCapacity); - avgKWHKWP = Checknull(Math.Round(kwp, 2).ToString()); + + double kwp = Convert.ToDouble(monthKWH) / Convert.ToDouble(monthGeneratingCapacity); + avgKWHKWP = Checknull(Math.Round(kwp, 2).ToString()); + } if (dbody["SolarType"].ToString() == "1" && Formhead.Result.Data.ShowMoney == 1)//檢驗是否為租用 {