diff --git a/SGGL/FineUIPro.Web/common/mainMenu_HSSE.aspx.cs b/SGGL/FineUIPro.Web/common/mainMenu_HSSE.aspx.cs index fd948750..91e5464f 100644 --- a/SGGL/FineUIPro.Web/common/mainMenu_HSSE.aspx.cs +++ b/SGGL/FineUIPro.Web/common/mainMenu_HSSE.aspx.cs @@ -169,7 +169,7 @@ namespace FineUIPro.Web { listCategories.Add(getunits.ShortUnitName ?? getunits.UnitCode); var unitHazardRegisters = getHazardRegisterLists.Where(x => x.ResponsibleUnit == getunits.UnitId); - var noW = unitHazardRegisters.Where(x => x.States != "3"); + //var noW = unitHazardRegisters.Where(x => x.States != "3"); //listdata.Add(unitHazardRegisters.Count() - noW.Count()); //listdata2.Add(unitHazardRegisters.Count()); @@ -186,7 +186,7 @@ namespace FineUIPro.Web { listCategories.Add(unit.ShortUnitName ?? unit.UnitCode); var unitHazardRegisters = getHazardRegisterLists.Where(x => x.ResponsibleUnit == unit.UnitId); - var noW = unitHazardRegisters.Where(x => x.States != "3"); + //var noW = unitHazardRegisters.Where(x => x.States != "3"); //listdata.Add(unitHazardRegisters.Count() - noW.Count()); //listdata2.Add(unitHazardRegisters.Count()); listdata.Add(unitHazardRegisters.Where(x => x.States == "1").Count()); @@ -224,8 +224,9 @@ namespace FineUIPro.Web { listCategories.Add(item.RegisterTypesName); var unitHazardRegisters = getHazardRegisterLists.Where(x => x.RegisterTypesId == item.RegisterTypesId); - var noW = unitHazardRegisters.Where(x => x.States != "3"); - listdata.Add(unitHazardRegisters.Count() - noW.Count()); + //var noW = unitHazardRegisters.Where(x => x.States != "3"); + //listdata.Add(unitHazardRegisters.Count() - noW.Count()); + listdata.Add(unitHazardRegisters.Where(x => x.States == "1").Count()); listdata2.Add(unitHazardRegisters.Count()); }