随笔 - 141  文章 - 1 评论 - 92 trackbacks - 4
<2011年3月>
272812345
6789101112
13141516171819
20212223242526
272829303112
3456789

程序生涯 
我的职业:
Development consultant
/开发顾问

QQ群:2863140
My QQ:89447727
昵称:Seer Lin
园龄:4年2个月
粉丝:7
关注:0

搜索

 
 

常用链接

随笔分类

随笔档案

最新评论

阅读排行榜

评论排行榜

推荐排行榜

03 2011 档案
mscrm4.0 判断当前用户角色_示例
摘要: alert(UserHasRole("SystemAdministrator"));functionUserHasRole(roleName){//getCurrentUserRoles,oXmlisanobjectvaroXml=GetCurrentUserRoles();if(oXml!=null){//selectthenodetextvarroles=oXml.selectNodes("//BusinessEntity/q1:name");if(roles!=null){for(i=0;i<roles.length;i++){if(role阅读全文
posted @ 2011-03-21 18:05 Seer Lin 阅读(55) | 评论 (0) 编辑
mscrm 4.0 获取当前用户角色
摘要: varscript=document.createElement('script');script.setAttribute('runat','server');script.setAttribute('language','javascript');script.text="functionUserHasRole(roleName){varoXml=GetCurrentUserRoles();if(oXml!=null){varroles=oXml.selectNodes(\'//Busines阅读全文
posted @ 2011-03-16 16:53 Seer Lin 阅读(69) | 评论 (0) 编辑
mscrm4.0 获取当前登录的用户名
摘要: varxml=""+"<?xmlversion=\"1.0\"encoding=\"utf-8\"?>"+"<soap:Envelopexmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"xmlns:xsd=\"http://www.w3.org/2001/XMLSche阅读全文
posted @ 2011-03-10 10:33 Seer Lin 阅读(143) | 评论 (3) 编辑
mscrm4.0 用js调用Webservice
摘要: varORG_NAME="xteam";functionretrieve(entityName,entityId,attributeName){varxml=""+"<?xmlversion=\"1.0\"encoding=\"utf-8\"?>"+"<soap:Envelopexmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"xmlns:xsi=\"http://www.w3阅读全文
posted @ 2011-03-10 10:29 Seer Lin 阅读(97) | 评论 (0) 编辑