20023-08-10

This commit is contained in:
2023-08-10 11:40:02 +08:00
parent c41b3b9777
commit 02fcf5be10
82 changed files with 9031 additions and 2997 deletions
@@ -379,5 +379,50 @@ namespace BLL
list[98] = new ListItem("万元", "99");
return list;
}
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;
}
}
}