This commit is contained in:
2023-01-02 09:22:58 +08:00
parent 81de6657b5
commit 8ef4bc1502
13 changed files with 554 additions and 11 deletions
+11 -7
View File
@@ -68,14 +68,18 @@ namespace FineUIPro.Web.common
private void getPersonWorkTime()
{
this.divSafeWorkTime.InnerHtml = "0000000000";
var getMax = Funs.DB.SeDin_MonthReport.Where(x => x.ProjectId == this.ProjectId).OrderByDescending(x=>x.ReporMonth).FirstOrDefault();
if (getMax != null)
var ProjectTotal = (from x in Funs.DB.HSSE_MonthReportItem
join y in Funs.DB.HSSE_MonthReport on x.MonthReportId equals y.MonthReportId
where y.ProjectId == this.ProjectId && "安全生产人工时数" == x.ReportItem
select x.ProjectTotal).Sum();
if (ProjectTotal.HasValue)
{
var getItem = Funs.DB.SeDin_MonthReport2.FirstOrDefault(x => x.MonthReportId == getMax.MonthReportId);
if (getItem != null && getItem.ProjectWorkTime.HasValue)
{
this.divSafeWorkTime.InnerHtml = getItem.ProjectWorkTime.Value.ToString("0000000000");
}
this.divSafeWorkTime.InnerHtml = ProjectTotal.Value.ToString("0000000000"); ;
}
else
{
this.divSafeWorkTime.InnerHtml = "0000000000";
}
///整改单