- 博客(8)
- 收藏
- 关注
原创 InputStream与OutputStream的使用例子
package com.hanchao.test;import java.io.BufferedInputStream;import java.io.BufferedOutputStream;import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;/*...
2012-12-21 14:52:20 275
原创 甘特图父子任务级联关系
由于甘特图的任务id必须是0-9的数字,所以这里的任务id为rid,id字段为数据库中的逐渐。下面两个方法为核心方法。 //定义一个空有序集合List<GanttViewBean> resultList = new ArrayList<GanttViewBean>(); //将获取的数据进行级联排序private List<GanttVie...
2012-09-27 19:39:39 1184
原创 32位16进制转换为10进制
public class Trans2Ten { public static void main(String[] args) { long l = sixteen2ten("11e1-c418-a000039f-baac-7596f0d041ff"); System.out.println("十进制:" + l); } public static long sixteen2ten(S...
2012-09-25 11:06:47 3158
原创 json 数据解析
import net.sf.json.JSONArray;import net.sf.json.JSONObject; 模拟数据JSONObject xCol = {"label":"招聘部门","fieldtype":"VALUE_TYPE_VARCHAR","fx":"","value":"ITEM_RECRUITMENT_DEPARTMEN
2012-09-17 10:24:06 76
原创 DBUtil
public static Connection getConnection(){ Connection con=null; try{ con=DriverManager.getConnection( "jdbc:mysql://localhost:3306/department","root","root" ); }c...
2012-09-07 14:31:14 97
原创 java 随机获取十六进制颜色代码
public class RandomColor { public String getRandColor() { String r, g, b; Random random = new Random(); r = Integer.toHexString(random.nextInt(256)).toUpperCase(); g = Integer.toHexString(random....
2012-09-07 14:29:40 637
原创 FusionCharts参数的详细说明和功能特性
功能特性animation 是否动画显示数据,默认为1(True)showNames 是否显示横向坐标轴(x轴)标签名称rotateNames 是否旋转显示标签,默认为0(False):横向显示showValues 是否在图表显示对应的数据值,默认为1...
2012-09-07 13:45:31 82
JS 计算日期差
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title></title> </head> <body> <scri
2012-09-03 15:39:17 145
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人