This commit is contained in:
2026-11-27 17:24:22 +08:00
parent 93a48943a1
commit b8393ebd33
13 changed files with 147 additions and 56 deletions
@@ -53,7 +53,7 @@ namespace FineUIPro.Web.HSSE.Examine
////权限按钮方法
this.GetButtonPower();
}
this.btnNew.OnClientClick = Window1.GetShowReference("BonusScoreSelfManagementEdit.aspx") + "return false;";
//this.btnNew.OnClientClick = Window1.GetShowReference("BonusScoreSelfManagementEdit.aspx") + "return false;";
if (this.CurrUser != null && this.CurrUser.PageSize.HasValue)
{
Grid1.PageSize = this.CurrUser.PageSize.Value;
@@ -75,10 +75,10 @@ namespace FineUIPro.Web.HSSE.Examine
this.ProjectId = this.ucTree.ProjectId;
this.BindGrid();
this.GetButtonPower();
if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
{
btnNew.Hidden = true;
}
//if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
//{
// btnNew.Hidden = true;
//}
}
/// <summary>
/// 绑定数据
@@ -91,6 +91,7 @@ namespace FineUIPro.Web.HSSE.Examine
}
var db = Funs.DB;
var queryData = from x in db.Examine_BonusScoreSelfManagement
//join y in db.SitePerson_Person on x.UserId equals y.PersonId
join y in db.SitePerson_Person on x.PersonId equals y.PersonId
//join z in db.Sys_User on x.CompileMan equals z.UserId
where x.ProjectId == this.ProjectId
@@ -165,6 +166,20 @@ namespace FineUIPro.Web.HSSE.Examine
}
#endregion
#region 新增
/// <summary>
/// 新增
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnNew_Click(object sender, EventArgs e)
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("BonusScoreSelfManagementEdit.aspx?ProjectId={0}", this.ProjectId), "新增 - "));
}
#endregion
#region 编辑
/// <summary>
/// 双击事件
@@ -261,7 +276,7 @@ namespace FineUIPro.Web.HSSE.Examine
{
return;
}
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.BonusScoreSelfManagementMenuId);
var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.BonusScoreSelfManagementMenuId);
if (buttonList.Count() > 0)
{
if (buttonList.Contains(BLL.Const.BtnAdd))