博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年11月19日

摘要: 1.CRM 4 plugin 或服务器端,怎么获取CRM的用户语言编码?javascript 可以通过这个USER_LANGUAGE_CODE获取.比如:如果是英文(1033) 就提示: throw new Exception("Had been submitted information could not cancel!"); 如果为中文编码(2052):throw new Exception("已提交信息无法删除");思路:可以在Plugin中获取SystemUserId,然后,根据这个SystemUserId获取该用户对应的usersetting 阅读全文

posted @ 2012-11-19 22:28 Hamilton Tan 阅读(225) 评论(0) 推荐(0) 编辑

2012年11月10日

摘要: 1.Plugin Demo:using System;using System.Collections.Generic;using System.Text;using System.Data;using System.Data.SqlClient;using Microsoft.Crm.Sdk;using Microsoft.Crm.SdkTypeProxy;using Microsoft.Crm.Sdk.Query;namespace Www.company.Com.Crm40.Plugins{public class SaveMaintainApp:IPlugin{public void 阅读全文

posted @ 2012-11-10 00:02 Hamilton Tan 阅读(634) 评论(0) 推荐(0) 编辑

2012年11月9日

摘要: var header1 = "" + "0" + "" + "LOVOL" + "00000000-0000-0000-0000-000000000000" + ""; soapXml += header1; soapXml += soapBody; soapXml += "";相当于var header1 = GenerateAuthenticationHeader(); 阅读全文

posted @ 2012-11-09 23:56 Hamilton Tan 阅读(243) 评论(0) 推荐(0) 编辑

摘要: var mnuBar1 = window.document.getElementById("mnuBar1"); var mnuBar1_UL = mnuBar1.getElementsByTagName("ul"); var mnuBar1_LIs = mnuBar1.getElementsByTagName("li"); if (mnuBar1_LIs != null && mnuBar1_LIs.length > 0) { for (var i = 0; i < mnuBar1_LIs.length; 阅读全文

posted @ 2012-11-09 23:55 Hamilton Tan 阅读(284) 评论(0) 推荐(0) 编辑

摘要: window.onload = function () {var mnuBar1t = document.getElementById("mnuBar1");var mnuBar1Ul = mnuBar1t.getElementsByTagName("ul");mnuBar1Ul[0].innerHTML += ""mnuBar1Ul[0].innerHTML += "附件";} html:无标题文档文件菜单(F)打印(P)...关闭(C)操作(A)显示注释电子邮件知识库文章打印...关闭显示注释电子邮件知识库文章 阅读全文

posted @ 2012-11-09 23:51 Hamilton Tan 阅读(474) 评论(0) 推荐(0) 编辑

2012年10月31日

摘要: jQuery 中的 Ajax $.ajax() load() $.get() $.post() $.getJSON() $.getScript()1. $.ajax()方法参数对象属性如下:参数名类型描述urlString(默认: 当前页地址) 发送请求的地址。typeString(默认: "GET") 请求方式 ("POST" 或 "GET"), 默认为 "GET"。注意:其它 HTTP 请求方法,如 PUT 和 DELETE 也可以使用,但仅部分浏览器支持。timeoutNumber设置请求超时时间(毫秒)。此 阅读全文

posted @ 2012-10-31 22:25 Hamilton Tan 阅读(324) 评论(0) 推荐(0) 编辑

摘要: "get 传到服务器,服务器返回到页面,需要一段时间,有缓存。post 页面数据传到服务器上很快,没有缓存。"对浏览器来说也许是这样.对服务器来说要看具体配置.post 比get 要好些JQuery ajax 建议用post要好些没有哪个好一些. 在http协议里,Get一般是用于获取内容,Post用于提交数据.get是通过url,post是通过http的contentAjax中我们经常用到get和post请求.那么什么时候用get请求,什么时候用post方式请求呢? 在做回答前我们首先要了解get和post的区别.1、 get是把参数数据队列加到提交表单的ACTION属性 阅读全文

posted @ 2012-10-31 22:19 Hamilton Tan 阅读(223) 评论(0) 推荐(0) 编辑

摘要: PopupsHandler.ashx:using System;using System.Collections.Generic;using System.Web;using System.Collections;using Microsoft.Crm.Sdk;using Microsoft.Crm.Sdk.Query;using Microsoft.Crm.Sdk.Utility;using Microsoft.Crm.SdkTypeProxy;using Frensworkz.CRM.XCMGCC.Web.Common;namespace Frensworkz.CRM.XCMGCC.Web 阅读全文

posted @ 2012-10-31 22:11 Hamilton Tan 阅读(274) 评论(0) 推荐(0) 编辑

摘要: JS代码:item.id = document.getElementById(id).value; myDialogArguments.items = new Array(); if (item.id != "") { myDialogArguments.items[0] = item; } var url = 'http://www.cnblogs.com/_controls/lookup/lookupsingle.aspx?class=BasicOwner&objecttypes=8&browse=0&ShowNewButton=1&am 阅读全文

posted @ 2012-10-31 22:04 Hamilton Tan 阅读(497) 评论(0) 推荐(0) 编辑

2012年10月26日

摘要: C#代码:using System;using System.Collections.Generic;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data;using System... 阅读全文

posted @ 2012-10-26 20:19 Hamilton Tan 阅读(299) 评论(3) 推荐(0) 编辑