提交代码
This commit is contained in:
@@ -189,9 +189,9 @@ namespace FineUIPro.Web.common
|
||||
//一般
|
||||
allYhYb += "'" +
|
||||
((from x in hazardRegisters
|
||||
where x.ProjectId == item.ProjectId && x.Risk_Level == "一般" && x.States == "3" &&
|
||||
x.CheckTime > Const.DtmarkTime
|
||||
select x).Count() +
|
||||
where x.ProjectId == item.ProjectId && x.Risk_Level == "一般" && x.States == "3" &&
|
||||
x.CheckTime > Const.DtmarkTime
|
||||
select x).Count() +
|
||||
(from x in hazardRegisters
|
||||
where x.ProjectId == item.ProjectId && x.Risk_Level == "一般" && x.States != "3" &&
|
||||
x.CheckTime > Const.DtmarkTime
|
||||
@@ -546,7 +546,11 @@ namespace FineUIPro.Web.common
|
||||
var result = (from x in Funs.DB.Emergency_EmergencyList_Unit
|
||||
join y in Funs.DB.Base_EmergencyType on x.EmergencyTypeId equals y.EmergencyTypeId
|
||||
where y.EmergencyTypeName.Contains("综合") && x.CompileDate > Const.DtmarkTime
|
||||
select x).Count();
|
||||
select x).Count() +
|
||||
(from x in Funs.DB.Emergency_EmergencyList
|
||||
join y in Funs.DB.Base_EmergencyType on x.EmergencyTypeId equals y.EmergencyTypeId
|
||||
where y.EmergencyTypeName.Contains("综合") && x.CompileDate > Const.DtmarkTime
|
||||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -559,7 +563,11 @@ namespace FineUIPro.Web.common
|
||||
var result = (from x in Funs.DB.Emergency_EmergencyList_Unit
|
||||
join y in Funs.DB.Base_EmergencyType on x.EmergencyTypeId equals y.EmergencyTypeId
|
||||
where y.EmergencyTypeName.Contains("专项") && x.CompileDate > Const.DtmarkTime
|
||||
select x).Count();
|
||||
select x).Count() +
|
||||
(from x in Funs.DB.Emergency_EmergencyList
|
||||
join y in Funs.DB.Base_EmergencyType on x.EmergencyTypeId equals y.EmergencyTypeId
|
||||
where y.EmergencyTypeName.Contains("专项") && x.CompileDate > Const.DtmarkTime
|
||||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -572,7 +580,11 @@ namespace FineUIPro.Web.common
|
||||
var result = (from x in Funs.DB.Emergency_EmergencyList_Unit
|
||||
join y in Funs.DB.Base_EmergencyType on x.EmergencyTypeId equals y.EmergencyTypeId
|
||||
where y.EmergencyTypeName.Contains("现场处置") && x.CompileDate > Const.DtmarkTime
|
||||
select x).Count();
|
||||
select x).Count() +
|
||||
(from x in Funs.DB.Emergency_EmergencyList
|
||||
join y in Funs.DB.Base_EmergencyType on x.EmergencyTypeId equals y.EmergencyTypeId
|
||||
where y.EmergencyTypeName.Contains("现场处置") && x.CompileDate > Const.DtmarkTime
|
||||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -584,7 +596,10 @@ namespace FineUIPro.Web.common
|
||||
{
|
||||
var result = (from x in Funs.DB.Emergency_DrillRecordList_Unit
|
||||
where x.CompileDate > Const.DtmarkTime
|
||||
select x).Count();
|
||||
select x).Count() +
|
||||
(from x in Funs.DB.Emergency_DrillRecordList
|
||||
where x.CompileDate > Const.DtmarkTime
|
||||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
#endregion
|
||||
@@ -596,9 +611,10 @@ namespace FineUIPro.Web.common
|
||||
/// <returns></returns>
|
||||
public static int GetSafeTrainNum()
|
||||
{
|
||||
var result = (from x in Funs.DB.EduTrain_TrainRecord
|
||||
join y in Funs.DB.Base_TrainType on x.TrainTypeId equals y.TrainTypeId
|
||||
where y.TrainType == "1" && x.TrainStartDate > Const.DtmarkTime
|
||||
var result = (from x in Funs.DB.EduTrain_TrainRecordDetail
|
||||
join z in Funs.DB.EduTrain_TrainRecord on x.TrainingId equals z.TrainingId
|
||||
join y in Funs.DB.Base_TrainType on z.TrainTypeId equals y.TrainTypeId
|
||||
where y.TrainType == "1"
|
||||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
@@ -609,9 +625,10 @@ namespace FineUIPro.Web.common
|
||||
/// <returns></returns>
|
||||
public static int GetSpecialTrainNum()
|
||||
{
|
||||
var result = (from x in Funs.DB.EduTrain_TrainRecord
|
||||
join y in Funs.DB.Base_TrainType on x.TrainTypeId equals y.TrainTypeId
|
||||
where y.TrainType == "2" && x.TrainStartDate > Const.DtmarkTime
|
||||
var result = (from x in Funs.DB.EduTrain_TrainRecordDetail
|
||||
join z in Funs.DB.EduTrain_TrainRecord on x.TrainingId equals z.TrainingId
|
||||
join y in Funs.DB.Base_TrainType on z.TrainTypeId equals y.TrainTypeId
|
||||
where y.TrainType == "2"
|
||||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
@@ -622,9 +639,10 @@ namespace FineUIPro.Web.common
|
||||
/// <returns></returns>
|
||||
public static int GetSpecialOperationTrainNum()
|
||||
{
|
||||
var result = (from x in Funs.DB.EduTrain_TrainRecord
|
||||
join y in Funs.DB.Base_TrainType on x.TrainTypeId equals y.TrainTypeId
|
||||
where y.TrainType == "3" && x.TrainStartDate > Const.DtmarkTime
|
||||
var result = (from x in Funs.DB.EduTrain_TrainRecordDetail
|
||||
join z in Funs.DB.EduTrain_TrainRecord on x.TrainingId equals z.TrainingId
|
||||
join y in Funs.DB.Base_TrainType on z.TrainTypeId equals y.TrainTypeId
|
||||
where y.TrainType == "3"
|
||||
select x).Count();
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user