This commit is contained in:
2023-11-16 10:28:21 +08:00
@@ -1193,15 +1193,15 @@ namespace BLL
/// <returns></returns> /// <returns></returns>
public static int GetUseEquipmentNum(string projectid) public static int GetUseEquipmentNum(string projectid)
{ {
/*var result = (from x in Funs.DB.InApproveManager_EquipmentInItem var result = (from x in Funs.DB.InApproveManager_EquipmentInItem
join y in Funs.DB.InApproveManager_EquipmentIn on x.EquipmentInId equals y.EquipmentInId join y in Funs.DB.InApproveManager_EquipmentIn on x.EquipmentInId equals y.EquipmentInId
where y.ProjectId == projectid && x.IsUsed == true where y.ProjectId == projectid
select x).Count() + select x).Count() +
(from x in Funs.DB.InApproveManager_GeneralEquipmentInItem (from x in Funs.DB.InApproveManager_GeneralEquipmentInItem
join y in Funs.DB.InApproveManager_GeneralEquipmentIn on x.GeneralEquipmentInId equals y join y in Funs.DB.InApproveManager_GeneralEquipmentIn on x.GeneralEquipmentInId equals y
.GeneralEquipmentInId .GeneralEquipmentInId
where y.ProjectId == projectid && x.IsUsed == true where y.ProjectId == projectid
select x).Count();*/ select x).Count();
return 0; return 0;
} }
@@ -1211,10 +1211,10 @@ namespace BLL
/// <returns></returns> /// <returns></returns>
public static int GetSpecialEquipmentNum(string projectid) public static int GetSpecialEquipmentNum(string projectid)
{ {
/*var result = (from x in Funs.DB.InApproveManager_EquipmentInItem var result = (from x in Funs.DB.InApproveManager_EquipmentInItem
join y in Funs.DB.InApproveManager_EquipmentIn on x.EquipmentInId equals y.EquipmentInId join y in Funs.DB.InApproveManager_EquipmentIn on x.EquipmentInId equals y.EquipmentInId
where y.ProjectId == projectid && x.IsUsed == true where y.ProjectId == projectid
select x).Count();*/ select x).Count();
return 0; return 0;
} }
@@ -1224,9 +1224,9 @@ namespace BLL
/// <returns></returns> /// <returns></returns>
public static int GetLicensesNum(string projectid) public static int GetLicensesNum(string projectid)
{ {
/*var result = (from x in Funs.DB.License_LicenseManager var result = (from x in Funs.DB.License_LicenseManager
where x.ProjectId == projectid && x.IsHighRisk == true && x.CompileDate > Const.DtmarkTime where x.ProjectId == projectid && x.CompileDate > Const.DtmarkTime
select x).Count();*/ select x).Count();
return 0; return 0;
} }
@@ -1236,10 +1236,10 @@ namespace BLL
/// <returns></returns> /// <returns></returns>
public static int GetLicensesCloseNum(string projectid) public static int GetLicensesCloseNum(string projectid)
{ {
/*var result = (from x in Funs.DB.License_LicenseManager var result = (from x in Funs.DB.License_LicenseManager
where x.ProjectId == projectid && x.IsHighRisk == true && x.WorkStates == "3" && where x.ProjectId == projectid && x.WorkStates == "3" &&
x.CompileDate > Const.DtmarkTime x.CompileDate > Const.DtmarkTime
select x).Count();*/ select x).Count();
return 0; return 0;
} }
@@ -1249,10 +1249,9 @@ namespace BLL
/// <returns></returns> /// <returns></returns>
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.HazardValue == "0.3" || x.HazardValue == "1" || x.HazardValue == null) && x.States == "3" && x.CheckTime > Const.DtmarkTime
x.CheckTime > Const.DtmarkTime select x).Count();
select x).Count();*/
return 0; return 0;
} }
@@ -1262,10 +1261,10 @@ namespace BLL
/// <returns></returns> /// <returns></returns>
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" && where x.ProjectId == projectid && (x.HazardValue == "0.3" || x.HazardValue == "1" || x.HazardValue == null) && x.States != "3" &&
x.CheckTime > Const.DtmarkTime x.CheckTime > Const.DtmarkTime
select x).Count();*/ select x).Count();
return 0; return 0;
} }
@@ -1275,10 +1274,10 @@ namespace BLL
/// <returns></returns> /// <returns></returns>
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.HazardValue == "3" && x.States == "3" &&
x.CheckTime > Const.DtmarkTime x.CheckTime > Const.DtmarkTime
select x).Count();*/ select x).Count();
return 0; return 0;
} }
@@ -1288,10 +1287,10 @@ namespace BLL
/// <returns></returns> /// <returns></returns>
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" && where x.ProjectId == projectid && x.HazardValue == "3" && x.States != "3" &&
x.CheckTime > Const.DtmarkTime x.CheckTime > Const.DtmarkTime
select x).Count();*/ select x).Count();
return 0; return 0;
} }