20230920人员信息中人员类型只有管理员能修改
This commit is contained in:
@@ -120,6 +120,27 @@ namespace FineUIPro.Web.Person
|
||||
getInitGridTestRecord();
|
||||
getInitGridInOut();
|
||||
getInitGridContract();
|
||||
|
||||
var person = BLL.Person_PersonsService.GetPerson_PersonsById(this.PersonId);
|
||||
if (person != null)
|
||||
{
|
||||
if (this.CurrUser.RoleIds == null || this.CurrUser.RoleIds.Contains(Const.sysglyId))
|
||||
{
|
||||
this.rbPersonType.Readonly = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
var getRoleNames = RoleService.getRoleNamesRoleIds(this.CurrUser.RoleIds);
|
||||
if (getRoleNames != null && getRoleNames.Contains("管理员"))
|
||||
{
|
||||
this.rbPersonType.Readonly = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.rbPersonType.Readonly = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user