1项目安全看板,安全检查问题统计问题处理

This commit is contained in:
夏菊 2025-11-24 09:36:28 +08:00
parent 70cc95b7f6
commit 447db93f9b
1 changed files with 5 additions and 4 deletions

View File

@ -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());
}