<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://www.bstek.com/dorado" prefix="d"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>科技管理平台</title>
<link href="<%=request.getContextPath()%>/css/common.css"
rel="stylesheet" type="text/css" />
<script type="text/javascript">
function autoclick() {
document.getElementById("t4").click();
}
</script>
</head>
<body onload="javascript:autoclick();">
<jsp:include page="/div.jsp" />
<div id="container">
<jsp:include page="/top2.jsp" />
<div id="mainContent">
<div id="sidebar">
<jsp:include page="/left.jsp" />
<div id="sidebar2">
<div id="content" style="height: 400px;">
<div class="daohang">
<b>首页 - 事件管理 - 事件详细</b>
</div>
<div class="tittle"></div>
<d:View config="com.heda.kjgl.client.event.eventDetail">
<d:Layout type="vflow" width="97%">
<d:Pane>
<d:AutoForm id="formEventBase" /><br>
<div align="center">
<d:Button id="buttonBack" />
<d:Button id="buttonExport" />
</div>
<d:DataTable id="tableEventResList" />
</d:Pane>
<d:Pane height="8px">
</d:Pane>
</d:Layout>
</d:View>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
<script type="text/javascript">
function doExport2word(){
//../common/testword.jsp
var cur=datasetEventBase.getCurrent();
if(cur!=null){
var prId=cur.getValue("prId");//分行事件单号
var hdId=cur.getValue("hdId");//IT服务台单号
var prTitle=cur.getValue("prTitle");//事件名称
var prImpact=cur.getValue("prImpact");//影响度
var logTime="";
var tmp=cur.getValue("logTime");//请求时间
if(tmp!=null&&tmp!=""){
var date=new Date(tmp);
logTime=date.getYear()+"-"+(date.getMonth()*1+1)+"-"+date.getDate()
}
var prCategoryId=cur.getValue("prCategoryId");//类型ID
var prCategory=cur.getValue("prCategory");//类型一级
var prType=cur.getValue("prType");//类型二级
var prItem=cur.getValue("prItem");//类型三级
var prDesc=cur.getValue("prDesc");//事件描述
window.location.href="exportEventDetail2word.jsp?prId="+prId
+"&hdId="+hdId
+"&prTitle="+prTitle
+"&prImpact="+prImpact
+"&logTime="+logTime
+"&prCategoryId="+prCategoryId
+"&prCategory="+prCategory
+"&prType="+prType
+"&prItem="+prItem
+"&prDesc="+prDesc;
}
}
</script>
<%@page contentType="application/msword"%>
<%
//response.setContentType( "Application;charset=GB2312");
response.setHeader("Content-Disposition","attachment;filename=temp.doc");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>详细信息</title>
</head>
<body>
<div><B>详细信息:</B></div>
<div>
<table border="1" width="80%" align="left" cellpadding="2" cellspacing="1" cellpadding="1" cellspacing="1" >
<tr bgcolor="#FFFFFF">
<td align="right" width="120">分行事件单号:</td>
<td colspan="2"><%=request.getParameter("prId")%></td>
<td align="right" width="120">IT服务台单号:</td>
<td colspan="2"><%=request.getParameter("hdId")%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="right" width="120">事件名称:</td>
<td colspan="2"><%=request.getParameter("prTitle")%></td>
<td align="right" width="120">影响度 :</td>
<td colspan="2"><%=request.getParameter("prImpact")%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="right" width="120">请求时间:</td>
<td colspan="2"><%=request.getParameter("logTime")%></td>
<td align="right" width="120">类型ID:</td>
<td colspan="2"><%=request.getParameter("prCategoryId")%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="right" width="120">类型一级:</td>
<td colspan="1"><%=request.getParameter("prCategory")%></td>
<td align="right" width="120">类型二级:</td>
<td colspan="1"><%=request.getParameter("prType")%></td>
<td align="right" width="120">类型三级:</td>
<td colspan="1"><%=request.getParameter("类型三级 ")%></td>
</tr>
<tr bgcolor="#FFFFFF" >
<td align="right" width="120" rowspan="2">事件描述:</td>
<td colspan="5" rowspan="2"><%=request.getParameter("prDesc")%></td>
</tr>
</table>
</div>
<br/>
</body>
</html>
分享到:
相关推荐
在日常的开发工作中,我们时常会遇到导出Word文档报表的需求,比如公司的财务报表、医院的患者统计报表、电商平台的销售报表等等。 导出Word方式多种多样,通常有以下几种方式: 1. 使用第三方Java工具类库Hutool的...
最近因项目开发的需要,整理了一份用JAVA导出WORD文档,其部署步骤如下: 1、将jacob-1.14.3-x86.dll放在服务器的系统盘(或运行本机的系统):\WINDOWS\system32目录下。 2、将jacob-1.14.3-x86.dll放在JDK 的 bin ...
亲测可用,jquery导出word 支持html,图片等格式。注:导出内容若包含图片则图片必须给个唯一的id
pdm导出word模板(附使用说明)
Swagger接口导出Word源码
PowerDesigner导出word模版 pdm word 表,导出表名,列名。
Apifox导出word版接口文档-模板
java freemarker导出word -包含多张图片导出
自定义导出word模板,模板包含表清单、索引清单、表列清单
把整个网页导出word极其经典,很有用啊
poi导出word例子(图片)
unity导出word【NPOI2.5.1版本】
导出Word (js方式)导出Word (js方式)导出Word (js方式)导出Word (js方式)
java导出word使用freemarker模板map数据导出word带图片 可以循环map 中list。 调用的2种方法在博客 https://blog.csdn.net/yjflinchong/article/details/122614203
实现在线导出word文件。实现在线导出word文件。实现在线导出word文件。实现在线导出word文件。实现在线导出word文件。
PowerDesigner导出word通用模版,导出表清单和表列清单
支持php、thinkphp进行将html页面直接导出为word,样式可一并导出为word
自带插件 ,代码齐全, 可直接导出word,亲测有效,放心下载!
java导出文件, freemarker导出word需要ftl文件,java导出Word常见问题。2.TXT修改后缀名为.ftl
POI导出Word包含页眉 页脚的设置,标题的设置以及显示显示设置,包括POI操作Word完整的jar包