2023-08-04

This commit is contained in:
2023-08-04 17:06:50 +08:00
parent 70a51ab125
commit 78e8037f08
81 changed files with 8897 additions and 2763 deletions
@@ -161,7 +161,50 @@ namespace BLL
Funs.DB.SubmitChanges();
}
}
public static decimal GetLatstTimeTotalEnergyConsumption()
{
var q1 = (from x in Funs.DB.Environmental_ChemicalReportItem where x.SortIndex == "01" select x);
decimal d1 = 0;
foreach (var item in q1)
{
d1 += Funs.GetNewDecimalOrZero(item.ThisYearValue);
}
var q2 = (from x in Funs.DB.Environmental_ArchitectureReportItem where x.SortIndex == "01" select x);
decimal d2 = 0;
foreach (var item in q2)
{
d2 += Funs.GetNewDecimalOrZero(item.ThisYearValue);
}
return d1 + d2;
}
public static decimal GetLatstTimeIncomeComprehensiveEnergyConsumption()
{
var q2 = (from x in Funs.DB.Environmental_ArchitectureReportItem where x.SortIndex == "15" select x);
decimal d2 = 0;
foreach (var item in q2)
{
d2 += Funs.GetNewDecimalOrZero(item.ThisYearValue);
}
return d2;
}
public static decimal GetLatstTimeNewWaterConsumption()
{
var q1 = (from x in Funs.DB.Environmental_ChemicalReportItem where x.SortIndex == "70" select x);
decimal d1 = 0;
foreach (var item in q1)
{
d1 += Funs.GetNewDecimalOrZero(item.ThisYearValue);
}
var q2 = (from x in Funs.DB.Environmental_ArchitectureReportItem where x.SortIndex == "38" select x);
decimal d2 = 0;
foreach (var item in q2)
{
d2 += Funs.GetNewDecimalOrZero(item.ThisYearValue);
}
return d1 + d2;
}
/// <summary>
/// 获取指标名称集合
/// </summary>