提交代码
This commit is contained in:
parent
3ca4765f80
commit
97b236d21d
|
@ -19232,7 +19232,7 @@
|
||||||
</FlavorProperties>
|
</FlavorProperties>
|
||||||
</VisualStudio>
|
</VisualStudio>
|
||||||
</ProjectExtensions>
|
</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.
|
<!-- 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.
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
<Target Name="BeforeBuild">
|
<Target Name="BeforeBuild">
|
||||||
|
|
|
@ -544,6 +544,10 @@ namespace FineUIPro.Web.common
|
||||||
public static int GetCompanyComprehensivePlanNum()
|
public static int GetCompanyComprehensivePlanNum()
|
||||||
{
|
{
|
||||||
var result = (from x in Funs.DB.Emergency_EmergencyList_Unit
|
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
|
join y in Funs.DB.Base_EmergencyType on x.EmergencyTypeId equals y.EmergencyTypeId
|
||||||
where y.EmergencyTypeName.Contains("综合") && x.CompileDate > Const.DtmarkTime
|
where y.EmergencyTypeName.Contains("综合") && x.CompileDate > Const.DtmarkTime
|
||||||
select x).Count();
|
select x).Count();
|
||||||
|
@ -557,6 +561,10 @@ namespace FineUIPro.Web.common
|
||||||
public static int GetCompanySpecialPlanNum()
|
public static int GetCompanySpecialPlanNum()
|
||||||
{
|
{
|
||||||
var result = (from x in Funs.DB.Emergency_EmergencyList_Unit
|
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
|
join y in Funs.DB.Base_EmergencyType on x.EmergencyTypeId equals y.EmergencyTypeId
|
||||||
where y.EmergencyTypeName.Contains("专项") && x.CompileDate > Const.DtmarkTime
|
where y.EmergencyTypeName.Contains("专项") && x.CompileDate > Const.DtmarkTime
|
||||||
select x).Count();
|
select x).Count();
|
||||||
|
@ -570,6 +578,10 @@ namespace FineUIPro.Web.common
|
||||||
public static int GetCompanyOnSiteDisposalPlan()
|
public static int GetCompanyOnSiteDisposalPlan()
|
||||||
{
|
{
|
||||||
var result = (from x in Funs.DB.Emergency_EmergencyList_Unit
|
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
|
join y in Funs.DB.Base_EmergencyType on x.EmergencyTypeId equals y.EmergencyTypeId
|
||||||
where y.EmergencyTypeName.Contains("现场处置") && x.CompileDate > Const.DtmarkTime
|
where y.EmergencyTypeName.Contains("现场处置") && x.CompileDate > Const.DtmarkTime
|
||||||
select x).Count();
|
select x).Count();
|
||||||
|
@ -583,6 +595,9 @@ namespace FineUIPro.Web.common
|
||||||
public static int GetCompanyDrillNum()
|
public static int GetCompanyDrillNum()
|
||||||
{
|
{
|
||||||
var result = (from x in Funs.DB.Emergency_DrillRecordList_Unit
|
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
|
where x.CompileDate > Const.DtmarkTime
|
||||||
select x).Count();
|
select x).Count();
|
||||||
return result;
|
return result;
|
||||||
|
@ -596,9 +611,10 @@ namespace FineUIPro.Web.common
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetSafeTrainNum()
|
public static int GetSafeTrainNum()
|
||||||
{
|
{
|
||||||
var result = (from x in Funs.DB.EduTrain_TrainRecord
|
var result = (from x in Funs.DB.EduTrain_TrainRecordDetail
|
||||||
join y in Funs.DB.Base_TrainType on x.TrainTypeId equals y.TrainTypeId
|
join z in Funs.DB.EduTrain_TrainRecord on x.TrainingId equals z.TrainingId
|
||||||
where y.TrainType == "1" && x.TrainStartDate > Const.DtmarkTime
|
join y in Funs.DB.Base_TrainType on z.TrainTypeId equals y.TrainTypeId
|
||||||
|
where y.TrainType == "1"
|
||||||
select x).Count();
|
select x).Count();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -609,9 +625,10 @@ namespace FineUIPro.Web.common
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetSpecialTrainNum()
|
public static int GetSpecialTrainNum()
|
||||||
{
|
{
|
||||||
var result = (from x in Funs.DB.EduTrain_TrainRecord
|
var result = (from x in Funs.DB.EduTrain_TrainRecordDetail
|
||||||
join y in Funs.DB.Base_TrainType on x.TrainTypeId equals y.TrainTypeId
|
join z in Funs.DB.EduTrain_TrainRecord on x.TrainingId equals z.TrainingId
|
||||||
where y.TrainType == "2" && x.TrainStartDate > Const.DtmarkTime
|
join y in Funs.DB.Base_TrainType on z.TrainTypeId equals y.TrainTypeId
|
||||||
|
where y.TrainType == "2"
|
||||||
select x).Count();
|
select x).Count();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -622,9 +639,10 @@ namespace FineUIPro.Web.common
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int GetSpecialOperationTrainNum()
|
public static int GetSpecialOperationTrainNum()
|
||||||
{
|
{
|
||||||
var result = (from x in Funs.DB.EduTrain_TrainRecord
|
var result = (from x in Funs.DB.EduTrain_TrainRecordDetail
|
||||||
join y in Funs.DB.Base_TrainType on x.TrainTypeId equals y.TrainTypeId
|
join z in Funs.DB.EduTrain_TrainRecord on x.TrainingId equals z.TrainingId
|
||||||
where y.TrainType == "3" && x.TrainStartDate > Const.DtmarkTime
|
join y in Funs.DB.Base_TrainType on z.TrainTypeId equals y.TrainTypeId
|
||||||
|
where y.TrainType == "3"
|
||||||
select x).Count();
|
select x).Count();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue