代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using Model;
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@@ -195,9 +194,9 @@ namespace BLL
|
||||
}
|
||||
|
||||
var getMaxMonthReport = (from x in Funs.DB.SeDin_MonthReport
|
||||
where x.ProjectId == projectId && x.ReporMonth < monthD
|
||||
where x.ProjectId == projectId && x.ReporMonth < monthD
|
||||
orderby x.ReporMonth descending
|
||||
select x).FirstOrDefault();
|
||||
select x).FirstOrDefault();
|
||||
if (getMaxMonthReport != null)
|
||||
{
|
||||
var getMonthReport2 = Funs.DB.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == getMaxMonthReport.MonthReportId);
|
||||
@@ -480,7 +479,7 @@ namespace BLL
|
||||
///当月费用
|
||||
var getCostManage = from x in db.CostGoods_CostManageItem
|
||||
join y in db.CostGoods_CostManage on x.CostManageId equals y.CostManageId
|
||||
where y.ProjectId ==projectId && y.CostManageDate >= startDateD && y.CostManageDate < endDateD.Value.AddDays(1)
|
||||
where y.ProjectId == projectId && y.CostManageDate >= startDateD && y.CostManageDate < endDateD.Value.AddDays(1)
|
||||
&& y.States == Const.State_2
|
||||
select x;
|
||||
if (getCostManage.Count() > 0)
|
||||
@@ -521,11 +520,11 @@ namespace BLL
|
||||
if (monthD >= Funs.GetNewDateTime("2023-07-01"))
|
||||
{
|
||||
getLists.SafetyYear += getLastMonthReport6.SafetyYear;
|
||||
getLists.SafetyTotal += getLastMonthReport6.SafetyTotal;
|
||||
getLists.SafetyTotal += getLastMonthReport6.SafetyTotal;
|
||||
getLists.ProgressYear += getLastMonthReport6.ProgressYear;
|
||||
getLists.ProgressTotal += getLastMonthReport6.ProgressTotal;
|
||||
getLists.EducationYear += getLastMonthReport6.EducationYear;
|
||||
getLists.EducationTotal += getLastMonthReport6.EducationTotal;
|
||||
getLists.EducationTotal += getLastMonthReport6.EducationTotal;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -540,16 +539,16 @@ namespace BLL
|
||||
else
|
||||
{
|
||||
if (monthD >= Funs.GetNewDateTime("2023-07-01"))
|
||||
{
|
||||
{
|
||||
getLists.SafetyTotal += getLastMonthReport6.SafetyTotal;
|
||||
getLists.ProgressTotal += getLastMonthReport6.ProgressTotal;
|
||||
getLists.EducationTotal += getLastMonthReport6.EducationTotal;
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
getLists.SafetyTotal += (getLastMonthReport6.SafetyTotal + getLastMonthReport6.ProgressTotal + getLastMonthReport6.EducationTotal);
|
||||
|
||||
{
|
||||
getLists.SafetyTotal += (getLastMonthReport6.SafetyTotal + getLastMonthReport6.ProgressTotal + getLastMonthReport6.EducationTotal);
|
||||
|
||||
}
|
||||
getLists.LaborTotal += getLastMonthReport6.LaborTotal;
|
||||
getLists.SumTotal += getLastMonthReport6.SumTotal;
|
||||
@@ -557,7 +556,7 @@ namespace BLL
|
||||
}
|
||||
}
|
||||
|
||||
return getLists;
|
||||
return getLists;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user