提交代码

This commit is contained in:
高飞 2024-09-04 11:24:59 +08:00
parent 3ca4765f80
commit 97b236d21d
2 changed files with 35 additions and 17 deletions

View File

@ -19232,7 +19232,7 @@
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v16.0\WebApplications\Microsoft.WebApplication.targets" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v15.0\WebApplications\Microsoft.WebApplication.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">

View File

@ -544,6 +544,10 @@ namespace FineUIPro.Web.common
public static int GetCompanyComprehensivePlanNum()
{
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() +
(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();
@ -557,6 +561,10 @@ namespace FineUIPro.Web.common
public static int GetCompanySpecialPlanNum()
{
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() +
(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();
@ -570,6 +578,10 @@ namespace FineUIPro.Web.common
public static int GetCompanyOnSiteDisposalPlan()
{
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() +
(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();
@ -583,6 +595,9 @@ namespace FineUIPro.Web.common
public static int GetCompanyDrillNum()
{
var result = (from x in Funs.DB.Emergency_DrillRecordList_Unit
where x.CompileDate > Const.DtmarkTime
select x).Count() +
(from x in Funs.DB.Emergency_DrillRecordList
where x.CompileDate > Const.DtmarkTime
select x).Count();
return result;
@ -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;
}