1
This commit is contained in:
@@ -212,7 +212,10 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
string roleId = user.RoleId.Split(',')[0];
|
||||
var role = RoleService.GetRoleByRoleId(roleId);
|
||||
var workPost = WorkPostService.GetWorkPostByName(role.RoleName);
|
||||
newPerson.WorkPostId = workPost.WorkPostId;
|
||||
if (workPost != null)
|
||||
{
|
||||
newPerson.WorkPostId = workPost.WorkPostId;
|
||||
}
|
||||
}
|
||||
BLL.PersonService.AddPerson(newPerson);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user