数据大屏优化
This commit is contained in:
@@ -40,9 +40,12 @@
|
||||
<f:DropDownList ID="drpMonth" AutoPostBack="true" EnableSimulateTree="true" runat="server"
|
||||
Width="160px" LabelWidth="50px" Label="月份" OnSelectedIndexChanged="TextBox_TextChanged">
|
||||
</f:DropDownList>
|
||||
<f:DropDownList ID="drpProject" EnableEdit="true" ForceSelection="false" AutoPostBack="true" EnableSimulateTree="true" runat="server"
|
||||
Width="220px" LabelWidth="50px" Label="项目" OnSelectedIndexChanged="TextBox_TextChanged">
|
||||
<f:DropDownList ID="drpUnit" EnableEdit="true" ForceSelection="false" AutoPostBack="true" EnableSimulateTree="true" Hidden="true" runat="server"
|
||||
Width="220px" LabelWidth="50px" Label="单位" OnSelectedIndexChanged="TextBox_TextChanged">
|
||||
</f:DropDownList>
|
||||
<%--<f:DropDownList ID="drpProject" EnableEdit="true" ForceSelection="false" AutoPostBack="true" EnableSimulateTree="true" runat="server"
|
||||
Width="220px" LabelWidth="50px" Label="项目" OnSelectedIndexChanged="TextBox_TextChanged">
|
||||
</f:DropDownList>--%>
|
||||
<f:DropDownList ID="drpBaseRiskLevel" runat="server" Label="固有风险" Width="180px" LabelWidth="80px" AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged">
|
||||
</f:DropDownList>
|
||||
<f:DropDownList ID="drpNetRiskLevel" runat="server" Label="残留风险" Width="180px" LabelWidth="80px" AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged">
|
||||
|
||||
@@ -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 ");
|
||||
|
||||
Generated
+2
-2
@@ -78,13 +78,13 @@ namespace FineUIPro.Web.ReportManage.HazardFactor
|
||||
protected global::FineUIPro.DropDownList drpMonth;
|
||||
|
||||
/// <summary>
|
||||
/// drpProject 控件。
|
||||
/// drpUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpProject;
|
||||
protected global::FineUIPro.DropDownList drpUnit;
|
||||
|
||||
/// <summary>
|
||||
/// drpBaseRiskLevel 控件。
|
||||
|
||||
@@ -40,9 +40,12 @@
|
||||
<f:DropDownList ID="drpMonth" AutoPostBack="true" EnableSimulateTree="true" runat="server"
|
||||
Width="160px" LabelWidth="50px" Label="月份" OnSelectedIndexChanged="TextBox_TextChanged">
|
||||
</f:DropDownList>
|
||||
<f:DropDownList ID="drpProject" EnableEdit="true" ForceSelection="false" AutoPostBack="true" EnableSimulateTree="true" runat="server"
|
||||
Width="220px" LabelWidth="50px" Label="项目" OnSelectedIndexChanged="TextBox_TextChanged">
|
||||
<f:DropDownList ID="drpUnit" EnableEdit="true" ForceSelection="false" AutoPostBack="true" EnableSimulateTree="true" Hidden="true" runat="server"
|
||||
Width="220px" LabelWidth="50px" Label="单位" OnSelectedIndexChanged="TextBox_TextChanged">
|
||||
</f:DropDownList>
|
||||
<%--<f:DropDownList ID="drpProject" EnableEdit="true" ForceSelection="false" AutoPostBack="true" EnableSimulateTree="true" runat="server"
|
||||
Width="220px" LabelWidth="50px" Label="项目" OnSelectedIndexChanged="TextBox_TextChanged">
|
||||
</f:DropDownList>--%>
|
||||
<f:DropDownList ID="drpBaseRiskLevel" runat="server" Label="固有风险" Width="180px" LabelWidth="80px" AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged">
|
||||
</f:DropDownList>
|
||||
<f:DropDownList ID="drpNetRiskLevel" runat="server" Label="残留风险" Width="180px" LabelWidth="80px" AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged">
|
||||
|
||||
@@ -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 ");
|
||||
|
||||
+2
-2
@@ -78,13 +78,13 @@ namespace FineUIPro.Web.ReportManage.HazardFactor
|
||||
protected global::FineUIPro.DropDownList drpMonth;
|
||||
|
||||
/// <summary>
|
||||
/// drpProject 控件。
|
||||
/// drpUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpProject;
|
||||
protected global::FineUIPro.DropDownList drpUnit;
|
||||
|
||||
/// <summary>
|
||||
/// drpBaseRiskLevel 控件。
|
||||
|
||||
@@ -43,7 +43,6 @@ namespace FineUIPro.Web.ReportManage.SafeEnvBudget
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region 加载页面
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
@@ -189,10 +188,6 @@ namespace FineUIPro.Web.ReportManage.SafeEnvBudget
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#region 提交按钮
|
||||
/// <summary>
|
||||
/// 提交按钮
|
||||
|
||||
Reference in New Issue
Block a user