BOSUuid userId=SysContext.getSysContext().getCurrentUserInfo().getId();
BOSUuid orgId=SysContext.getSysContext().getCurrentOrgUnit().getId();
ObjectUuidPK userPK = new ObjectUuidPK(userId);
ObjectUuidPK orgPK = new ObjectUuidPK(orgId);
com.kingdee.eas.base.permission.IPermission perm= null;
try {
perm =PermissionFactory.getRemoteInstance();
perm.hasFunctionPermission(userPK, orgPK, "custom_qua_QuaTarget_addnew");
} catch (Exception e) {
e.printStackTrace();
}
EASBos 对于某个权限的验证
最新推荐文章于 2021-04-22 13:08:58 发布