📄 report_1.jsp
字号:
<%@ page contentType="text/html;charset=GBK" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/runqianReport.tld" prefix="report"%>
<%@ page import="com.icss.cnpc.util.CommUtil" %>
<%
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
%>
<%
System.out.println("jsp");
String unitcode = (String)request.getAttribute("unitcode");//当前部门编码
String unitname = (String)request.getAttribute("unitname");//当前部门名称
String root = request.getContextPath();
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
</head>
<%@ include file="report_1_MyFunc.jsp"%>
<script language="javascript">
function query()
{
document.form1.submit();
}
function _changeModule()
{
var sForm = document.form1;
sForm.toJsp.value = "/jsp/report/report_1_1.jsp";
sForm.token.value = "true";
sForm.submit();
}
function _changeModule2()
{
var sForm = document.form1;
if(sForm.unitcode.value == "")
{
alert("请选择审计单位!");
return;
}
sForm.toJsp.value = "/jsp/report/report_1.jsp";
sForm.token.value = "true";
sForm.submit();
}
</script>
<%
String entry = request.getParameter("entry");
String file = null;
String title = "";
System.out.println("entry-->"+entry);
if("1".equals(entry))
{
file = "06auditreport.raq";
title = "审计工作基本情况表";
}
else if("2".equals(entry))
{
file = "06questionreport.raq";
title = "违纪违规及处理情况";
}
else if("3".equals(entry))
{
file = "06organdpersonreport.raq";
title = "审计机构及人员情况 ";
}
else if("4".equals(entry))
{
file = "06planstatisticreport.raq";
title = "审计项目完成情况表 ";
}else if("5".equals(entry))
{
file = "06financereport.raq";
title = "财务类型审计统计表";
}else if("6".equals(entry))
{
file = "06constuctreport.raq";
title = "建设工程审计统计表";
}else if("7".equals(entry))
{
file = "06contractreport.raq";
title = "经济合同审计统计表";
}else if("8".equals(entry))
{
file = "06internalcontrolreport.raq";
title = "内部控制审计统计表 ";
}else if("9".equals(entry))
{
file = "06economyDutyStatistics.raq";
title = "经济责任审计统计表";
}else if("10".equals(entry))
{
file = "06outsideauditprojreport.raq";
title = "境外项目审计统计表";
}else if("11".equals(entry))
{
file = "06detailreport.raq";
title = "审计工作情况明细表";
}
StringBuffer param = new StringBuffer();
String projectyear = (String)request.getAttribute("projectyear");
String beginDate = (String)request.getAttribute("beginDate");
String endDate = (String)request.getAttribute("endDate");
String isAudit = (String)request.getAttribute("isAO");
String orgCodeUnit = (String)request.getAttribute("orgCodeUnit");
String isjigou = (String)request.getAttribute("isjigou");
String isshenji = (String)request.getAttribute("isshenji");
if(projectyear != null)
param.append("year=").append(projectyear).append(";");
if(unitcode != null && !"".equals(unitcode) )
param.append("orgCode=").append(unitcode).append(";");
if(beginDate != null)
param.append("beginDate=").append(beginDate).append(";");
if(endDate != null)
param.append("endDate=").append(endDate).append(";");
if(isAudit != null)
param.append("isAudit=").append(isAudit).append(";");
if(orgCodeUnit != null)
param.append("orgCodeUnit=").append(orgCodeUnit).append(";");
if(isjigou != null)
param.append("isjigou=").append(isjigou).append(";");
if(isshenji != null)
param.append("isshenji=").append(isshenji).append(";");
if(unitname != null)
param.append("unitname=").append(unitname).append(";");
System.out.println("[check]param---->" + param.toString());
%>
<body background=<%=request.getContextPath()%>/images/grid.gif bgColor=#eef4ff>
<form name="form1" action="<%=request.getContextPath()%>/servlet/AuditWorkCircsReportServlet">
<input type="hidden" name="unitcode" value='<c:out value="${unitcode}"/>'>
<input type="hidden" name="beginDate" value='<c:out value="${beginDate}"/>'>
<input type="hidden" name="endDate" value='<c:out value="${endDate}"/>'>
<input type="hidden" name="isAudit" value='<c:out value="${isAudit}"/>'>
<input type="hidden" name="orgCodeUnit" value='<c:out value="${orgCodeUnit}"/>'>
<input type="hidden" name="entry" value='<c:out value="${param.entry}"/>'>
<input type="hidden" name="token" value='<c:out value="${param.token}"/>'>
<input type="hidden" name="toJsp">
<%@ include file="queryhead.jsp" %>
<p></p>
<%
if(request.getParameter("token") != null)
{
%>
<!--
<c:choose>
<c:when test="${param.entry == '1'}">
<div class="tag1" style="background-color: #a6d0f2">审计工作情况</div>
<div class="tag2" onclick="_changeModule()">取得经济成果合计</div>
</c:when>
<c:when test="${param.entry == '3'}">
<div class="tag3" style="background-color: #a6d0f2">审计项目完成情况</div>
<div class="tag4" onclick="_changeModule()">审计机构及人员情况</div>
</c:when>
</c:choose>
-->
</table>
</form>
<div align="left" width="100%">
<report:html name="myreport" reportFileName="<%=file%>"
needPageMark="no" width="-1" height="-1"
params="<%=param.toString()%>"/>
</div>
<br>
<br>
<!--<div align="center">
<a href="#" onClick="_downloadCover()">下载报表封页</a>
</div> -->
<%
}
%>
</body>
</html>
<script>
function _saveAsExcel()
{
var file = "<%=file%>";
var url = "<%=request.getContextPath()%>/servlet/ExportScript2ExcelServlet?file="
+ file
+ "¶m=<%=param.toString()%>"
+ "&saveAsFileName=<%=title%>";
window.location = url;
}
function _downloadCover()
{
var url = "<%=request.getContextPath()%>/servlet/ExportScript2ExcelServlet?file=cover.raq&saveAsFileName=报表封页&deptName=<%=unitname%>";
window.location = url
}
</script>
<style type="text/css">
<!--
.style4 {font-size: 18px}
.tag1 { background-color:#6699CC;
width:93px; position:absolute;
left:10px;
top: 87px;
font-weight:300;
height:27px;
border-bottom-color:#FFFFFF;
font-size:13px;
text-align:center;
cursor:hand;
}
.tag2 { background-color:#EEF4FF;
width:115px; position:absolute;
left:103px;
top: 87px;
font-weight:300;
height:27px;
border-bottom-color:#FFFFFF;
font-size:13px;
text-align:center;
cursor:hand;
}
.tag3 { background-color:#EEF4FF;
width:116px; position:absolute;
left:10px;
top: 90px;
font-weight:300;
height:24px;
border-bottom-color:#FFFFFF;
font-size:13px;
text-align:center;
cursor:hand;
border-color:#6699CC;
border:1
}
.tag4 { background-color:#EEF4FF;
width:122px; position:absolute;
left:126px;
top: 90px;
font-weight:300;
height:24px;
border-bottom-color:#FFFFFF;
font-size:13px;
text-align:center;
cursor:hand;
border-color:#6699CC;
border:1
}
.style5 {background-color: #6699CC; width: 90px; position: absolute; left: 19px; top: 99px; font-weight: 300; height: 18px; border-bottom-color: #FFFFFF; font-size: 14px; text-align: center; cursor: hand; }
.style6 {background-color: #EEF4FF; width: 120px; position: absolute; left: 109px; top: 99px; font-weight: 300; height: 18px; border-bottom-color: #FFFFFF; font-size: 14px; text-align: center; cursor: hand; }
.style12 {font-size: 12pt}
-->
</style>
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/stylesheet1.css">
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/style.css">
<script>
function show()
{
alert("aa");
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -