1
This commit is contained in:
@@ -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 ");
|
||||
|
||||
Reference in New Issue
Block a user