摘要: //1.根据Order_No、Client_Code 两个字段去重,distinct之后的table只保留括号内写的字段DataTable DtHeadDis = DtEntities.DefaultView.ToTable(true, "Order_No", "Client_Code") //2. 阅读全文
posted @ 2019-08-22 11:14 Vaynedy 阅读(6050) 评论(0) 推荐(0) 编辑
摘要: 1 public class CollectionHelper 2 { 3 private CollectionHelper() 4 { 5 } 6 7 public static DataTable ConvertTo<T>(IList<T> list) 8 { 9 DataTable table 阅读全文
posted @ 2019-08-22 11:08 Vaynedy 阅读(161) 评论(0) 推荐(0) 编辑
摘要: //数据源 DataTable dt ; //拆分后的表头 DataTable DtHead ; //拆分后的表体 DataTable DtBody ; public void SplitDataTable(DataTable dt, out DataTable DtHead, out DataTa 阅读全文
posted @ 2019-08-22 11:07 Vaynedy 阅读(779) 评论(0) 推荐(0) 编辑
摘要: KeyDown 阅读全文
posted @ 2019-08-22 11:06 Vaynedy 阅读(1077) 评论(0) 推荐(0) 编辑
摘要: DateTime.Now.ToLongDateString(); 2017年5月3日 DateTime.Now.ToLongTimeString(); 14:49:41 DateTime.Now.ToShortDateString(); 2017/5/3 DateTime.Now.ToShortTi 阅读全文
posted @ 2019-08-22 11:02 Vaynedy 阅读(1612) 评论(0) 推荐(0) 编辑
摘要: //1.遍历参数逐个比对key function getQuery(keyValue) { var search = location.search.slice(1); var arr = search.split("&"); for (var i = 0; i < arr.length; i++) 阅读全文
posted @ 2019-08-22 11:01 Vaynedy 阅读(816) 评论(0) 推荐(0) 编辑
摘要: //判断是否为空,为空返回true function strIsNullOrEmpty(str0) { var str = String(str0); var res = false; if (str == '' || str == null || str == undefined || str == 'undefined') res = true; return res; } 阅读全文
posted @ 2019-08-22 10:58 Vaynedy 阅读(398) 评论(0) 推荐(0) 编辑
摘要: Assembly.Load("A").CreateInstance("B") A:程序集名,一般是命名空间 B:类的完全限定名,就是命名空间.类名 阅读全文
posted @ 2019-08-22 10:55 Vaynedy 阅读(418) 评论(0) 推荐(0) 编辑
摘要: 1. Viasfora (关键字高亮和彩虹括号) 2. Indent Guides (为代码缩进添加参考线) 3. Web Essentials (可以及时预览网页效果、兼容的CSS代码的生成、上下箭头可以改变数字值、可以生产Base64格式的字符串代替URL地址等等功能,具体功能介绍可以参考 ht 阅读全文
posted @ 2019-08-22 10:51 Vaynedy 阅读(456) 评论(0) 推荐(0) 编辑
摘要: JavaScript 版本:1.6 var newArr = arr.filter(element,index,self => self.indexOf(element) == index); 阅读全文
posted @ 2019-08-22 10:47 Vaynedy 阅读(196) 评论(0) 推荐(0) 编辑