20231116
This commit is contained in:
parent
7fef771f73
commit
aa87005eb3
|
|
@ -1202,7 +1202,7 @@ namespace BLL
|
|||
.GeneralEquipmentInId
|
||||
where y.ProjectId == projectid
|
||||
select x).Count();
|
||||
return 0;
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -1215,7 +1215,7 @@ namespace BLL
|
|||
join y in Funs.DB.InApproveManager_EquipmentIn on x.EquipmentInId equals y.EquipmentInId
|
||||
where y.ProjectId == projectid
|
||||
select x).Count();
|
||||
return 0;
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -1227,7 +1227,32 @@ namespace BLL
|
|||
var result = (from x in Funs.DB.License_LicenseManager
|
||||
where x.ProjectId == projectid && x.CompileDate > Const.DtmarkTime
|
||||
select x).Count();
|
||||
return 0;
|
||||
var result1 = (from x in Funs.DB.License_BreakGround
|
||||
where x.ProjectId == projectid && x.ValidityStartTime > Const.DtmarkTime
|
||||
select x).Count();
|
||||
var result2 = (from x in Funs.DB.License_FireWork
|
||||
where x.ProjectId == projectid && x.ValidityStartTime > Const.DtmarkTime
|
||||
select x).Count();
|
||||
var result3 = (from x in Funs.DB.License_HeightWork
|
||||
where x.ProjectId == projectid && x.ValidityStartTime > Const.DtmarkTime
|
||||
select x).Count();
|
||||
var result4 = (from x in Funs.DB.License_LiftingWork
|
||||
where x.ProjectId == projectid && x.ValidityStartTime > Const.DtmarkTime
|
||||
select x).Count();
|
||||
var result5 = (from x in Funs.DB.License_LimitedSpace
|
||||
where x.ProjectId == projectid && x.ValidityStartTime > Const.DtmarkTime
|
||||
select x).Count();
|
||||
var result6 = (from x in Funs.DB.License_NightWork
|
||||
where x.ProjectId == projectid && x.ValidityStartTime > Const.DtmarkTime
|
||||
select x).Count();
|
||||
var result7 = (from x in Funs.DB.License_OpenCircuit
|
||||
where x.ProjectId == projectid && x.ValidityStartTime > Const.DtmarkTime
|
||||
select x).Count();
|
||||
var result8 = (from x in Funs.DB.License_RadialWork
|
||||
where x.ProjectId == projectid && x.ValidityStartTime > Const.DtmarkTime
|
||||
select x).Count();
|
||||
|
||||
return (result+ result1+ result2+ result3+ result4+ result5+ result6+ result7+ result8);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -1240,7 +1265,33 @@ namespace BLL
|
|||
where x.ProjectId == projectid && x.WorkStates == "3" &&
|
||||
x.CompileDate > Const.DtmarkTime
|
||||
select x).Count();
|
||||
return 0;
|
||||
|
||||
var result1 = (from x in Funs.DB.License_BreakGround
|
||||
where x.ProjectId == projectid && x.ValidityStartTime > Const.DtmarkTime && x.States == "3"
|
||||
select x).Count();
|
||||
var result2 = (from x in Funs.DB.License_FireWork
|
||||
where x.ProjectId == projectid && x.ValidityStartTime > Const.DtmarkTime && x.States == "3"
|
||||
select x).Count();
|
||||
var result3 = (from x in Funs.DB.License_HeightWork
|
||||
where x.ProjectId == projectid && x.ValidityStartTime > Const.DtmarkTime && x.States == "3"
|
||||
select x).Count();
|
||||
var result4 = (from x in Funs.DB.License_LiftingWork
|
||||
where x.ProjectId == projectid && x.ValidityStartTime > Const.DtmarkTime && x.States == "3"
|
||||
select x).Count();
|
||||
var result5 = (from x in Funs.DB.License_LimitedSpace
|
||||
where x.ProjectId == projectid && x.ValidityStartTime > Const.DtmarkTime && x.States == "3"
|
||||
select x).Count();
|
||||
var result6 = (from x in Funs.DB.License_NightWork
|
||||
where x.ProjectId == projectid && x.ValidityStartTime > Const.DtmarkTime && x.States == "3"
|
||||
select x).Count();
|
||||
var result7 = (from x in Funs.DB.License_OpenCircuit
|
||||
where x.ProjectId == projectid && x.ValidityStartTime > Const.DtmarkTime && x.States == "3"
|
||||
select x).Count();
|
||||
var result8 = (from x in Funs.DB.License_RadialWork
|
||||
where x.ProjectId == projectid && x.ValidityStartTime > Const.DtmarkTime && x.States == "3"
|
||||
select x).Count();
|
||||
|
||||
return (result + result1 + result2 + result3 + result4 + result5 + result6 + result7 + result8);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -1252,7 +1303,7 @@ namespace BLL
|
|||
var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister
|
||||
where x.ProjectId == projectid && (x.HazardValue == "0.3" || x.HazardValue == "1" || x.HazardValue == null) && x.States == "3" && x.CheckTime > Const.DtmarkTime
|
||||
select x).Count();
|
||||
return 0;
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -1265,7 +1316,7 @@ namespace BLL
|
|||
where x.ProjectId == projectid && (x.HazardValue == "0.3" || x.HazardValue == "1" || x.HazardValue == null) && x.States != "3" &&
|
||||
x.CheckTime > Const.DtmarkTime
|
||||
select x).Count();
|
||||
return 0;
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -1278,7 +1329,7 @@ namespace BLL
|
|||
where x.ProjectId == projectid && x.HazardValue == "3" && x.States == "3" &&
|
||||
x.CheckTime > Const.DtmarkTime
|
||||
select x).Count();
|
||||
return 0;
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -1291,7 +1342,7 @@ namespace BLL
|
|||
where x.ProjectId == projectid && x.HazardValue == "3" && x.States != "3" &&
|
||||
x.CheckTime > Const.DtmarkTime
|
||||
select x).Count();
|
||||
return 0;
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Reference in New Issue