diff --git a/SGGL/BLL/API/HSSE/APISeDinMonthReportService.cs b/SGGL/BLL/API/HSSE/APISeDinMonthReportService.cs
index 52b80d4f..594e6508 100644
--- a/SGGL/BLL/API/HSSE/APISeDinMonthReportService.cs
+++ b/SGGL/BLL/API/HSSE/APISeDinMonthReportService.cs
@@ -189,7 +189,22 @@ namespace BLL
{
newItem.YearWorkTime = 0;
}
+
+ var getMaxMonthReport = (from x in Funs.DB.SeDin_MonthReport
+ where x.ProjectId == projectId && x.ReporMonth < monthD
+ orderby x.ReporMonth descending
+ select x).FirstOrDefault();
+ if (getMaxMonthReport != null)
+ {
+ var getMonthReport2 = Funs.DB.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == getMaxMonthReport.MonthReportId);
+ if (getMonthReport2 != null)
+ {
+ newItem.YearWorkTime = getMonthReport2.YearWorkTime ?? 0;
+ newItem.SafeWorkTime = getMonthReport2.SafeWorkTime ?? 0;
+ }
+ }
}
+
return newItem;
}
}
diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDin.aspx b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDin.aspx
index 3422560f..f6590952 100644
--- a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDin.aspx
+++ b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDin.aspx
@@ -111,12 +111,12 @@
+ Width="1300px" Height="600px" Maximized="true">