摘要: 1 import java.util.ArrayList; 2 import java.util.List; 3 4 public class Page<T> { 5 6 private int startIndex; //该页的起始行数 7 private int pageNum; //当前页码 8 private int totalPageNum; //总页数 9 private int totalNum; //总记录数10 private int pageSize = 2; //每页显示的记录数量11 private List<T> ... 阅读全文
posted @ 2013-05-13 22:10 system("cls") 阅读(627) 评论(0) 推荐(0) 编辑
摘要: 1 public static String getTime(String time) { 2 3 String now = DateUtil.getNow(); 4 if(time == null) { 5 time = DateUtil.getNow(); 6 } 7 int nowYear = Integer.valueOf(now.substring(0, 4)); 8 int year = Integer.valueOf(time.substring(0, 4)); 9 10 String temp;11 temp = now.substring(now.indexOf(" 阅读全文
posted @ 2013-05-13 22:08 system("cls") 阅读(253) 评论(0) 推荐(0) 编辑
摘要: $(".edit").dblclick(function(even) { var id = $(this).attr("ref"); var td = $(this); var input = $("<input>"); input.type = "text"; var val = $(this).html(); input.val($(this).html()); $(this).html(""); $(this).append(input); input.focus(); inp 阅读全文
posted @ 2013-05-13 22:04 system("cls") 阅读(544) 评论(0) 推荐(0) 编辑