This commit is contained in:
2026-04-07 19:44:10 +08:00
parent 53eeca8eb3
commit 7ecbc2ebc0
46 changed files with 2694 additions and 992 deletions
@@ -43,8 +43,16 @@ namespace FineUIPro.Web.HSSE.Examine
}
BonusScoreTypeService.InitBonusScoreTypeDropDownList(this.drpBonusScoreType, true);
////权限按钮方法
this.GetButtonPower();
this.ucTree.UnitId = this.CurrUser.UnitId;
this.ucTree.ProjectId = this.ProjectId;
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
{
this.panelLeftRegion.Hidden = true;
////权限按钮方法
this.GetButtonPower();
}
this.btnNew.OnClientClick = Window1.GetShowReference("BonusScoreSelfManagementEdit.aspx") + "return false;";
if (this.CurrUser != null && this.CurrUser.PageSize.HasValue)
{
@@ -56,6 +64,22 @@ namespace FineUIPro.Web.HSSE.Examine
}
}
/// <summary>
/// 加载树
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void changeTree(object sender, EventArgs e)
{
this.ProjectId = this.ucTree.ProjectId;
this.BindGrid();
this.GetButtonPower();
if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
{
btnNew.Hidden = true;
}
}
/// <summary>
/// 绑定数据
/// </summary>
@@ -229,6 +253,10 @@ namespace FineUIPro.Web.HSSE.Examine
/// <returns></returns>
private void GetButtonPower()
{
if (string.IsNullOrEmpty(this.ProjectId))
{
return;
}
if (Request.Params["value"] == "0")
{
return;