XiYO

现实不同情弱者,命运不相信眼泪。
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年1月27日

摘要: /*Date.prototype.isLeapYear 判断闰年Date.prototype.Format 日期格式化Date.prototype.DateAdd 日期计算Date.prototype.DateDiff 比较日期差Date.prototype.toString 日期转字符串Date.prototype.toArray 日期分割为数组Date.prototype.DatePart 取日期的部分信息Date.prototype.MaxDayOfDate 取日期所在月的最大天数Date.prototype.WeekNumOfYear 判断日期所在年的第几周StringToDate 字 阅读全文

posted @ 2011-01-27 14:10 XiYO 阅读(3782) 评论(0) 推荐(0) 编辑

摘要: /// summary /// 将datatable 转换成json数据格式 /// /summary /// param name="dt"/param /// returns/returns private string DataTableToJson(DataTable dt) { StringBuilder strJson = new StringBuilder(); strJson.Append("["); for (int i = 0; i dt.Rows.Count; i++) { strJson.Append("{"); for (int j = 0 阅读全文

posted @ 2011-01-27 14:01 XiYO 阅读(179) 评论(0) 推荐(0) 编辑

摘要: --获取父节点下的所有子节点if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[GetChild]') and xtype in (N'FN', N'IF', N'TF'))drop function [dbo].[GetChild]GOSET QUOTED_IDENTIFIER OFF GOSET ANSI_NULLS OFF GOCreate function [dbo].[GetChild](@ID varchar(10)) returns @t table(ID varchar(10),Parent 阅读全文

posted @ 2011-01-27 13:47 XiYO 阅读(1912) 评论(0) 推荐(0) 编辑

摘要: /// /// 动态Linq辅助类 /// public static class PredicateBuilder { public static Expression> True() { return f => true; } public static Expression> False(... 阅读全文

posted @ 2011-01-27 10:31 XiYO 阅读(408) 评论(0) 推荐(1) 编辑

摘要: public class PagerModel { private PagerInfo _PagerInfo = new PagerInfo(); public PagerInfo PagerInfo { get { return _PagerInfo; } set { _PagerInfo = v... 阅读全文

posted @ 2011-01-27 10:24 XiYO 阅读(960) 评论(1) 推荐(0) 编辑

摘要: js常用方法 阅读全文

posted @ 2011-01-27 09:54 XiYO 阅读(624) 评论(0) 推荐(0) 编辑