project_viewinfo2_3.jsp

来自「java jsp教程」· JSP 代码 · 共 215 行

JSP
215
字号
<%
    response.setHeader("Pragma", "No-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", 0);
%>
<%@ page contentType="text/html;charset=GBK" %>
<%@ page import="com.icss.cnpc.project.vo.ScriptInfo" %>
<%@ page import="com.icss.cnpc.util.Config" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<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">
<title>项目资料卡--实施阶段</title>
<style type="text/css">
<!--
.style4 {font-size: 18px}
.style5 {background-color: #6699CC; width: 130px; position: absolute; left: 36px; top: 31px; font-weight: 300; height: 18px; border-bottom-color: #FFFFFF; font-size: 14px; text-align: center; cursor: hand; }
.style6 {background-color: #EEF4FF; width: 126px; position: absolute; left: 619px; top: 31px; font-weight: 300; height: 18px; border-bottom-color: #FFFFFF; font-size: 14px; text-align: center; cursor: hand; }
.style13 {background-color: #EEF4FF; width: 130px; position: absolute; left: 165px; top: 31px; font-weight: 300; height: 18px; border-bottom-color: #FFFFFF; font-size: 14px; text-align: center; cursor: hand; }
.style14 {background-color: #EEF4FF; width: 130px; position: absolute; left: 289px; top: 31px; font-weight: 300; height: 18px; border-bottom-color: #FFFFFF; font-size: 14px; text-align: center; cursor: hand; }
.style15 {background-color: #EEF4FF; width: 130px; position: absolute; left: 406px; top: 31px; font-weight: 300; height: 18px; border-bottom-color: #FFFFFF; font-size: 14px; text-align: center; cursor: hand; }
.style16 {background-color: #EEF4FF; width: 120px; position: absolute; left: 516px; top: 31px; font-weight: 300; height: 18px; border-bottom-color: #FFFFFF; font-size: 14px; text-align: center; cursor: hand; }
.style12 {font-size: 12pt}
-->
</style>
<script>
function _view(id)
{
	var projNo = '<c:out value="${projNo}"/>';
	window.location = "<%=request.getContextPath()%>/servlet/ShowProjectViewInfoServlet?projNo=" + projNo + "&phaseno=" + id;
}
</script>	
</head>
<script language="javascript">
function selectUnit1()
{
	wx=500;
	wy=400;
	urlstr="unitframe1.html";
	x=(window.screen.width-wx)/2;
	y=(window.screen.height-wy)/2;
	wposition=",left="+x+",top="+y;
	window.open(urlstr,"选择单位","width="+wx+",height="+wy+",scrollbars=yes,status=no"+wposition);
}

</script>
<body background=<%=request.getContextPath()%>/images/grid.gif bgColor=#eef4ff>

<TABLE cellSpacing=0 cellPadding=0 width="98%" align=center border=0>
	  <tr>
	  <td>
	  	<div class="style5"  onclick="_view(1)" style="background-color: #EEF4FF">项目基础信息</div>
	  	<div class="style13" onclick="_view(2)" style="background-color: #EEF4FF">项目准备阶段</div>
	  	<div class="style14" style="background-color: #a6d0f2">项目实施阶段</div>	  	
	  	<div class="style15" onclick="_view(4)" >审计报告阶段</div>	  	
	  	<div class="style16" onclick="_view(5)">审计处理阶段</div>
		<div class="style6"  onclick="_view(6)">审计整改阶段</div>
	  	<p> </p>
	  	<table width="95%" border="0" cellspacing="1" cellpadding="2" align="center" valign="top" bordercolordark="#DFDFFF" bordercolorlight="#003366" bgcolor="#b3c4db">
	<%
		String projType = (String)request.getAttribute("projType");
		projType = (projType == null)?"":projType;
		if(projType.startsWith("xmlb002") || projType.startsWith("xmlb003") )
		{
	%>   
          <tr  bgcolor="#a6d0f2">
            <td height="29" colspan="8" ><div align="center" class="style4">审 计 底 稿 列 表</div></td>
          </tr>

	      <tr bgcolor="#EEF4FF">
            <td width="73" height="27" ><div align="center">序号</div></td>
            <td width="250"><div align="center">审计事项</div></td>
            <td width="92"><div align="center">审增额</div></td>
            <td width="104"><div align="center">审减额</div></td>
						<td width="137"><div align="center">净审减额</div></td>
						<td width="107"><div align="center">问题金额</div></td>
						<td width="107"><div align="center">底稿状态</div></td>
						<td width="107"><div align="center">提交人</div></td>            
          </tr>
	<c:forEach var="script" items="${scriptList}" varStatus="idx">          
          <tr bgcolor="#EEF4FF">
            <td width="73" height="27">
            	<div align="center"><c:out value="${idx.count}"/></div></td>
            <td width="250"><div align="center">
         		<a href="#" 
         			onClick="_viewinfo('<c:out value="${script.scriptno}"/>')"><c:out value="${script.scriptname}"/></a></div></td>
            <td width="92">
            	<div align="center">
            		<fmt:formatNumber pattern=".00"><c:out value="${script.increasesum}"/></fmt:formatNumber></div></td>		
            <td width="92">
            	<div align="center">
            		<fmt:formatNumber pattern=".00"><c:out value="${script.dncreasesum}"/></fmt:formatNumber></div></td>
            <td width="92">
            	<div align="center">
            		<fmt:formatNumber pattern=".00"><c:out value="${script.netdecisionsum}"/></fmt:formatNumber></div></td>            		
            <td width="92">
            	<div align="center">
            		<fmt:formatNumber pattern=".00"><c:out value="${script.problemsum}"/></fmt:formatNumber></div></td>			
            <td width="104" align="center">
            <%
            	ScriptInfo sInfo = (ScriptInfo)pageContext.getAttribute("script");
            	String approvestate = sInfo.getApprovestate();
            	if(approvestate == null || approvestate.trim().length() == 0)
            		out.print("未知");
            	int state = Integer.parseInt(approvestate);
            	switch(state)
            	{
            		case 0:out.print(Config.SCRIPT_STATE_MSG_UNCHECK);break;
            		case 1:out.print(Config.SCRIPT_STATE_MSG_LEADER_PASS);break;
            		case 2:out.print(Config.SCRIPT_STATE_MSG_LEADER_REJECT);break;
            		case 3:out.print(Config.SCRIPT_STATE_MSG_COGNIZANCE_PASS);break;
            		case 4:out.print(Config.SCRIPT_STATE_MSG_COGNIZANCE_REJECT);break;
            		case 5:out.print(Config.SCRIPT_STATE_MSG_INNER_DELETE);break;
            		case 6:out.print(Config.SCRIPT_STATE_MSG_TEMP);break;
            	}	
            %>
            </td>		
            <td width="104"><p align="center"><c:out value="${script.creatorname}"/></p></td>
          </tr>
	</c:forEach> 
	<%
		}
		else
		{
	%>       
          <tr  bgcolor="#a6d0f2">
		    <td height="29" colspan="10" ><div align="center" class="style4">审 计 底 稿 列 表</div></td>
          </tr>
		
         <tr bgcolor="#EEF4FF">
            <td width="73" height="27" ><div align="center">序号</div></td>
            <td width="200"><div align="center">审计事项</div></td>
            <td width="92"><div align="center">问题金额</div></td>
            <td width="104"><div align="center">问题类型</div></td>
            <td width="104"><div align="center">纠正金额</div></td>
            <td width="104"><div align="center">处理方式</div></td>
            <td width="104"><div align="center">成果金额</div></td>
            <td width="104"><div align="center">成果类别</div></td>
            <td width="100"><div align="center">提交人</div></td>
						<td width="107"><div align="center">底稿状态</div></td>            
          </tr>
          <c:forEach var="script" items="${scriptList}" varStatus="idx">          
          <tr bgcolor="#EEF4FF">
            <td width="73" height="27">
            	<div align="center"><c:out value="${idx.count}"/></div></td>
            <td width="200"><div align="center">
         		<a href="#" 
         			onClick="_viewinfo('<c:out value="${script.scriptno}"/>')"><c:out value="${script.scriptname}"/></a></div></td>
            <td width="92">
            	<div align="center">
            		<fmt:formatNumber pattern=".00"><c:out value="${script.problemsum}"/></fmt:formatNumber></div></td>
            <td width="104">
            	<p align="center"><c:out value="${script.problemtypename}"/></p></td>
            	<td width="92">
            	<div align="center">
            		<fmt:formatNumber pattern=".00"><c:out value="${script.processsum}"/></fmt:formatNumber></div></td>
            <td width="104">
            	<p align="center"><c:out value="${script.processtypename}"/></p></td>
            <td width="92">
            	<div align="center">
            		<fmt:formatNumber pattern=".00"><c:out value="${script.fruitsum}"/></fmt:formatNumber></div></td>
            <td width="104">
            	<p align="center"><c:out value="${script.fruittypename}"/></p></td>	
            <td width="100"><div align="center"><c:out value="${script.creatorname}"/></div></td>	
						<td width="104" align="center">
            <%
            	ScriptInfo sInfo = (ScriptInfo)pageContext.getAttribute("script");
            	String approvestate = sInfo.getApprovestate();
            	if(approvestate == null || approvestate.trim().length() == 0)
            		out.print("未知");
            	int state = Integer.parseInt(approvestate);
            	switch(state)
            	{
            		case 0:out.print(Config.SCRIPT_STATE_MSG_UNCHECK);break;
            		case 1:out.print(Config.SCRIPT_STATE_MSG_LEADER_PASS);break;
            		case 2:out.print(Config.SCRIPT_STATE_MSG_LEADER_REJECT);break;
            		case 3:out.print(Config.SCRIPT_STATE_MSG_COGNIZANCE_PASS);break;
            		case 4:out.print(Config.SCRIPT_STATE_MSG_COGNIZANCE_REJECT);break;
            		case 5:out.print(Config.SCRIPT_STATE_MSG_INNER_DELETE);break;
            		case 6:out.print(Config.SCRIPT_STATE_MSG_TEMP);break;
            	}	
            %>
            </td>			
            
          </tr>
	</c:forEach> 
     <%
     	}
     %>     
        </table>
       </td>
	  </tr>
</TABLE>
<br>
<div align="center"><%@ include file="/include/defaultPageScrollBar.jsp" %></div></br>
<br>
<p align="center"><img src="<%=request.getContextPath()%>/images/close.gif" style="cursor:hand;" align="absmiddle" alt="关闭" onClick="window.close()"></p>
</body>
</html>
<script>
	function _viewinfo(no)
	{
		var projNo = '<c:out value="${projNo}"/>';
		wx=500;
		wy=400;
		x=(window.screen.width-wx)/2;
		y=(window.screen.height-wy)/2;
		wposition=",left="+x+",top="+y;
		window.open("<%=request.getContextPath()%>/servlet/ShowScriptInfoServlet?projNo=" + projNo 
		+ "&scriptNo=" + no + "&isView=true","_blank","width="+wx+",height="+wy+",menu=0,scrollbars=1"+wposition);
	}
</script>	

⌨️ 快捷键说明

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