危害因素调整
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user