ITeye博客

CodeToMyLaw的博客

CodeToMyLaw · 共 8 篇文章

jfreechart 生成报表 (1.0.6)

if("bzt".equals(tu)){ // 生成3D饼图 PiePlot3D plot = new PiePlot3D(getDataset()); plot.setToolTipGenerator(new StandardPieToolTipGenerator()); // 设置图片链接 plot.setURLGenerator(new StandardPieURLGenerator( "")); JFreeChart chart = new JFreeChart("", JFreeChart.DEFAULT_TITLE_FONT, plot, true); plot.setLabe…

2012-05-21 20:18 · 评论(0)

properties 文件操作

import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.Properties; /** 系统设置参数的读取和设置 @author CodeToMyLaw * */ public class SystemPropertiesUtils { private static Properties properties = new Proper…

2012-05-21 20:18 · 评论(0)

javaMail操作

import java.util.Properties; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.NoSuchProviderException; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.AddressException; import javax.mail.internet.InternetAddress; import javax.mail…

2012-05-21 20:17 · 评论(0)

js 浏览本地文件夹系统

function BrowseFolder(){ try{ var Message = "请选择文件夹"; //选择框提示信息 var Shell = new ActiveXObject( "Shell.Application" ); var Folder = Shell.BrowseForFolder(0,Message,0x0040,0x11);//起始目录为:我的电脑 //var Folder = Shell.BrowseForFolder(0,Message,0); //起始目录为:桌面 if(Folder != null){ Folder = Folder.items(); // …

2012-04-10 16:25 · 评论(0)

文件下载

/** * 评论文档文件下载 * @return * @throws Exception */ public String downloadfile()throws Exception{ try{ //存放文件的根: fileRoot = /DPIv5r1MNP_Review; AppInfo appInfo = appInfoService.getAppInfoById(Integer.parseInt(appId)); String appName = appInfo.getAppName(); String subName = appInfo.getSubCategory().getS…

2012-03-31 14:48 · 评论(0)

Spring 定时器

package cn.hs.dpl.web.action; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.sql.Timestamp; import org.quartz.JobExecutionContext; import org.…

2012-03-31 11:12 · 评论(0)

Spring 定时器 (配置文件)

<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:context="http://www.springframework…

2012-03-31 11:12 · 评论(0)

java 日志管理

package cn.hs.dpl.utils; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.Properties; import org.apache.log4j.Logger; import org.apache.log4j.SimpleLayout; import org.apache.log4j.WriterApp…

2012-03-31 10:49 · 评论(0)