代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using BLL;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using NPOI.SS.Formula.Functions;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
@@ -47,7 +46,7 @@ namespace FineUIPro.Web.DataShow
|
||||
strSql += " AND projectId = @projectId";
|
||||
listStr.Add(new SqlParameter("@projectId", this.drpProject.SelectedValue));
|
||||
}
|
||||
|
||||
|
||||
//if (!string.IsNullOrEmpty(this.txtStartTime.Text))
|
||||
//{
|
||||
// strSql += " AND h.RegisterDate >=@StartTime";
|
||||
@@ -153,7 +152,7 @@ namespace FineUIPro.Web.DataShow
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("SecurityRiskItem.aspx?projectId={0}", Grid1.SelectedRowID, "查看 - ")));
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@@ -190,7 +189,7 @@ namespace FineUIPro.Web.DataShow
|
||||
int cout4 = 0;
|
||||
if (projectId != null)
|
||||
{
|
||||
cout4 = getcount(projectId.ToString(),2);
|
||||
cout4 = getcount(projectId.ToString(), 2);
|
||||
}
|
||||
return cout4;
|
||||
}
|
||||
@@ -228,13 +227,13 @@ namespace FineUIPro.Web.DataShow
|
||||
/// <returns></returns>
|
||||
private int getcount(string projectId, int level)
|
||||
{
|
||||
int count = 0;
|
||||
int count = 0;
|
||||
var getlevel = Funs.DB.Base_RiskLevel.FirstOrDefault(x => x.RiskLevel == level);
|
||||
if (getlevel != null)
|
||||
{
|
||||
count = (from x in Funs.DB.Hazard_HazardSelectedItem
|
||||
join y in Funs.DB.Hazard_HazardList on x.HazardListId equals y.HazardListId
|
||||
where y.ProjectId == projectId && (x.HazardLevel == getlevel.RiskLevelId || x.HazardLevel == level.ToString()) && y.States == Const.State_2
|
||||
join y in Funs.DB.Hazard_HazardList on x.HazardListId equals y.HazardListId
|
||||
where y.ProjectId == projectId && (x.HazardLevel == getlevel.RiskLevelId || x.HazardLevel == level.ToString()) && y.States == Const.State_2
|
||||
&& y.CompileDate.Value.Year >= 2023
|
||||
select x).Count();
|
||||
}
|
||||
@@ -242,7 +241,7 @@ namespace FineUIPro.Web.DataShow
|
||||
{
|
||||
count = (from x in Funs.DB.Hazard_HazardSelectedItem
|
||||
join y in Funs.DB.Hazard_HazardList on x.HazardListId equals y.HazardListId
|
||||
where y.ProjectId == projectId && x.HazardLevel == level.ToString() && y.States == Const.State_2
|
||||
where y.ProjectId == projectId && x.HazardLevel == level.ToString() && y.States == Const.State_2
|
||||
&& y.CompileDate.Value.Year >= 2023
|
||||
select x).Count();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user