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

2013年8月8日

摘要: 1 CREATE PROCEDURE Sys_Init_tblaccountsuser_sortid () 2 3 4 P1: BEGIN 5 declare not_found condition for sqlstate '02000'; 6 DECLARE V_RK_ID INTEGER DEFAULT 0; 7 DECLARE V_ID INTEGER DEFAULT 0; 8 DECLARE V_AT_END INT DEFAULT 0; 9 10 DECLARE CUR1 CURSOR WITH RETURN TO CLIENT F... 阅读全文

posted @ 2013-08-08 18:24 生命如风 阅读(991) 评论(0) 推荐(0)

2013年8月6日

摘要: cs文件中添加文本框属性this.TextBox.Attributes.Add("MaxLength", "200"); 1 $(document).ready(function() { 2 $("textarea").each(function() { 3 var maxLength = $(this).attr("MaxLength"); 4 if (maxLength) { 5 $(this).bind("keyup", "", function(e) { 6... 阅读全文

posted @ 2013-08-06 18:01 生命如风 阅读(431) 评论(0) 推荐(0)

2013年7月26日

摘要: Javascript number超过16位就无法比较了,所以自己写了一个。 用到的数组函数 1、Array.reverse() 方法将一个 Array 对象中的元素位置进行反转。在执行过程中,这个方法并不会创建一个新的 Array 对象 2、Array.concat concat方法返回一个Array对象,其中包含了array1和提供的任意其他项目的连接。 3、Array.join join 返回字符串值,其中包含了连接到一起的数组的所有元素,元素由指定的分隔符分隔开来。 1 阅读全文

posted @ 2013-07-26 19:17 生命如风 阅读(1033) 评论(0) 推荐(0)

2013年7月24日

摘要: 取出每组的第一个select *from (select * ,RANK ( ) OVER( PARTITION by org order by reportcode asc) PartionNumfrom test) twhere PartionNum = 1rog:分组的字段reportcode :排序字段 阅读全文

posted @ 2013-07-24 18:59 生命如风 阅读(433) 评论(0) 推荐(0)

2013年7月17日

摘要: 1、递归替换 function replaceChar(str, oldChar, newChar) { if (str.indexOf(oldChar) != -1) { str = str.replace(oldChar, newChar); return replaceChar(str,oldChar, newChar); } else { return str; } }2、使用 replace ... 阅读全文

posted @ 2013-07-17 18:58 生命如风 阅读(1545) 评论(0) 推荐(0)

2012年6月12日

摘要: textarea输入限制 阅读全文

posted @ 2012-06-12 11:11 生命如风 阅读(196) 评论(0) 推荐(0)

摘要: 1、参考网上的代码,自己写了个检测进程的服务。 启动的飞鸽只能看到进程,看不到图形见面。 using (System.IO.StreamWriter sw = new System.IO.StreamWriter("d:\\log.txt", true)) { Process[] processList; processList = System.Diagnostics.Process.GetProcesses(); IList<string> processNames = new List<string>(); //Process process; 阅读全文

posted @ 2012-06-12 11:07 生命如风 阅读(221) 评论(0) 推荐(0)

2012年6月7日

摘要: 1、MyBatis 下使用SQLite2、Repeater三层嵌套绑定3、Excel 导出实例将sqlMap.config 中connectionString 修改为实际数据库路径就使用了。代码:http://files.cnblogs.com/xiaoyu369/SqliteDemo2012-01-05.rar 阅读全文

posted @ 2012-06-07 15:05 生命如风 阅读(3604) 评论(0) 推荐(1)

2012年3月28日

摘要: webService调用地址:http://www.webxml.com.cn/WebServices/WeatherWebService.asmx代码下载:http://files.cnblogs.com/xiaoyu369/Weather_26.rar 阅读全文

posted @ 2012-03-28 09:57 生命如风 阅读(141) 评论(0) 推荐(0)

2012年1月16日

摘要: DECLARE @DT AS VARCHAR(255); (255),SET @DT = N'E:\DataBaseBackup\dataBackupName_' + CONVERT(VARCHARGETDATE(),12) + '_auto.BAK'; BACKUP DATABASE [DataBaseName] TO DISK = @DT WITH NOFORMAT, NOINIT, NAME = N'ERP-完整 数据库 备份', SKIP, NOREWIND,NOUNLOAD, STATS = 10 GO 阅读全文

posted @ 2012-01-16 09:41 生命如风 阅读(158) 评论(0) 推荐(0)