- 浏览: 20918 次
- 性别:
- 来自: 沈阳
最新评论
文章列表
import java.util.Calendar;
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;
public class ReportGenerator extends TimerTask {
public void run() {
System.out.println("Generating report");
//TODO generate report
}
}
class MainApplication ...
<script type="text/javascript" src="${path}/commons/js/jquery.multiselect.js" ></script>
$("#materialSelect").multiselect({
noneSelectedText: "==请选择==",
checkAllText: "全选",
uncheckAllText: ...
/**李树超
* import form by Excel
*/
@Transactional
public void readByExcel(File upload){
try {
FileInputStream file = new FileInputStream(upload);
//Create Workbook instance holding reference to .xlsx file
XSSFWorkbook workbook = new XSSFWorkbook(file);
...
@Transactional//(rollbackFor=Exception.class) LISHUCHAO
public void readByCSV(File upload, String FORMNO) throws Exception {
InputStreamReader freader = new InputStreamReader(new FileInputStream(upload), "GB2312");
CsvListReader reader = new CsvListReader(freader, CsvPreference.EX ...
java 连接 Excel 数据库
- 博客分类:
- java
/**
*
*/
package com.user.util;
import java.io.UnsupportedEncodingException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
/**
* @author Li Shuchao
* 2013-8-9 下午02:48:54 2013
*/
p ...
// 我从后台动态生成的列,大家注意列的属性设置即可,以下是 action 代码
//----------以上添加了固定列;可变列要动态的从页面接收,或者从数据库中选取
List<String> companyList = materialStockedService.ListCompanies();
for (String company : companyList){
//合并的列名称
String spaned_quantity_name = "SUM_Quantity_" + company;
...
//部分代码
ColSpan(GroupHeaders);
jQuery("#gridTable").jqGrid('setFrozenColumns');
//这句话起决定作用
jQuery("#gridTable").triggerHandler("jqGridAfterGridComplete");
}
function ColSpan(data){
jQuery("#grid ...
// catalogname = data1.rslt.obj.attr("title");
var ids = data.inst.get_path('#' + data.rslt.obj.attr('id'),true);
// Returns IDs from root to selected node
var names = data.inst.get_path('#' + data.rslt.obj.attr('id'),false);
// Returns Name's from root to selected node
alert(&q ...
java 打包生成 jar 文件
- 博客分类:
- java
step1:
step2 :
step3 :
step4 :
done
做 ftp 下载,无意间发现中文路径 ftp 不识别,问题解决
InputStream in = ftp.retrieveFileStream(path);
pool.freeConnection(ftp);
- 2013-06-27 16:22
- 浏览 2150
- 评论(0)
oracle : replace(replace(GXSCODE,CHR(13),''),CHR(10),'')
sql : replace(gxscode , CHAR(13)+CHAR(10),'')
springTemplate 收藏的
- 博客分类:
- spring
本文收藏自 http://my.oschina.net/jolphin/blog/61693
package com.team.dao;
import java.util.List;
import java.util.Map;
import org.springframework.jdbc.core.JdbcTemplate;
import com.team.util.PageHelper;
public interface Jdbc {
// JdbcTemplate
public JdbcTemplate getJdbcTemplate();
...
jsonObject 用法
- 博客分类:
- java
1. JSONObject jsonObj = new JSONObject().fromObject(bean);
GysDogBean bean = new GysDogBean();
try {
queryCondition = Util.URLDecoder(queryCondition);
bean = RosDao.getGysDogBeanByLockId(queryCondition);
} catch (Exception e) {
e.printStackTrace();
}
JSONObject jsonObj ...