This commit is contained in:
parent
ea46298b9e
commit
2e316c132f
|
|
@ -107,6 +107,18 @@ namespace BLL
|
|||
return pUser;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据项目用户id获取用户
|
||||
/// </summary>
|
||||
/// <param name="projectId"></param>
|
||||
/// <param name="unitId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.Project_User GetProject_UserByProjectUserId(string projectUserId)
|
||||
{
|
||||
var pUser = Funs.DB.Project_User.FirstOrDefault(x => x.ProjectUserId == projectUserId);
|
||||
return pUser;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据项目Id删除一个项目参与单位信息
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
<FineUIPro DebugMode="false" Theme="Cupertino"/>
|
||||
<appSettings>
|
||||
<!--连接字符串-->
|
||||
<add key="ConnectionString" value="Server=.\SQL2022;Database=HJGLDB_DS;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Max Pool Size = 1000;Connect Timeout=1200"/>
|
||||
<add key="ConnectionString" value="Server=.\MSSQLSERVER01;Database=HJGLDB_DS;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Max Pool Size = 1000;Connect Timeout=1200"/>
|
||||
<!--系统名称-->
|
||||
<add key="SystemName" value="诺必达焊接管理系统"/>
|
||||
<add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/>
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue