1
This commit is contained in:
@@ -1384,7 +1384,7 @@ namespace BLL
|
|||||||
public static int GetGeneralClosedNum(string projectid)
|
public static int GetGeneralClosedNum(string projectid)
|
||||||
{
|
{
|
||||||
var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister
|
var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister
|
||||||
where x.ProjectId == projectid && x.Risk_Level == "一般" && x.States == "3" &&
|
where x.ProjectId == projectid && x.Risk_Level == "一般事故隐患" && x.States == "3" &&
|
||||||
x.CheckTime > Const.DtmarkTime
|
x.CheckTime > Const.DtmarkTime
|
||||||
select x).Count();
|
select x).Count();
|
||||||
return result;
|
return result;
|
||||||
@@ -1397,7 +1397,7 @@ namespace BLL
|
|||||||
public static int GetGeneralNotClosedNum(string projectid)
|
public static int GetGeneralNotClosedNum(string projectid)
|
||||||
{
|
{
|
||||||
var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister
|
var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister
|
||||||
where x.ProjectId == projectid && x.Risk_Level == "一般" && x.States != "3" && x.States != "-1" &&
|
where x.ProjectId == projectid && x.Risk_Level == "一般事故隐患" && x.States != "3" && x.States != "-1" &&
|
||||||
x.CheckTime > Const.DtmarkTime
|
x.CheckTime > Const.DtmarkTime
|
||||||
select x).Count();
|
select x).Count();
|
||||||
return result;
|
return result;
|
||||||
@@ -1410,7 +1410,7 @@ namespace BLL
|
|||||||
public static int GetMajorClosedNum(string projectid)
|
public static int GetMajorClosedNum(string projectid)
|
||||||
{
|
{
|
||||||
var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister
|
var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister
|
||||||
where x.ProjectId == projectid && x.Risk_Level == "重大" && x.States == "3" &&
|
where x.ProjectId == projectid && x.Risk_Level == "重大事故隐患" && x.States == "3" &&
|
||||||
x.CheckTime > Const.DtmarkTime
|
x.CheckTime > Const.DtmarkTime
|
||||||
select x).Count();
|
select x).Count();
|
||||||
return result;
|
return result;
|
||||||
@@ -1423,7 +1423,7 @@ namespace BLL
|
|||||||
public static int GetMajorNotClosedNum(string projectid)
|
public static int GetMajorNotClosedNum(string projectid)
|
||||||
{
|
{
|
||||||
var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister
|
var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister
|
||||||
where x.ProjectId == projectid && x.Risk_Level == "重大" && x.States != "3" && x.States != "-1" &&
|
where x.ProjectId == projectid && x.Risk_Level == "重大事故隐患" && x.States != "3" && x.States != "-1" &&
|
||||||
x.CheckTime > Const.DtmarkTime
|
x.CheckTime > Const.DtmarkTime
|
||||||
select x).Count();
|
select x).Count();
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user