`
ycx627954927
  • 浏览: 8069 次
社区版块
存档分类
最新评论

【转】EASBos 对于某个权限的验证

阅读更多

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();
        }

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics