项目人员从系统用户中选择新增
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user