報表查詢-月報表匯出: 修改條件判斷範圍

This commit is contained in:
wanling040@gmail.com 2022-08-11 13:52:25 +08:00
parent 292a9e7322
commit eea5486df1

View File

@ -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)//檢驗是否為租用
{