修改安全月报
This commit is contained in:
parent
6522d6df41
commit
757a0d859f
|
@ -198,6 +198,15 @@ namespace FineUIPro.Web.HSSE.Manager
|
|||
{
|
||||
this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", model.EndDate);
|
||||
}
|
||||
|
||||
startTime = Convert.ToDateTime(txtStartDate.Text);
|
||||
endTime = Convert.ToDateTime(txtEndDate.Text);
|
||||
|
||||
yearStartTime = Convert.ToDateTime(startTime.ToString("yyyy-01-01"));
|
||||
if (project.StartDate != null)
|
||||
{
|
||||
projectStartTime = Convert.ToDateTime(project.StartDate);
|
||||
}
|
||||
}
|
||||
AddOrUpdate = "update";
|
||||
|
||||
|
@ -361,6 +370,8 @@ namespace FineUIPro.Web.HSSE.Manager
|
|||
#endregion
|
||||
|
||||
#region 6.1未遂事件统计
|
||||
try
|
||||
{
|
||||
var attemptedModel = db.Manager_Attempted.FirstOrDefault(x => x.MonthReportId == MonthReportId);
|
||||
if (attemptedModel != null)
|
||||
{
|
||||
|
@ -369,6 +380,9 @@ namespace FineUIPro.Web.HSSE.Manager
|
|||
nbFbsMonthNum.Text = attemptedModel.FbsMonthNum.ToString();
|
||||
nbFbsYearNum.Text = attemptedModel.FbsYearNum.ToString();
|
||||
nbProNum.Text = attemptedModel.ProNum.ToString();
|
||||
}
|
||||
else {
|
||||
GetAttempted();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
@ -380,6 +394,17 @@ namespace FineUIPro.Web.HSSE.Manager
|
|||
this.gvInjuryAccident.DataBind();
|
||||
OutputSummaryData();
|
||||
}
|
||||
else {
|
||||
GetInjuryAccident();
|
||||
//GetAccidentReportsByAccidentTime
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
throw;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 6.2 HSE责任事故/事件描述
|
||||
|
|
Loading…
Reference in New Issue