首页 > 代码库 > CRM HomePage.aspx
CRM HomePage.aspx
//added by bgx on 20160616 //隐藏指定title按钮function hideISVButton(buttonTitle) { var comps = document.getElementsByTagName(‘li‘); for (var i = 0; i < comps.length; i++) { if (comps[i].title == buttonTitle) { comps[i].style.display = "none"; comps[i-1].style.display = "none"; break; } }} //added by bgx on 20160616 //获取当前人员是否含有指定角色权限 function UserHasRole(roleName){ //get Current User Roles, oXml is an object var oXml = GetCurrentUserRoles(); if(oXml != null) { //select the node text var roles = oXml.selectNodes("//BusinessEntity/q1:name"); if(roles != null) { for( i = 0; i < roles.length; i++) { if(roles[i].text == roleName) { //return true if user has this role return true; } } } } //otherwise return false return false;}
CRM HomePage.aspx
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。