数据大屏优化

This commit is contained in:
2026-09-23 17:55:18 +08:00
parent 147121cdb2
commit 4bb579d661
39 changed files with 2012 additions and 320 deletions
@@ -35,7 +35,12 @@ namespace FineUIPro.Web.ReportManage.HazardFactor
{
if (!IsPostBack)
{
BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
//BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
if (string.IsNullOrWhiteSpace(this.CurrUser.UnitId) || this.CurrUser.UnitId == Const.UnitId_XJYJ)
{
this.drpUnit.Hidden = false;
UnitService.InitBranchUnitDropDownList(this.drpUnit, true, true);
}
BLL.ConstValue.InitConstValueDropDownList(this.drpMonth, ConstValue.Group_0009, true);
BLL.ConstValue.InitConstValueDropDownList(this.drpYear, ConstValue.Group_0008, true);
BLL.RiskLevelService.InitRiskLevelDropDownListByRiskLevelName(this.drpBaseRiskLevel, true);
@@ -85,11 +90,19 @@ namespace FineUIPro.Web.ReportManage.HazardFactor
sb.Append("AND tba.UnitId = @UnitId ");
listStr.Add(new SqlParameter("@UnitId", this.CurrUser.UnitId));
}
if (!string.IsNullOrWhiteSpace(this.drpProject.SelectedValue) && this.drpProject.SelectedValue != Const._Null)
else
{
sb.Append("AND tba.ProjectId = @ProjectId ");
listStr.Add(new SqlParameter("@ProjectId", this.drpProject.SelectedValue));
if (!string.IsNullOrWhiteSpace(this.drpUnit.SelectedValue) && this.drpUnit.SelectedValue != Const._Null)
{
sb.Append("AND tba.UnitId = @UnitId ");
listStr.Add(new SqlParameter("@UnitId", this.drpUnit.SelectedValue));
}
}
//if (!string.IsNullOrWhiteSpace(this.drpProject.SelectedValue) && this.drpProject.SelectedValue != Const._Null)
//{
// sb.Append("AND tba.ProjectId = @ProjectId ");
// listStr.Add(new SqlParameter("@ProjectId", this.drpProject.SelectedValue));
//}
if (!string.IsNullOrWhiteSpace(this.drpYear.SelectedValue) && this.drpYear.SelectedValue != Const._Null)
{
sb.Append("AND tba.Year = @Year ");