SimpleDateFormat sdf = new SimpleDateFormat(
"yyyy-MM-dd HH:mm:ss" );Date dateExecute = sdf.parse(executeDate );Calendar
calendar = Calendar.getInstan...
分类:
其他 时间:
2014-01-24 08:29:42
收藏:
0 评论:
0 赞:
0 阅读:
363
判断文件真实的类型,不是通过扩展名来判断: /// /// 判断文件格式 ///
http://www.cnblogs.com/babycool /// /// /// public static bool
IsAllowedExtension(string filePath) { FileStre...
分类:
其他 时间:
2014-01-24 08:28:42
收藏:
0 评论:
0 赞:
0 阅读:
369
//WCF service: string servicePath =
System.Web.Hosting.HostingEnvironment.MapPath("~");
//F:\WorkSpace\EHR\src\vs2010\EHR\EHR\bin\Debug\ string strBas...
分类:
其他 时间:
2014-01-24 08:27:42
收藏:
0 评论:
0 赞:
0 阅读:
372
1.删除 Width 和 Height 属性;2.将 Windows.SizeToContent
属性设置为 WidthAndHeight这时窗口就能自动调整自身大小,从而容纳所包含的内容。通过将 Windows.SizeToContent 属性设置为
Width 或 Hight ,可以使窗口只能在...
分类:
其他 时间:
2014-01-24 08:25:42
收藏:
0 评论:
0 赞:
0 阅读:
413
Skew BinaryWhen a number is expressed in
decimal, thek-th digit represents a multiple of 10k. (Digits are numbered from
right to left, where the least...
分类:
其他 时间:
2014-01-24 08:23:42
收藏:
0 评论:
0 赞:
0 阅读:
357
转载:http://www.cnblogs.com/walkingp/archive/2011/04/04/2003875.htmlHTML5中的localStoragelocalStorage与cookie类似,它是存储在客户端浏览器中的数据,它与cookie不同的一点是它没有时间限制。local...
分类:
其他 时间:
2014-01-24 08:22:42
收藏:
0 评论:
0 赞:
0 阅读:
347
public List searchTplReleaseById(TplRelease
tr)throws Exception{ DBOperator dbo = getDBOperator(); try{ List tplReleaseList
= new ArrayList(); String ...
分类:
其他 时间:
2014-01-24 08:21:42
收藏:
0 评论:
0 赞:
0 阅读:
411
Dictionary 的几种遍历方法Dictionarydic =
newDictionary();方法1foreach (var item in dic){Console.WriteLine(dic.Key +
dic.Value);}方法2//KeyValuePairforeach (KeyVa...
分类:
其他 时间:
2014-01-24 08:20:42
收藏:
0 评论:
0 赞:
0 阅读:
358
List list = patientmains.OrderBy(p =>
p.Firstname).ThenBy(p => p.Middlename).ThenBy(p => p.Lastname).ToList();
分类:
其他 时间:
2014-01-24 08:19:42
收藏:
0 评论:
0 赞:
0 阅读:
322
DateTime.Now.ToUniversalTime().ToString("yyMMddHHmmss");
分类:
其他 时间:
2014-01-24 08:15:42
收藏:
0 评论:
0 赞:
0 阅读:
314
netstat -anp | grepportno,查看端口号ls -l
/proc/pid查看进程目录
分类:
其他 时间:
2014-01-24 08:14:42
收藏:
0 评论:
0 赞:
0 阅读:
340
Border: Button: 使用 ButtonChrome
装饰元素获取特有的圆角和阴影背景效果。ListBox 使用 ListBoxChrome 装饰元素。
分类:
其他 时间:
2014-01-24 08:11:42
收藏:
0 评论:
0 赞:
0 阅读:
419
假如我们需要建造一个房子,并且我们也不知道如何去建造房子,所以就去找别人帮我们造房子第一步:新建一个房子类House,里面有房子该有的属性,我们去找房子建造者接口HouseBuilder,我们要建造一栋平房,就去找PingFangHouseBuilder,该类继承自HouseBuilder,里面有具...
分类:
其他 时间:
2014-01-24 08:09:42
收藏:
0 评论:
0 赞:
0 阅读:
364
UUID.randomUUID().toString()
分类:
其他 时间:
2014-01-24 08:08:42
收藏:
0 评论:
0 赞:
0 阅读:
296
public int searchProblemDistinctCount() throws
Exception { DBOperator dbo = getDBOperator(); try { PatientproblemTableAdapter
adapter = new Patientpro...
分类:
其他 时间:
2014-01-24 08:07:42
收藏:
0 评论:
0 赞:
0 阅读:
364
移动应用开发中有这么一种场景,就是在列表中显示的数据刷新,有点击刷新按钮刷新的,也有现在最流行的由Twitter首先推出的下拉刷新功能,在IOS中,使用下拉刷新更新UITableView中的数据也用的非常多,最典型的就是新浪微博的客户端,使用下拉的形式来更新最新的微博信息。在Android开发中,有...
分类:
其他 时间:
2014-01-24 08:06:42
收藏:
0 评论:
0 赞:
0 阅读:
431
1.序列化 public static byte[] SerializeObject(object
obj) { if (obj == null) return null; MemoryStream ms = new MemoryStream();
BinaryFormatter formatter...
分类:
其他 时间:
2014-01-24 08:05:42
收藏:
0 评论:
0 赞:
0 阅读:
498
C#的一个新特征是也可以给类编写无参数的静态构造函数。这种构造函数只执行一次,而前面的构造函数是实例构造函数,只要创建类的对象,就会执行它。
1.编写静态构造函数的一个原因是,类有一些静态字段或属性,需要在第1次使用类之前,从外部源中初始化这些静态字段和属性。2..Net
运行库没有确保什么时候执行...
分类:
其他 时间:
2014-01-24 08:04:42
收藏:
0 评论:
0 赞:
0 阅读:
300
http://blog.csdn.net/sosodream/article/details/5683515实例解析shell子进程(subshell
)通过实例,解析个人对shell子进程的一个了解,主要包括以下几个方面1:什么是shell子进程2:shell什么情况下会产生子进程3:子进程的特点...
分类:
其他 时间:
2014-01-24 08:02:42
收藏:
0 评论:
0 赞:
0 阅读:
386
最近项目中涉及到旧老项目迁移,需要在nginx上做些配置,所以简单学习了下,好记性不如烂笔头,先记下来。rewrite首先查看下nginx是否支持rewrite:./nginx
-V不支持说明安装nginx时候缺少pcre,需要重新安装nginx:#安装pcrewget ftp://ftp.csx....
分类:
其他 时间:
2014-01-24 07:57:42
收藏:
0 评论:
0 赞:
2 阅读:
3957