摘要: 点的转义:. ==> \\u002E 美元符号的转义:$ ==> \\u0024 乘方符号的转义:^ ==> \\u005E 左大括号的转义:{ ==> \\u007B 左方括号的转义:[ ==> \\u005B 左圆括号的转义:( ==> \\u0028竖线的转义:| ==> \\u007C 右方括号转义:] ==> \\u005D右圆括号的转义:) ==> \\u0029 星号的转义:* ==> \\u002A 加号的转义:+ ==> \\u002B 问号的转义:? ==> \\u003F反斜杠的转义:\ ==> 阅读全文
posted @ 2012-06-07 20:00 cwe 阅读(18817) 评论(0) 推荐(0) 编辑
摘要: 在工作中用到了Oracle数据库,需要调用Oracle的Function,Function返回的游标和结果都是通过参数来获取的比如Function定义如下:1FUNCTIONgetlinkuserinfo(inintuseridINTEGER,2ininttypeINTEGER,3outcurlistOUTref_cursor)RETURNINTEGERIS4BEGIN5OPENoutcurlistFOR6SELECT*7FROMtbuserlink8WHEREqidianuserid=inintuseridAND9intype=decode(ininttype,-1,intype,inint 阅读全文
posted @ 2012-06-07 14:09 cwe 阅读(4861) 评论(0) 推荐(0) 编辑
摘要: 获取Cookiefunction GetCookie(cookieName) { var cookieString = document.cookie; var start = cookieString.indexOf(cookieName + '='); // 加上等号的原因是避免在某些 Cookie 的值里有 与 cookieName 一样的字符串。 if (start == -1) return null; // 找不到 start += cookieName.length + 1; var end = cookieString.indexOf(';', 阅读全文
posted @ 2012-05-15 14:30 cwe 阅读(197) 评论(0) 推荐(0) 编辑
摘要: function addMark(title, url) { try { if (window.sidebar) { window.sidebar.addPanel(title, url, ""); } else if (document.all) { if(navigator.userAgent.toLowerCase().indexOf("msie 8")>-1) external.AddToFavoritesBar(url,title,''); else window.external.AddFavorite(url, tit 阅读全文
posted @ 2012-05-15 14:13 cwe 阅读(1029) 评论(0) 推荐(0) 编辑
摘要: var $ = function(id) { return "string" == typeof id ? document.getElementById(id) : id; }; var Class = { create: function() { return function() { this.initialize.apply(this, arguments); } } } Object.extend = function(destination, source) { for (var property in source) { destination[propert 阅读全文
posted @ 2012-04-26 18:38 cwe 阅读(1295) 评论(0) 推荐(0) 编辑
摘要: To create or edit MS Word document, first of all we need to add two references to our project. Coding Creating document private void btnCreate_Click(object sender, EventArgs e) { try { //creating object for missing value object missing = System.Reflection.M... 阅读全文
posted @ 2012-02-07 14:11 cwe 阅读(1011) 评论(0) 推荐(0) 编辑
摘要: Visual Studio 2008 has made our WCF life a lot easier with the ability to self-host the services and also allow debugging in our service. What if we were pushed to a situation wherein we need to use the tool svcutil.exe to create our proxy for the client…hmm… To do so, we need to have our service... 阅读全文
posted @ 2011-11-30 16:30 cwe 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 由于在项目中用到了sql自定义函数,觉得写得很不错,就把他抄录下来了。CREATE FUNCTION [dbo].[GetCommaSeparatedIds]( @MetricIdList VARCHAR(max), @delimiter VARCHAR(10) = ',')RETURNS @tablevalues TABLE ( item INT)ASBEGIN DECLARE @item VARCHAR(255) /* Loop over the commadelimited list */ WHILE (DATALENGTH(@MetricIdList) > 0) 阅读全文
posted @ 2011-11-08 12:05 cwe 阅读(171) 评论(0) 推荐(0) 编辑
摘要: The answer is pretty similar to what Dugan said, but it's not always just the margins. It is pretty simple though: When you are editing the rdlc file in design mode, firstly click on an empty part of the BODY area of your design. Hit F4 to see the properties tab. Here, you will see a "Size& 阅读全文
posted @ 2011-11-04 18:11 cwe 阅读(704) 评论(0) 推荐(0) 编辑
摘要: 由于项目业务需求,需要求出指定日期前六个月每个月最后一个不为零的数字作为最终结果。通过google查找到一篇不错的求从今天开始拿最近一天的不为零的值作为每一天的结果,网页内容如下(引自http://cwebbbi.wordpress.com/2011/03/24/last-ever-non-empty-a-new-fast-mdx-approach/) The last non empty semi-additive measure aggregation functionality in SSAS enterprise edition is very useful, but it does. 阅读全文
posted @ 2011-10-25 11:48 cwe 阅读(439) 评论(0) 推荐(0) 编辑