1项目安全看板,安全检查问题统计问题处理
This commit is contained in:
parent
70cc95b7f6
commit
447db93f9b
|
|
@ -169,7 +169,7 @@ namespace FineUIPro.Web
|
||||||
{
|
{
|
||||||
listCategories.Add(getunits.ShortUnitName ?? getunits.UnitCode);
|
listCategories.Add(getunits.ShortUnitName ?? getunits.UnitCode);
|
||||||
var unitHazardRegisters = getHazardRegisterLists.Where(x => x.ResponsibleUnit == getunits.UnitId);
|
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());
|
//listdata.Add(unitHazardRegisters.Count() - noW.Count());
|
||||||
//listdata2.Add(unitHazardRegisters.Count());
|
//listdata2.Add(unitHazardRegisters.Count());
|
||||||
|
|
||||||
|
|
@ -186,7 +186,7 @@ namespace FineUIPro.Web
|
||||||
{
|
{
|
||||||
listCategories.Add(unit.ShortUnitName ?? unit.UnitCode);
|
listCategories.Add(unit.ShortUnitName ?? unit.UnitCode);
|
||||||
var unitHazardRegisters = getHazardRegisterLists.Where(x => x.ResponsibleUnit == unit.UnitId);
|
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());
|
//listdata.Add(unitHazardRegisters.Count() - noW.Count());
|
||||||
//listdata2.Add(unitHazardRegisters.Count());
|
//listdata2.Add(unitHazardRegisters.Count());
|
||||||
listdata.Add(unitHazardRegisters.Where(x => x.States == "1").Count());
|
listdata.Add(unitHazardRegisters.Where(x => x.States == "1").Count());
|
||||||
|
|
@ -224,8 +224,9 @@ namespace FineUIPro.Web
|
||||||
{
|
{
|
||||||
listCategories.Add(item.RegisterTypesName);
|
listCategories.Add(item.RegisterTypesName);
|
||||||
var unitHazardRegisters = getHazardRegisterLists.Where(x => x.RegisterTypesId == item.RegisterTypesId);
|
var unitHazardRegisters = getHazardRegisterLists.Where(x => x.RegisterTypesId == item.RegisterTypesId);
|
||||||
var noW = unitHazardRegisters.Where(x => x.States != "3");
|
//var noW = unitHazardRegisters.Where(x => x.States != "3");
|
||||||
listdata.Add(unitHazardRegisters.Count() - noW.Count());
|
//listdata.Add(unitHazardRegisters.Count() - noW.Count());
|
||||||
|
listdata.Add(unitHazardRegisters.Where(x => x.States == "1").Count());
|
||||||
listdata2.Add(unitHazardRegisters.Count());
|
listdata2.Add(unitHazardRegisters.Count());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue