项目人员从系统用户中选择新增

This commit is contained in:
2026-05-08 17:35:29 +08:00
parent b8c274ca97
commit fac86ea406
8 changed files with 551 additions and 14 deletions
@@ -1,4 +1,5 @@
using BLL;
using FineUIPro.Web.DataShow;
using System;
using System.Collections.Generic;
using System.Data;
@@ -589,6 +590,36 @@ namespace FineUIPro.Web.HSSE.SitePerson
}
#endregion
#region
/// <summary>
/// 从系统用户中选择增加
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnSearchUserAdd_Click(object sender, EventArgs e)
{
string projectId = this.CurrUser.LoginProjectId;
PageContext.RegisterStartupScript(Window4.GetShowReference(String.Format("PersonAddFromUser.aspx?ProjectId={0}", projectId, "编辑 - ")));
//if (this.tvProjectAndUnit.SelectedNodeID.Contains("|"))
//{
// string id = this.tvProjectAndUnit.SelectedNodeID;
// string[] str = id.Split('|');
// if (str.Count() > 1)
// {
// string unitId = id.Split('|')[0];
// string projectId = id.Split('|')[1];
// PageContext.RegisterStartupScript(Window4.GetShowReference(String.Format("PersonAddFromUser.aspx?ProjectId={0}&UnitId={1}", projectId,unitId, "编辑 - ")));
// }
//}
//else
//{
// Alert.ShowInTop("请选择单位!", MessageBoxIcon.Warning);
// return;
//}
}
#endregion
#region
/// <summary>
/// 右键编辑事件
@@ -718,6 +749,15 @@ namespace FineUIPro.Web.HSSE.SitePerson
{
BindGrid();
}
/// <summary>
/// 关闭弹出窗口
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Window4_Close(object sender, WindowCloseEventArgs e)
{
BindGrid();
}
#endregion
#region
@@ -750,6 +790,10 @@ namespace FineUIPro.Web.HSSE.SitePerson
this.btnPersonUnit.Hidden = false;
}
}
if (this.CurrUser.UserId == Const.luofeiId || this.CurrUser.UserId == Const.sysglyId || this.CurrUser.UserId == Const.sysglyId)
{//罗菲、管理员账号
this.btnSearchUserAdd.Hidden = false;
}
}
#endregion