This commit is contained in:
高飞 2025-11-12 08:56:47 +08:00
parent 80f78972df
commit dc2ad822cd
1 changed files with 8 additions and 2 deletions

View File

@ -1423,13 +1423,19 @@ namespace FineUIPro.Web.HSSE.Manager
private void SetStepDrp() private void SetStepDrp()
{ {
this.drpAudit.Items.Clear(); 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) 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 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)) ///待提交 if (this.States == Const.State_0 || string.IsNullOrEmpty(this.States)) ///待提交
{ {