diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDinEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDinEdit.aspx.cs index 96953c85..41080c10 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDinEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonth_SeDinEdit.aspx.cs @@ -79,12 +79,17 @@ namespace FineUIPro.Web.HSSE.Manager { MonthReportId = Request.Params["MonthReportId"]; } - - BLL.Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.CompileManId, this.CurrUser.LoginProjectId, Const.UnitId_SEDIN, null, false); + 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; + } + BLL.Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.CompileManId, this.CurrUser.LoginProjectId, unitId, null, false); this.CompileManId.SelectedValue = this.CurrUser.PersonId; - Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.AuditManId, this.CurrUser.LoginProjectId, Const.UnitId_SEDIN, Const.ProjectSafetyDirector, false); - Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.ApprovalManId, this.CurrUser.LoginProjectId, Const.UnitId_SEDIN, Const.ProjectAssistantManager + "," + Const.ProjectManager, false); + Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.AuditManId, this.CurrUser.LoginProjectId, unitId, Const.ProjectSafetyDirector, false); + Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.ApprovalManId, this.CurrUser.LoginProjectId, unitId, Const.ProjectAssistantManager + "," + Const.ProjectManager, false); string montvalues = ReporMonth.Text; var getMont = Funs.DB.SeDin_MonthReport.FirstOrDefault(x => x.MonthReportId == this.MonthReportId);