数据大屏优化
This commit is contained in:
@@ -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 ");
|
||||
|
||||
Reference in New Issue
Block a user