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
@@ -9,9 +9,9 @@ namespace FineUIPro.Web.HSSE.Examine
{
public partial class BonusScoreSituation : PageBase
{
#region
#region
/// <summary>
/// 主键
/// 项目主键
/// </summary>
public string ProjectId
{
@@ -43,7 +43,14 @@ namespace FineUIPro.Web.HSSE.Examine
}
////权限按钮方法
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("BonusScoreSituationEdit.aspx") + "return false;";
if (this.CurrUser != null && this.CurrUser.PageSize.HasValue)
{
@@ -55,6 +62,23 @@ 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>
@@ -228,6 +252,10 @@ namespace FineUIPro.Web.HSSE.Examine
/// <returns></returns>
private void GetButtonPower()
{
if (string.IsNullOrEmpty(this.ProjectId))
{
return;
}
if (Request.Params["value"] == "0")
{
return;