admin 发表于 2018-8-1 13:54:40

【Aras二次开发】使用Item类ExtendedMethod集添加新的命名权限...




JavaScript
var innovator = new Innovator();
var permItem = innovator.newItem("Permission","add");
permItem.setAttribute("leaveLocked","0");
permItem.setProperty("name", "Part Permissions");
permItem.setIdentityAccess("All Employees", "get", true);
permItem.setIdentityAccess("CM", "get", true);
permItem.setIdentityAccess("CM", "update", true);
permItem.setIdentityAccess("CM", "delete", true);
resultItem = permItem.apply();
if (resultItem.isError()) {
top.aras.AlertError(resultItem.getErrorDetail());
return;
}

页: [1]
查看完整版本: 【Aras二次开发】使用Item类ExtendedMethod集添加新的命名权限...