?? report_manager.jsp
字號:
<%@ page contentType="text/html;charset=gb2312" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ page import="com.icss.cnpc.util.CommUtil" %>
<%@ page import="com.icss.cnpc.util.Config" %>
<%
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
%>
<%
System.out.println("[jsp]report_manager.jsp");
HashMap cMap = null;
String personType = null;
cMap = (HashMap)request.getAttribute("categoryMap");
personType = request.getParameter("personType");
String queryType = (String)request.getAttribute("queryType");
String queryCategory = (String)request.getAttribute("queryCategory");
%>
<HTML><HEAD><TITLE>數(shù)據(jù)合并</TITLE>
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/style.css">
<style type="text/css">
<!--
.style1 {font-size: 16px}
.style2 {
font-size: 12px;
font-weight: bold;
}
-->
</style>
</HEAD>
<SCRIPT language=JavaScript src="<%=request.getContextPath()%>/common/common.js"></SCRIPT>
<SCRIPT language=JavaScript src="<%=request.getContextPath()%>/common/project.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" src="<%=request.getContextPath()%>/common/calendar.js"></SCRIPT>
<script type="text/javascript" src="<%=request.getContextPath()%>/common/codeDict.js"></script>
<script>
var stack = new Array();
</script>
<BODY text=#000000 leftMargin=0 background=<%=request.getContextPath()%>/images/grid.gif topMargin=10>
<form name="form1" method="post" action="<%=request.getContextPath()%>/servlet/ShowReportManageListServlet">
<input type="hidden" name="selectPuuid">
<input type="hidden" name="selectType">
<input type="hidden" name="checkRuuid">
<input type="hidden" name="loginType" value="<%=personType%>">
<!--獲得當(dāng)前登錄人的帳號類型,1:集團(tuán)審計(jì)部子系統(tǒng)管理員,2:集團(tuán)公司審計(jì)部人員,3:股份公司審計(jì)部子系統(tǒng)管理員,0:錯(cuò)誤-->
<%
if("2".equals(personType) || "3".equals(personType)){
%>
<table width=92% border="0" cellspacing="1" cellpadding="4" bgcolor="#426199" align=center>
<tr bgcolor="#a6d0f2">
<td colspan="6" height=25 align="center">
<div align="center"><%if("2".equals(personType)){%><font size="2" color="#FF0000" size="4">集團(tuán)總公司報(bào)表 </font><%}%>查詢條件</font></div>
</td>
</tr>
<tr bgcolor="#a6d0f2">
<td width="10%" bgcolor="#a6d0f2" align="right">報(bào)表名稱:</td>
<td width="20%" bgcolor="#a6d0f2" >
<div align="left">
<input name="reportname" type="text" size="18" value='<c:out value="${param.reportname}"/>' style="background:white" class="inp1">
</div>
</td>
<td height="10%" width="79" align="left"><div align="right">上傳人員:</div></td>
<td width="20%" height="20" bgcolor="#a6d0f2"><div align="left">
<input name="personname" type="text" size="18" value='<c:out value="${param.personname}"/>' style="background:white" class="inp1">
</div>
</td>
<td width="10%" bgcolor="#a6d0f2" ><div align="right">報(bào)表類別:</div></td>
<td width="30%" bgcolor="#a6d0f2">
<div align="left">
<select name = "reportCategory">
<option value = ""></option>
<%
String categoryCode = "";
String categoryValue = "";
for(int i=1;i<12;i++)
{
categoryCode=Integer.toHexString(i);
%>
<option value = "<%=categoryCode%>" <%if(categoryCode.equals(queryCategory)){%>selected<%}%>><%=cMap.get(categoryCode)%></option>
<%
}
%>
</select>
<%
if("2".equals(personType)){
%>
<a href="#" onClick="modelDownload()">報(bào)表合并模版下載</a>
<%}%>
</div>
</td>
</tr>
<tr bgcolor="#a6d0f2">
<td height="20" align="left"><div align="right">上傳時(shí)間 從:</div></td>
<td bgcolor="#a6d0f2">
<input name="begintime" type="text" value='<c:out value="${param.begintime}"/>' size="18" readonly style="background:white" class="inp1">
<img src="<%=request.getContextPath()%>/images/calendar.gif" style="cursor:hand;" width="18" height="18" border=0 align="absmiddle" alt="彈出日歷下拉菜單" onClick="popUpCalendarDlg(begintime)"></td>
<td bgcolor="#a6d0f2" width="82" align="right">至:</td>
<td height="20" bgcolor="#a6d0f2"><div align="left">
<input name="endtime" type="text" value='<c:out value="${param.endtime}"/>' size="18" readonly style="background:white" class="inp1">
<img src="<%=request.getContextPath()%>/images/calendar.gif" style="cursor:hand;" width="18" height="18" border=0 align="absmiddle" alt="彈出日歷下拉菜單" onClick="popUpCalendarDlg(endtime)">
</div>
</td>
<%
if("2".equals(personType)){
%>
<td bgcolor="#a6d0f2" ><div align="right">報(bào)表類型:</div></td>
<td>
<div align="left">
<select name = "reportType">
<option value = "5" <%if("5".equals(queryType)){%>selected<%}%>>全部</option>
<option value = "2" <%if("2".equals(queryType)){%>selected<%}%>>股份公司審計(jì)部報(bào)表</option>
<option value = "3" <%if("3".equals(queryType)){%>selected<%}%>>集團(tuán)總公司報(bào)表</option>
</select>
</div>
</td>
<%}else{%>
<td width="90" bgcolor="#a6d0f2" colspan="2"></td>
<%}%>
</tr>
</table>
</tbody>
</table>
<br>
<div align="center">
<img src="<%=request.getContextPath()%>/images/search.gif" style="cursor:hand;" border=0 align="absmiddle" onclick="query()"> <!-- 查詢 -->
<img src="<%=request.getContextPath()%>/images/chzh.gif" style="cursor:hand;" border=0 align="absmiddle" onclick="_reset()"> <!-- 重置 -->
</div>
<br>
<%}%>
</form>
<form name="form2" method="post" action="<%=request.getContextPath()%>/servlet/ShowReportManageListServlet" enctype="multipart/form-data">
<%
if("1".equals(personType)){
%>
<br>
<%}%>
<table width=92% border="0" cellspacing="1" cellpadding="4" bgcolor="#426199" align=center>
<tr bgcolor="#a6d0f2">
<td align="center" width="3%"></td>
<td align="center" width="5%">序號</td>
<%
if("1".equals(personType)){
%>
<td align="center" width="27%">模版名稱</td>
<%}else{%>
<td align="center" width="27%">報(bào)表名稱</td>
<%}%>
<td align="center" width="15%">上傳人員</td>
<td align="center" width="15%">上傳時(shí)間</td>
<%
if("1".equals(personType)){
%>
<td align="center" width="15%">模版類型</td>
<%}else{%>
<td align="center" width="20%">報(bào)表類型</td>
<%}%>
<%
if("1".equals(personType)){
%>
<td align="center" width="20%">模版類別</td>
<%}else{%>
<td align="center" width="20%">報(bào)表類別</td>
<%}%>
</tr>
<c:forEach var="report" items="${reportList}" varStatus="status">
<tr bgcolor="#EEF4FF">
<td><input type="radio" name="radiobutton" value="radiobutton" onClick="RadioSelected('<c:out value="${report.ruuid}"/>','<c:out value="${report.puuid}"/>','<c:out value="${report.type}"/>','<c:out value="${report.rname}"/>','<c:out value="${report.memo}"/>','<c:out value="${report.category}"/>')"></td>
<td bgcolor="#EEF4FF"><div align="center"><c:out value="${status.count}"/></div></td>
<td bgcolor="#EEF4FF"><div align="center">
<a href="#" onClick="reportDownload('<c:out value="${report.ruuid}"/>')"><c:out value="${report.rname}"/></a></div>
</td>
<td bgcolor="#EEF4FF"><div align="center">
<c:out value="${report.pname}"/></div>
</td>
<td bgcolor="#EEF4FF"><div align="center">
<fmt:formatDate value="${report.uptime}" pattern="yyyy-MM-dd HH:mm:ss" timeStyle="long" dateStyle="long"/></div>
</td>
<td bgcolor="#EEF4FF"><div align="center">
<c:if test="${report.type == '1'}">
集團(tuán)公司審計(jì)部報(bào)表
</c:if>
<c:if test="${report.type == '2'}">
股份公司審計(jì)部報(bào)表
</c:if>
<c:if test="${report.type == '3'}">
集團(tuán)總公司報(bào)表
</c:if>
<c:if test="${report.type == '4'}">
合并報(bào)表模版
</c:if>
</td>
<%if("1".equals(personType)){%>
<td bgcolor="#EEF4FF" id='rType<c:out value="${report.category}"/>'>
<script>
stack[<c:out value="${status.count-1}"/>] = '<c:out value="${report.category}"/>';
</script>
<%}else{%>
<td width="3%" bgcolor="#EEF4FF">
<%}%>
<div align="center">
<input type="hidden" name="cCode" value='<c:out value="${report.category}"/>'>
<%
Map rcMap = (HashMap)Config.reportCategory;
%>
<c:choose>
<c:when test="${report.category == '1'}">
<%=rcMap.get("1")%>
</c:when>
<c:when test="${report.category == '2'}">
<%=rcMap.get("2")%>
</c:when>
<c:when test="${report.category == '3'}">
<%=rcMap.get("3")%>
</c:when>
<c:when test="${report.category == '4'}">
<%=rcMap.get("4")%>
</c:when>
<c:when test="${report.category == '5'}">
<%=rcMap.get("5")%>
</c:when>
<c:when test="${report.category == '6'}">
<%=rcMap.get("6")%>
</c:when>
<c:when test="${report.category == '7'}">
<%=rcMap.get("7")%>
</c:when>
<c:when test="${report.category == '8'}">
<%=rcMap.get("8")%>
</c:when>
<c:when test="${report.category == '9'}">
<%=rcMap.get("9")%>
</c:when>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -