- 浏览: 19306 次
- 性别:
- 来自: 深圳
最新评论
文章列表
<%@ page language="java" pageEncoding="GBK"%>
<jsp:directive.page import="com.accp.crm.common.PaginationBean"/>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags ...
/**
* 打印数据
* @return
*/
public void PrintExcel(WritableSheet sheet,WritableWorkbook wwb,String fileName,String cityName){
try {
// 获得开始时间
long start = System.currentTimeMillis();
// 写入数据
wwb.write();
// 关闭文件 ...
导出execl公共类
- 博客分类:
- java
、protected HttpServletResponse getResponse() {
return ServletActionContext.getResponse();
}
/**
* 输出表头
* @return
*/
public void CraeateExce(String []select,String[] stitle,WritableSheet sheet){
try {
...
// 列名信息
private String headerDataKey;
// 导出EXCEL的头信息
private String header;
public String getHeader() {
return header;
}
public void setHeader(String header) {
this.header = header;
}
public String getHeaderDataKey() {
return headerDataKey;
}
public void setHeaderDataKey(String heade ...
public void CreateProjectVessionScoreExcel(){
try {
CreateExcel c=new CreateExcel();
int filei=0;
// list中存放的对象的class
String className = "com.huawei.sdmp.data.ProjectVessionScore";
// 表头
String[] ...
// 导出EXCEL
function exportExcel() {
// 判断是否通过客户端验证
if ((!startTimeField.validate() || !endTimeField.validate())) {
Ext.Msg.alert("提示", "输入的日期不符合要求:详细情况请查看红线提示!");
return;
}
var startTime;
var endTime;
// 按指定时间查询
if (state == 0) {
...
java读取存储过程
- 博客分类:
- java
/**
* 获取项目级构建
*
* @param Conditions
* 查询条件
* @return
*/
public List<?> getProject(Map<String, Object> conditions) {
Session session = getSession();
log.debug("获取项目级构建conditions(" + conditions + ")");
try {
// 存储过程
Query query = get ...
$("#light tr td").each(function(i){
if($(this).attr("lang")!=undefined && $(this).attr("lang") == "tdTitle"){
if($(this).attr("id")==undefined || isNaN($(this).attr("id"))){
if($(this).text().length>200){
//$(this). ...
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%@ page import="bysj.Dao.*"%>
<%@ page import="bysj.Entity.*"%>
<%!int newid=0; %>
<%!int index=0; %>
<%
request.setCharacterEncoding("gbk" ...
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%@ page import="bysj.Dao.*"%>
<%@ page import="bysj.Entity.*"%>
<%
request.setCharacterEncoding("GBK");
NewsDao newss=new NewsDao();
%>
<%!int i ...
<table width="193" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="middle"><a href="showNewsList.jsp"><img src="image/cg1_r1_c2.jpg" width="175&quo ...
td {
font-size: 12px;
line-height: 150%;
color: #000000;
}
body {
FONT-SIZE: 12px;COLOR: #000000; FONT-FAMILY: "宋体"; background-color:#D6E0EF
}
a {
color: #0044DD;
text-decoration: none;
}
a:hover {
color: #FF3300;
text-decoration: underline;
}
a:visited {
color: #0044DD;
text-dec ...
BODY {
FONT-SIZE: 12px; COLOR: #666666; LINE-HEIGHT: 130%
}
TD {
FONT-SIZE: 12px; COLOR: #666666; LINE-HEIGHT: 130%
}
A {
FONT-SIZE: 12px; COLOR: #666666; LINE-HEIGHT: 130%
}
P {
FONT-SIZE: 12px; COLOR: #666666; LINE-HEIGHT: 130%
}
.nav {
FONT-SIZE: 12px; COLOR: #666666
}
.table {
}
.title {
...