From dc2ad822cd4a1882aedf902ebce9ee6192ffddb9 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Wed, 12 Nov 2025 08:56:47 +0800 Subject: [PATCH] 1 --- .../HSSE/Manager/ManagerMonth_SeDinEdit.aspx.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDinEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDinEdit.aspx.cs index fac63634..1e377c19 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDinEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDinEdit.aspx.cs @@ -1423,13 +1423,19 @@ namespace FineUIPro.Web.HSSE.Manager private void SetStepDrp() { this.drpAudit.Items.Clear(); + var units = BLL.ProjectUnitService.GetProjectUnitListByProjectIdUnitType(this.CurrUser.LoginProjectId, BLL.Const.ProjectUnitType_1); + string unitId = Const.UnitId_SEDIN; + if (units.Count > 0) + { + unitId = units[0].UnitId; + } if (this.drpStep.SelectedValue == Const.State_1) { - Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpAudit, this.CurrUser.LoginProjectId, Const.UnitId_SEDIN, Const.ProjectSafetyDirector, false); + Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpAudit, this.CurrUser.LoginProjectId, unitId, Const.ProjectSafetyDirector, false); } else { - Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpAudit, this.CurrUser.LoginProjectId, Const.UnitId_SEDIN, Const.ProjectManager + "," + Const.ProjectAssistantManager, false); + Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpAudit, this.CurrUser.LoginProjectId, unitId, Const.ProjectManager + "," + Const.ProjectAssistantManager, false); } if (this.States == Const.State_0 || string.IsNullOrEmpty(this.States)) ///待提交 {