1
This commit is contained in:
@@ -38,6 +38,8 @@ namespace FineUIPro.Web.ReportManage.HazardFactor
|
||||
BLL.ProjectService.InitProjectDropDownList(this.drpProject, 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);
|
||||
BLL.RiskLevelService.InitRiskLevelDropDownListByRiskLevelName(this.drpNetRiskLevel, true);
|
||||
Funs.DropDownPageSize(this.ddlPageSize);
|
||||
////权限按钮方法
|
||||
this.GetButtonPower();
|
||||
@@ -92,6 +94,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.IsNullOrEmpty(this.rbState.SelectedValue))
|
||||
//{
|
||||
// sb.Append("AND tba.State = @State ");
|
||||
|
||||
Reference in New Issue
Block a user