修改首页

This commit is contained in:
2023-08-28 18:26:38 +08:00
parent 24ed5b1c49
commit 4efca8b862
3 changed files with 63 additions and 6 deletions
@@ -45,9 +45,13 @@ namespace FineUIPro.Web.common
this.divSafeWorkTime.InnerHtml = wHours.ToString();
//本月安全人工时
int wHoursMonth = db.SitePerson_PersonInOutNumber.Where(x => x.InOutDate > DateTime.Now.AddDays(-Convert.ToInt32(DateTime.Now.Date.Day))
&& x.ProjectId == ProjectId)
.Max(x => x.WorkHours) ?? 0;
int wHoursMonth = 0;
DateTime? sDate = Funs.GetNewDateTime(DateTime.Now.Year.ToString()+"-"+ DateTime.Now.Month.ToString());
var dayReports = BLL.SitePerson_MonthReportService.getMonthReports(this.ProjectId, sDate);
if (dayReports.Count>0)
{
wHoursMonth = Convert.ToInt32(dayReports[0].DayWorkTime);
}
this.divSafeWorkTimeMonth.InnerHtml = wHoursMonth.ToString();
//安全培训累计人员