This commit is contained in:
2026-04-03 16:15:58 +08:00
parent 50f4c898ee
commit 53eeca8eb3
9 changed files with 90 additions and 10 deletions
@@ -37,6 +37,8 @@ namespace FineUIPro.Web.ReportManage.HazardFactor
{
BLL.ConstValue.InitConstValueDropDownList(this.drpMonth, ConstValue.Group_0009, true);
BLL.ConstValue.InitConstValueDropDownList(this.drpYear, ConstValue.Group_0008, true);
BLL.RiskLevelService.InitRiskLevelDropDownListByRiskLevelName(this.drpBaseRiskLevel, true);
BLL.RiskLevelService.InitRiskLevelDropDownListByRiskLevelName(this.drpNetRiskLevel, true);
Funs.DropDownPageSize(this.ddlPageSize);
this.ProjectId = this.CurrUser.LoginProjectId;
if (!string.IsNullOrWhiteSpace(Request.Params["projectId"]) && Request.Params["projectId"] != this.ProjectId)
@@ -74,6 +76,16 @@ namespace FineUIPro.Web.ReportManage.HazardFactor
sb.Append("AND tba.Month = @Month ");
listStr.Add(new SqlParameter("@Month", month.Length == 1 ? $"0{month}" : month));
}
if (!string.IsNullOrWhiteSpace(this.drpBaseRiskLevel.SelectedValue) && this.drpBaseRiskLevel.SelectedValue != Const._Null)
{
sb.Append("AND tba.BaseRiskLevel = @BaseRiskLevel ");
listStr.Add(new SqlParameter("@BaseRiskLevel", this.drpBaseRiskLevel.SelectedValue));
}
if (!string.IsNullOrWhiteSpace(this.drpNetRiskLevel.SelectedValue) && this.drpNetRiskLevel.SelectedValue != Const._Null)
{
sb.Append("AND tba.NetRiskLevel = @NetRiskLevel ");
listStr.Add(new SqlParameter("@NetRiskLevel", this.drpNetRiskLevel.SelectedValue));
}
if (!string.IsNullOrWhiteSpace(this.rbState.SelectedValue))
{
sb.Append("AND tba.State = @State ");