危害因素调整

This commit is contained in:
2026-04-28 17:06:01 +08:00
parent 1dd8189661
commit d170dd6603
37 changed files with 2883 additions and 30 deletions
@@ -144,7 +144,18 @@ namespace FineUIPro.Web.ReportManage.HazardFactor
var yearMonth2 = this.drpYearMonth.SelectedDate;
model.Year = yearMonth.Split('-')[0];
model.Month = yearMonth.Split('-')[1];
model.ProjectId = this.ProjectId;
if (!string.IsNullOrWhiteSpace(this.ProjectId))
{
var project = BLL.ProjectService.GetProjectByProjectId(this.ProjectId);
model.ProjectId = this.ProjectId;
model.UnitProjectName = project.ProjectName;
}
else
{
var unit = BLL.UnitService.GetUnitByUnitId(this.CurrUser.UnitId);
model.UnitId = unit.UnitId;
model.UnitProjectName = unit.UnitName;
}
model.WorkPlace = this.txtWorkPlace.Text.Trim();
model.JobStep = this.txtJobStep.Text.Trim();
model.Hazard = this.txtHazard.Text.Trim();