代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -33,7 +33,7 @@ namespace FineUIPro.Web.DataShow
|
||||
}
|
||||
}
|
||||
|
||||
public static List<Model.Solution_LargerHazard> LargerHazard = new List<Model.Solution_LargerHazard>();
|
||||
public static List<Model.Solution_LargerHazard> LargerHazard = new List<Model.Solution_LargerHazard>();
|
||||
|
||||
/// <summary>
|
||||
/// 绑定数据
|
||||
@@ -161,7 +161,7 @@ namespace FineUIPro.Web.DataShow
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("LargeEngineeringItem.aspx?projectId={0}", Grid1.SelectedRowID, "查看 - ")));
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@@ -180,8 +180,8 @@ namespace FineUIPro.Web.DataShow
|
||||
/// <returns></returns>
|
||||
protected int Count1(object projectId)
|
||||
{
|
||||
int cout1 = 0;
|
||||
allCount1= LargerHazard.Where(x => x.IsSuperLargerHazard == false || !x.IsSuperLargerHazard.HasValue ).Count();
|
||||
int cout1 = 0;
|
||||
allCount1 = LargerHazard.Where(x => x.IsSuperLargerHazard == false || !x.IsSuperLargerHazard.HasValue).Count();
|
||||
if (projectId != null)
|
||||
{
|
||||
cout1 = LargerHazard.Where(x => x.ProjectId == projectId.ToString() && (x.IsSuperLargerHazard == false || !x.IsSuperLargerHazard.HasValue)).Count();
|
||||
@@ -228,7 +228,7 @@ namespace FineUIPro.Web.DataShow
|
||||
protected int Count4(object projectId)
|
||||
{
|
||||
int cout1 = 0;
|
||||
allCount4 = LargerHazard.Where(x => x.States == Const.State_1).Count();
|
||||
allCount4 = LargerHazard.Where(x => x.States == Const.State_1).Count();
|
||||
if (projectId != null)
|
||||
{
|
||||
cout1 = LargerHazard.Where(x => x.ProjectId == projectId.ToString() && x.States == Const.State_1).Count();
|
||||
@@ -248,7 +248,7 @@ namespace FineUIPro.Web.DataShow
|
||||
allCount5 = LargerHazard.Sum(x => x.TrainPersonNum ?? 0);
|
||||
if (projectId != null)
|
||||
{
|
||||
cout1 = LargerHazard.Where(x => x.ProjectId == projectId.ToString()).Sum(x=>x.TrainPersonNum ?? 0);
|
||||
cout1 = LargerHazard.Where(x => x.ProjectId == projectId.ToString()).Sum(x => x.TrainPersonNum ?? 0);
|
||||
}
|
||||
return cout1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user