This commit is contained in:
2024-05-09 18:03:12 +08:00
parent a041fdd85d
commit ba518ac354
12 changed files with 571 additions and 145 deletions
@@ -267,7 +267,7 @@ namespace FineUIPro.Web.ProjectData
/// <param name="e"></param>
protected void btnMenuAdd_Click(object sender, EventArgs e)
{
if (this.trProjects.SelectedNode != null)
if (this.trProjects.SelectedNode != null && this.trProjects.SelectedNode.CommandName == "project")
{
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.ProjectInstallationMenuId, BLL.Const.BtnAdd))
{
@@ -289,6 +289,10 @@ namespace FineUIPro.Web.ProjectData
ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
}
}
else if (this.trProjects.SelectedNode != null && this.trProjects.SelectedNode.CommandName != "project")
{
ShowNotify("装置只能录入一级!", MessageBoxIcon.Warning);
}
else
{
ShowNotify("请选择树节点!", MessageBoxIcon.Warning);