汇总
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
///整改单
|
||||
|
||||
Reference in New Issue
Block a user