- 浏览: 13959 次
最新评论
文章列表
package com.hanchao.test;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
/**
* 测试类
* @author hanlw
* 2012 -07 - 04
*/
public class Test_two {
public static void main(String[] ...
由于甘特图的任务id必须是0-9的数字,所以这里的任务id为rid,id字段为数据库中的逐渐。
下面两个方法为核心方法。
//定义一个空有序集合
List<GanttViewBean> resultList = new ArrayList<GanttViewBean>();
//将获取的数据进行级联排序
private List<GanttViewBean> compareList(List<GanttViewBean> dataList) { if (!dataList.isEmpty()) { for (GanttV ...
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(String str) { long result = 0; String a = ""; String[] b = str.split( ...
import net.sf.json.JSONArray;import net.sf.json.JSONObject;
模拟数据
JSONObject xCol = {"label":"招聘部门","fieldtype":"VALUE_TYPE_VARCHAR","fx":"","value":"ITEM_RECRUITMENT_DEPARTMENT"};JSONArray yCols = [{"label&quo ...
public static Connection getConnection(){ Connection con=null; try{ con=DriverManager.getConnection( "jdbc:mysql://localhost:3306/department","root","root" ); }catch(Exception e){ ...
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.nextInt(256)).toUpperCase(); b = Integer.toHexString(random.nextInt(256)).toUpperCase();
r = r.le ...
功能特性animation 是否动画显示数据,默认为1(True)showNames 是否显示横向坐标轴(x轴)标签名称rotateNames 是否旋转显示标签,默认为0(False):横向显示showValues ...