20231016月报安全工时、累计工时优化

This commit is contained in:
2023-10-16 11:24:26 +08:00
parent 5a9ebc9ade
commit 87a19f7dfe
6 changed files with 51 additions and 5 deletions
@@ -214,6 +214,14 @@ namespace FineUIPro.Web.HSSE.Manager
Alert.ShowInTop("当前月份的月报已存在!", MessageBoxIcon.Warning);
return;
}
var getNMonthReport = Funs.DB.SeDin_MonthReport.FirstOrDefault(x =>x.ProjectId == this.CurrUser.LoginProjectId && x.States != Const.State_3);
if (getNMonthReport != null)
{
Alert.ShowInTop("存在未完成月报,请先办理完成!", MessageBoxIcon.Warning);
return;
}
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ManagerMonth_SeDinEdit.aspx?Month={0}", txtMonth.Text.Trim()), "添加月报表"));
}
#endregion