📄 modify_card2.jsp
字号:
<%@ page contentType="text/html;charset=GBK" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ page import="java.util.List" %>
<%@ page import="com.icss.cnpc.util.Config" %>
<%@ page import="com.icss.cnpc.project.vo.ScriptInfo" %>
<%
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
%>
<%
List scriptList = (List)request.getAttribute("scriptList");
boolean canEdit = false;
String sCanEdit = null;
if( ( sCanEdit = request.getParameter("canEdit") ) != null)
{
canEdit = Boolean.valueOf(sCanEdit).booleanValue();
}
%>
<html>
<head>
<title>资料卡底稿列表</title>
<meta http-equiv="Content-Type" content="text/html;charset=GBK">
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/style.css">
<script language="JavaScript" src="<%=request.getContextPath()%>/common/common.js"></script>
<script language="JavaScript" src="<%=request.getContextPath()%>/common/project.js"></script>
<style type="text/css">
<!--
body {
background-image: url(<%=request.getContextPath()%>/images/grid.gif);
}
.inp1 {
BORDER-RIGHT: #999999 1px solid; BORDER-TOP: #999999 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #999999 1px solid; COLOR: #000000; PADDING-TOP: 2px; BORDER-BOTTOM: #999999 1px solid; HEIGHT: 15px; BACKGROUND-COLOR: #ffffff;FONT-SIZE: 9pt
}
.tag1 {
background-color:#6699CC;
width:73px; position:absolute;
left:48px;
top: 14px;
font-weight:300;
height:15px;
border-bottom-color:#FFFFFF;
font-size:13px;
text-align:center;
cursor:hand;
}
.tag2 {
background-color:#EEF4FF;
width:73px; position:absolute;
left:119px;
top: 14px;
font-weight:300;
height:15px;
border-bottom-color:#FFFFFF;
font-size:13px;
text-align:center;
cursor:hand;
}
.tag3 {
background-color:#EEF4FF;
width:73px; position:absolute;
left:191px;
top: 14px;
font-weight:300;
height:15px;
border-bottom-color:#FFFFFF;
font-size:13px;
text-align:center;
cursor:hand;
border-color:#6699CC;
border:1
}
.style2 {font-size: 16px}
.style3 {font-size: 18px}
-->
</style>
<script>
function _viewCardInfo(){
var projNo = '<c:out value="${projNo}"/>';
var projType = '<c:out value="${param.projType}"/>';
window.location = "/cnpc/servlet/ShowCardBasicInfoServlet?projNo=" + projNo +
"&toJsp=/jsp/card/modify_card1.jsp&canEdit=<%=canEdit%>&projType=" + projType;
}
function _viewRecruit(){
var pno = '<c:out value="${projNo}"/>';
var projType = '<c:out value="${param.projType}"/>';
window.location = "<%=request.getContextPath()%>/servlet/ShowCardSupplementServlet?projNo=" + pno +
"&toJsp=/jsp/card/modify_card3.jsp&canEdit=<%=canEdit%>&projType=" + projType;
}
function _viewInfo(sno){
document.all.scriptView.style.display = '';
//alert("[check]canEdit in modify_card2.jsp---->"+<%=canEdit%>);
document.all.scriptView.src = "/cnpc/servlet/ShowScriptInfoServlet?&scriptNo=" + sno
+ "&toJsp=/jsp/project/project_card_srinfo.jsp?canEdit=<%=canEdit%>";
}
</script>
</head>
<body background=<%=request.getContextPath()%>/images/grid.gif>
<div class="tag1" style="background-color:#EEF4FF" onclick="_viewCardInfo()">基本信息</div>
<div class="tag3" onclick="_viewRecruit()">补充资料</div>
<div style="background-color: #a6d0f2" class="tag2">审计底稿</div>
<form name="form1">
<%
if(scriptList != null && scriptList.size() > 0 )
{
%>
<table width="90%" border="0" cellspacing="1" cellpadding="2" align="center" bordercolordark="#DFDFFF" bordercolorlight="#003366" bgcolor="#b3c4db">
<%
String projType = request.getParameter("projType");
projType = (projType == null)?"":projType;
if(projType.startsWith("xmlb002") || projType.startsWith("xmlb003") )
{
int cols = 11;
if(!canEdit) cols = 10;
%>
<tr bgcolor="#a6d0f2"><td colspan="<%=cols%>" align="center" class="style3">底 稿 列 表 </td></tr>
<tr onMouseOver="this.bgColor='#EBEBEB';" onMouseOut="this.bgColor='#EEF4FF';" bgcolor=#eef4ff>
<td></td>
<td width="73" height="27" align="center">序号</div></td>
<td width="235" bgcolor="#EEF4FF"><div align="center">审计事项</div></td>
<td width="79" bgcolor="#EEF4FF"><div align="center">审增额</div></td>
<td width="79" bgcolor="#EEF4FF"><div align="center">审减额</div></td>
<td width="79" bgcolor="#EEF4FF"><div align="center">净审减额</div></td>
<td width="79" bgcolor="#EEF4FF"><div align="center">问题金额</div></td>
<td width="79" bgcolor="#EEF4FF"><div align="center">纠正金额</div></td>
<td width="79" bgcolor="#EEF4FF"><div align="center">成果金额</div></td>
<td width="139" bgcolor="#EEF4FF"><div align="center">提交人</div></td>
<%
if(canEdit)
{
%>
<td width="100"><div align="center">状态/操作</div></td>
<%
}
%>
</tr>
<c:forEach var="script" items="${scriptList}" varStatus="index">
<%
ScriptInfo sInfo = (ScriptInfo)pageContext.getAttribute("script");
%>
<tr onMouseOver="this.bgColor='#EBEBEB';" onMouseOut="this.bgColor='#EEF4FF';" bgcolor="#EEF4FF">
<td width="34" bgcolor="#EEF4FF" align="center">
<input type="radio" name="radio" value='<c:out value="${script.scriptno}"/>'
onclick="_viewInfo(this.value)">
</td>
<td width="46" bgcolor="#EEF4FF" align="center"><c:out value="${index.count}"/></td>
<td width="250"><div align="center">
<a href="#" onclick="_viewScript('<c:out value="${script.scriptno}"/>')">
<c:out value="${script.scriptname}"/>
</a></div></td>
<td width="92">
<div align="right">
<fmt:formatNumber pattern=".00"><c:out value="${script.increasesum}"/></fmt:formatNumber></div></td>
<td width="92">
<div align="right">
<fmt:formatNumber pattern="00"><c:out value="${script.dncreasesum}"/></fmt:formatNumber></div></td>
<td width="92">
<div align="right">
<fmt:formatNumber pattern="0.00"><c:out value="${script.netdecisionsum}"/></fmt:formatNumber></div></td>
<td width="92">
<div align="right">
<fmt:formatNumber pattern=".00"><c:out value="${script.problemsum}"/></fmt:formatNumber></div></td>
<td width="92">
<div align="right">
<fmt:formatNumber pattern=".00"><c:out value="${script.processsum}"/></fmt:formatNumber></div></td>
<td width="92">
<div align="right">
<fmt:formatNumber pattern=".00"><c:out value="${script.fruitsum}"/></fmt:formatNumber></div></td>
<td width="92">
<div align="center"><c:out value="${script.creatorname}"/></div></td>
<%
if(canEdit)
{
if( !Config.SCRIPT_INNER_DELETE.equals(sInfo.getApprovestate()) )
{
%>
<td width="104" height="27" bgcolor="#EEF4FF" align="center">
<button onclick="innerDel('<c:out value="${script.scriptno}"/>')">不上资料卡</button>
<%
}
else
{
%>
<td width="104" height="27" bgcolor="#EEF4FF" align="center">
<button onclick="cancelDel('<c:out value="${script.scriptno}"/>',this)">删除恢复</button>
<!--
<span onclick="cancelDel('<c:out value="${script.scriptno}"/>')"
style="cursor:hand;color:blue">删除恢复</span>
-->
</td>
<%
}
}
%>
</tr>
</c:forEach>
<%
}
else
{
int cols = 11;
if(!canEdit) cols = 10;
%>
<tr bgcolor="#a6d0f2"><td colspan="<%=cols%>" align="center" class="style3">底 稿 列 表 </td></tr>
<tr onMouseOver="this.bgColor='#EBEBEB';" onMouseOut="this.bgColor='#EEF4FF';" bgcolor=#eef4ff>
<td width="20"></td>
<td width="73" height="27" ><div align="center">序号</div></td>
<td width="165" bgcolor="#EEF4FF"><div align="center">审计事项</div></td>
<td width="168" bgcolor="#EEF4FF"><div align="center">问题金额</div></td>
<td width="139" bgcolor="#EEF4FF"><div align="center">问题类别</div></td>
<td width="168" bgcolor="#EEF4FF"><div align="center">纠正金额</div></td>
<td width="164" bgcolor="#EEF4FF"><div align="center">处理方式</div></td>
<td width="168" bgcolor="#EEF4FF"><div align="center">成果金额</div></td>
<td width="239" bgcolor="#EEF4FF"><div align="center">成果类别</div></td>
<td width="104" height="27" bgcolor="#EEF4FF"><p align="center">提交人</p></td>
<%
if(canEdit)
{
%>
<td width="164"><div align="center">状态/操作</div></td>
<%
}
%>
</tr>
<c:forEach var="script" items="${scriptList}" varStatus="index">
<%
ScriptInfo sInfo = (ScriptInfo)pageContext.getAttribute("script");
%>
<tr onMouseOver="this.bgColor='#EBEBEB';" onMouseOut="this.bgColor='#EEF4FF';" bgcolor="#EEF4FF">
<td width="34" bgcolor="#EEF4FF" align="center">
<input type="radio" name="radio" value='<c:out value="${script.scriptno}"/>'
onclick="_viewInfo(this.value)">
</td>
<td width="46" bgcolor="#EEF4FF" align="center"><c:out value="${index.count}"/></td>
<td width="165" bgcolor="#EEF4FF" align="center">
<a href="#" onclick="_viewScript('<c:out value="${script.scriptno}"/>')"><c:out value="${script.scriptname}"/></a></td>
<td width="100" bgcolor="#EEF4FF" align="center"><c:out value="${script.problemsum}"/></td>
<td width="165" bgcolor="#EEF4FF" align="center"><c:out value="${script.problemtypename}"/></td>
<td width="100" bgcolor="#EEF4FF" align="center"><c:out value="${script.processsum}"/></td>
<td width="165" bgcolor="#EEF4FF" align="center"><c:out value="${script.processtypename}"/></td>
<td width="100" bgcolor="#EEF4FF" align="center"><c:out value="${script.fruitsum}"/></td>
<td width="165" bgcolor="#EEF4FF" align="center"><c:out value="${script.fruittypename}"/></td>
<td width="105" bgcolor="#EEF4FF" align="center"><c:out value="${script.creatorname}"/></td>
<%
if(canEdit)
{
if( !Config.SCRIPT_INNER_DELETE.equals(sInfo.getApprovestate()) )
{
%>
<td width="164" height="27" bgcolor="#EEF4FF" align="center">
<button onclick="innerDel('<c:out value="${script.scriptno}"/>')" >不上资料卡</button>
<%
}
else
{
%>
<td width="164" height="27" bgcolor="#EEF4FF" align="center">
<button onclick="cancelDel('<c:out value="${script.scriptno}"/>')" >删除恢复</button>
</td>
<%
}
}
%>
</tr>
</c:forEach>
<%
}
%>
<br>
<table width="90%" border="0" cellspacing="1" cellpadding="2" align="center">
<tr>
<td width="100%" colspan="7" align="center"><br>
<p align="center"><%@ include file="/include/defaultPageScrollBar.jsp" %></p>
</td></tr>
</table>
<table width="90%" border="0" cellspacing="1" cellpadding="2" align="center">
<tr><td width="100%" colspan="7" align="center">
<iframe name="scriptView" width="100%" height="280" style="display:none"
frameborder=0 src="<%=request.getContextPath()%>/jsp/project/project_card_srinfo.jsp"></iframe>
</td></tr>
</table>
<%
}
else out.print("<br><br><p align='center'>暂无审计底稿</p>");
%>
</form>
<div align="center">
<%
if(canEdit)
{
%>
<img src="<%=request.getContextPath()%>/images/return.gif" style="cursor:hand" onclick="_return()">
<%
}
else
{
%>
<img src="<%=request.getContextPath()%>/images/close.gif" style="cursor:hand" onclick="window.close();">
<%
}
%>
</div>
<script>
function _return()
{
window.location = "<%=request.getContextPath()%>/servlet/ShowCardManageListServlet";
}
function viewwarrant()
{
wx=500;
wy=400;
urlstr="../card/card_manager_modify_warrant.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);
}
function formReset() {
document.form1.reset();
}
function _viewScript(no)
{
wx=500;
wy=400;
x=(window.screen.width-wx)/2;
y=(window.screen.height-wy)/2;
wposition=",left="+x+",top="+y;
window.open("/cnpc/servlet/ShowScriptInfoServlet?scriptNo=" + no + "&isView=true","_blank","width=" + wx
+ ",height=" + wy + ",menu=0,scrollbars=1"+wposition);
}
function innerDel(sno)
{
if(!confirm("确认该底稿不上资料卡?"))
{
return;
}
var url = "<%=request.getContextPath()%>/servlet/SaveChangedScriptInfoServlet?scriptNo=" + sno +
"&fromUrl=/jsp/card/finalize.htm&approvestate=<%=Config.SCRIPT_INNER_DELETE%>";
window.open(url,"_blank","width=1,height=0.1");
}
function cancelDel(sno,btn)
{
if(!confirm("确认恢复该底稿?"))
{
return;
}
var url = "<%=request.getContextPath()%>/servlet/ChangeScriptStateServlet?scriptno=" + sno
+ "&state=<%=Config.SCRIPT_COGNIZANCE_PASS%>&toUrl=/jsp/card/finalize.htm";
window.open(url,"_blank","width=1,height=1");
}
</script>
</body>
</html>
<!--
<tr bgcolor="#a6d0f2"><td colspan="8" ><div align="center" class="style3">底 稿 列 表</div></td></tr>
<tr onMouseOver="this.bgColor='#EBEBEB';" onMouseOut="this.bgColor='#EEF4FF';" bgcolor=#eef4ff>
<td width="34" bgcolor="#EEF4FF"><div align="center"></div></td>
<td width="46" bgcolor="#EEF4FF"><div align="center">序号</div></td>
<td width="70" bgcolor="#EEF4FF"><div align="center">年份</div></td>
<td width="165" bgcolor="#EEF4FF"><div align="center">底稿名称</div></td>
<td width="196" bgcolor="#EEF4FF"><div align="center">单位</div></td>
<td width="239" bgcolor="#EEF4FF"><div align="center">问题类别</div></td>
<td width="104" height="27" bgcolor="#EEF4FF"><p align="center">处理方式</p></td>
<td width="104" height="27" bgcolor="#EEF4FF"><p align="center">状态/操作</p></td>
</tr>
<td width="239" bgcolor="#EEF4FF">
<div align="center">
<c:out value="${script.problemtypename}"/>
</div></td>
-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -