增加企业展示

This commit is contained in:
2023-06-10 10:55:18 +08:00
parent 1c8c630c21
commit 1836f816cf
69 changed files with 91 additions and 57 deletions
@@ -24,6 +24,7 @@ namespace FineUIPro.Web.DataShow
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
// 绑定表格t
BindGrid();
this.Panel1.Title = "环保数据(" + BLL.UnitService.GetUnitNameByUnitId(BLL.CommonService.GetThisUnitId()) + "";
}
}
@@ -40,8 +41,8 @@ namespace FineUIPro.Web.DataShow
,(SELECT ThisYearValue FROM Environmental_ChemicalReportItem WHERE SortIndex='01'
AND ChemicalReportId=Report.ChemicalReportId) AS TotalEnergyConsumption
,0 AS IncomeComprehensiveEnergyConsumption
,(SELECT ThisYearValue FROM Environmental_ChemicalReportItem WHERE SortIndex='25'
AND ChemicalReportId=Report.ChemicalReportId) AS TotalEnergyConsumption
,(SELECT ThisYearValue FROM Environmental_ChemicalReportItem WHERE SortIndex='70'
AND ChemicalReportId=Report.ChemicalReportId) AS CO2
FROM Environmental_ChemicalReport AS Report";
}
else
@@ -51,8 +52,8 @@ namespace FineUIPro.Web.DataShow
AND ArchitectureReportId=Report.ArchitectureReportId) AS TotalEnergyConsumption
,(SELECT ThisYearValue FROM Environmental_ArchitectureReportItem WHERE SortIndex='15'
AND ArchitectureReportId=Report.ArchitectureReportId) AS IncomeComprehensiveEnergyConsumption
,(SELECT ThisYearValue FROM Environmental_ArchitectureReportItem WHERE SortIndex='24'
AND ArchitectureReportId=Report.ArchitectureReportId) AS TotalEnergyConsumption
,(SELECT ThisYearValue FROM Environmental_ArchitectureReportItem WHERE SortIndex='38'
AND ArchitectureReportId=Report.ArchitectureReportId) AS CO2
FROM Environmental_ArchitectureReport AS Report
WHERE 1=1 ";
}