⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 report_1_1.jsp

📁 java jsp教程
💻 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);    
%>
<%
	String projectyear;
	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">
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/stylesheet1.css">
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/style.css">
<%@ include file="report_1_MyFunc.jsp"%>
<title>取得经济成果合计</title>
<style type="text/css">
<!--
.style4 {font-size: 18px}
.tag1 {	background-color:#EEF4FF; 
	width:93px; position:absolute; 
	left:10px; 
	top: 83px;
	
	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: 83px;
	
	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: 85px;
	
	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: 85px;
	
	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: #EEF4FF; 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>
</head>
<script language="javascript">
function _query()
{
	document.form1.submit();
}
function _changeModule2()
{
	var sForm = document.form1;
	if(sForm.unitcode.value == "")
	{
			alert("请选择审计单位!");
			return;
	}
	sForm.toJsp.value = "/jsp/report/report_1_1.jsp";
	sForm.token.value = "true";	
	sForm.submit();	
}
function _changeModule()
{
	var sForm = document.form1;
	sForm.token.value = "true";	
	sForm.toJsp.value = "/jsp/report/report_1.jsp";
	sForm.submit();	
}

</script>
<%
	String entry = request.getParameter("entry");
	String file = null;
	String title = "";
	if("1".equals(entry))
	{
		file = "fruitreport.raq";
		title = "取得经济成果";
	}
	else if("3".equals(entry))
	{
		file = "orgpersonreport.raq";
		title = "审计机构及人员情况";
	}
	StringBuffer param = new StringBuffer();
	projectyear = (String)request.getAttribute("projectyear");
	String beginDate = (String)request.getAttribute("beginDate");
	String endDate = (String)request.getAttribute("endDate");
	if(projectyear != null)
		param.append("projectyear=").append(projectyear).append(";");
	if(unitcode != null)
		param.append("orgCode=").append(unitcode).append(";");
	if(beginDate != null)
		param.append("beginDate=").append(beginDate).append(";");
	if(endDate != null)
		param.append("endDate=").append(endDate).append(";");	
%> 
<body background=<%=request.getContextPath()%>/images/grid.gif bgColor=#eef4ff>
<form name="form1" action="<%=request.getContextPath()%>/servlet/AuditWorkCircsReportServlet">
<input type="hidden" name="entry" value='<c:out value="${param.entry}"/>'>
<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="token" value='<c:out value="${param.token}"/>'>
<input type="hidden" name="toJsp">	
<%@ include file="queryhead.jsp" %>
<% 
		if(request.getParameter("token") != null) 
		{
%>	
<c:choose>
	<c:when test="${param.entry == '1'}">
	  	<div class="tag1" onclick="_changeModule()" >审计工作情况</div>
	  	<div class="tag2" style="background-color: #a6d0f2">取得经济成果合计</div>
	</c:when>	
	<c:when test="${param.entry == '3'}">
		<div class="tag3" onclick="_changeModule()" >审计项目完成情况</div>
	  	<div class="tag4" style="background-color: #a6d0f2">审计机构及人员情况</div>
	</c:when>
</c:choose>		  	
           	
<div align="left" width="100%" >         	
<report:html name="myreport1" reportFileName="<%=file%>"
	needPageMark="no" width="-1" height="-1"
	params="<%=param.toString()%>"/>            	
</div>
      		</td>
          </tr>
        </table>	  	
	  	<p> </p></td>
	  </tr>
</TABLE>
<br>
<%
		}
%>		
</form>
</body>
</html>
<script>
	function _saveAsExcel()
	{
		var file = "<%=file%>";
		var url = "<%=request.getContextPath()%>/servlet/ExportScript2ExcelServlet?file=" 
				+ file
				+ "&param=<%=param.toString()%>"
				+ "&saveAsFileName=<%=title%>";
								
		window.location = url;
	}
</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -