This commit is contained in:
2026-04-28 10:51:29 +08:00
parent ea46298b9e
commit 2e316c132f
3 changed files with 20 additions and 1 deletions
@@ -259,6 +259,13 @@ namespace FineUIPro.Web.common.ProjectSet
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
{
string projectUserId = Grid1.DataKeys[rowIndex][0].ToString();
var project = BLL.Base_ProjectService.GetProjectByProjectId(this.tvProject.SelectedNodeID);
var projectUser = BLL.Project_UserService.GetProject_UserByProjectUserId(projectUserId);
if (project.CreateManId == projectUser.UserId)
{
Alert.ShowInTop("该用户为项目创建用户,无法删除!", MessageBoxIcon.Warning);
return;
}
BLL.Project_UserService.DeleteProject_UserByProjectUserId(projectUserId);
}
BindGrid();