2016年6月4日
摘要:
有几张表没有权限,所以跑不起来。 目测黄色部分比较坑爹,死了n多脑细胞才看懂,又死了n多脑细胞才改出来。对5034进行了2次扫描,并多次分组排序求和。(分组和排序算法相对来说比较耗性能) 改为只扫描一次,一次编号操作。 这个没有什么既定的规则,就是使劲想各种奇葩办法简化。(这个改写就是利用了orac
阅读全文
posted @ 2016-06-04 09:30
terry.zh
阅读(391)
推荐(0)
2016年2月17日
posted @ 2016-02-17 10:52
terry.zh
阅读(157)
推荐(0)
2016年1月28日
摘要:
证券代码 证券简称 大股东持股比例 [日期] 最新 [大股东排名] 第1名 [单位] % 总市值2 [交易日期] 最新收盘日 [单位] 亿元 000004.SZ 国农科技 28.4200 23.2615 000505.SZ 珠江控股 26.3600 27.3117 000609.SZ 绵世股份 10
阅读全文
posted @ 2016-01-28 11:31
terry.zh
阅读(1150)
推荐(0)
2015年7月20日
摘要:
public void SplitImg(string imgName, int part) { string path = Server.MapPath(@"nf\"); System.Drawing.Image img = System....
阅读全文
posted @ 2015-07-20 17:18
terry.zh
阅读(247)
推荐(0)
2015年6月12日
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Web....
阅读全文
posted @ 2015-06-12 17:51
terry.zh
阅读(278)
推荐(0)
2012年11月10日
摘要:
inq的基本语法:varresult=fromitemincontainerselectitem;linq获取数据子集:varresult=fromitemincontainerwherebooleanexpressionselectitem;Select用法:var selectedItems = from item in items where item.ParentID == parentID orderby item.SortIndex descending ,item.Nameascending select ite...
阅读全文
posted @ 2012-11-10 00:20
terry.zh
阅读(17460)
推荐(10)
2012年11月4日
摘要:
如果我们看这两个扩展函数的定义很容易明白——Select是把要遍历的集合IEnumerable<T>逐一遍历,每次返回一个T,合并之后直接返回一个IEnumerable<T>,而SelectMany则把原有的集合IEnumerable<T>每个元素遍历一遍,每次返回一个IEnumerable<T>,把这些IEnumerable<T>的“T”合并之后整体返回一个IEnumerable<T>。因此我们可以说一般情况下SelectMany用于返回一个IEnumerable<IEnumerable<T>>的
阅读全文
posted @ 2012-11-04 22:15
terry.zh
阅读(2408)
推荐(0)
2012年8月26日
摘要:
Response类:using System;using System.Collections.Generic;using System.Runtime.Serialization;namespace ConsoleApplication1{ [DataContract] [Serializable] public class Response { [DataMember] public string MessageKey { get; set; } [DataMember] public bool IsSucce...
阅读全文
posted @ 2012-08-26 17:41
terry.zh
阅读(1799)
推荐(0)
2012年7月28日
摘要:
1、关于enum的定义enumFabric{Cotton = 1,Silk = 2,Wool = 4,Rayon = 8,Other = 128}2、符号名和常数值的互相转换 Fabric fab = Fabric.Cotton; int fabNum =(int)fab;//转换为常数值。必须使用强制转换。 Fabric fabString = (Fabric)1;//常数值转换成符号名。如果使用ToString(),则是((Fabric)1).ToString(),注意必须有括号。 string fabType = fab.ToString();//显示符号名 string fabVal
阅读全文
posted @ 2012-07-28 16:26
terry.zh
阅读(1230)
推荐(1)
2012年7月12日
摘要:
很多时候开发中会用到把 List<string> 的内容拼接成以逗号分隔的字符串的形式,一直习惯了直接拼,今天才知道了更简洁的办法。这需要用到String.Join 方法Join(String,String[]) 串联字符串数组的所有元素,其中在每个元素之间使用指定的分隔符。 List<string> zz = new List<string>(); zz.Add("11"); zz.Add("22"); zz.Add("33"); string kk = string.Empty; ...
阅读全文
posted @ 2012-07-12 17:52
terry.zh
阅读(1555)
推荐(2)