人员管理-人员信息下菜单补充公司级树

This commit is contained in:
2025-04-08 17:41:02 +08:00
parent ff335e8f27
commit 5a6796f656
24 changed files with 1147 additions and 573 deletions
@@ -32,10 +32,6 @@ namespace FineUIPro.Web.Customization.CNCCG.HSSE.QualityAudit
}
public string MenuId= Const.CompanySafePersonMenuId;
#endregion
#region
/// <summary>
@@ -54,18 +50,13 @@ namespace FineUIPro.Web.Customization.CNCCG.HSSE.QualityAudit
{
this.ProjectId = Request.Params["projectId"];
}
this.InitDropDownList();
this.ucTree.UnitId = this.CurrUser.UnitId;
this.ucTree.ProjectId = this.ProjectId;
BLL.UnitService.InitUnitDropDownList(this.drpUnitId, this.ProjectId, true);
if (BLL.ProjectUnitService.GetProjectUnitTypeByProjectIdUnitId(this.ProjectId, this.CurrUser.UnitId))
{
this.drpUnitId.SelectedValue = this.CurrUser.UnitId;
this.drpUnitId.Enabled = false;
}
Funs.DropDownPageSize(this.ddlPageSize);
// 绑定表格
this.BindGrid();
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId) && CommonService.GetThisUnitId() != Const.CncecFccId)
if (!string.IsNullOrEmpty(this.ProjectId) && CommonService.GetThisUnitId() != Const.CncecFccId)
{
MenuId = Const.SafePersonQualityMenuId;
this.panelLeftRegion.Hidden = true;
@@ -78,7 +69,17 @@ namespace FineUIPro.Web.Customization.CNCCG.HSSE.QualityAudit
protected void changeTree(object sender, EventArgs e)
{
this.ProjectId = this.ucTree.ProjectId;
this.BindGrid();
this.InitDropDownList();
this.BindGrid();
}
private void InitDropDownList()
{
BLL.UnitService.InitUnitDropDownList(this.drpUnitId, this.ProjectId, true);
if (BLL.ProjectUnitService.GetProjectUnitTypeByProjectIdUnitId(this.ProjectId, this.CurrUser.UnitId))
{
this.drpUnitId.SelectedValue = this.CurrUser.UnitId;
this.drpUnitId.Enabled = false;
}
}
/// <summary>
/// 绑定数据
@@ -291,7 +292,7 @@ namespace FineUIPro.Web.Customization.CNCCG.HSSE.QualityAudit
/// <returns></returns>
private void GetButtonPower()
{
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, MenuId);
var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, MenuId);
if (buttonList.Count() > 0)
{
if (buttonList.Contains(BLL.Const.BtnModify))